Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@fluidcoins/sdk

fluidcoins5MIT0.2.0TypeScript support: included

FluidCoins NodeJS SDK

FluidCoins, Crypto, crypto payments, stablecoins, NodeJS

readme

FluidCoins NodeJS SDK

The Official Node.js library for the Fluidcoins API.

Installation

Install node-client with npm

  npm i @fluidcoins/sdk

Usage/Examples

create a new crypto deposit address

const Fluidcoins = require('@fluidcoins/sdk')

fluidcoins = new Fluidcoins(secretKey)

// code can be any supported currency
// network can be any supported currency. If no network is provided, the default
// network is used
const addresses = fluidcoins.createNewAddress({ code: 'USDT', network: 'POLYGON' })
const Fluidcoins = require('@fluidcoins/sdk')

fluidcoins = new Fluidcoins(secretKey)

const paymentData = {
  amount: 100000,
  description: "Test payment description",
  title: "Test Payment",
};

const link = fluidcoins.createNewPaymentLink(paymentData);

fetch supported currencies ( crypto and fiat currencies )

const Fluidcoins = require('@fluidcoins/sdk')

fluidcoins = new Fluidcoins(secretKey)

const supportedCurrencies = fluidcoins.getCurrencies()

fetch balances

const Fluidcoins = require('@fluidcoins/sdk')

fluidcoins = new Fluidcoins(secretKey)

const balances = fluidcoins.getBalance()

Documentation/API reference

Documentation