@fluidcoins/sdk
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

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' })

create a payment link

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

/@fluidcoins/sdk/

    Package Sidebar

    Install

    npm i @fluidcoins/sdk

    Weekly Downloads

    5

    Version

    0.2.0

    License

    MIT

    Unpacked Size

    65 kB

    Total Files

    19

    Last publish

    Collaborators

    • adelowo