fiwind

0.0.0 • Public • Published

like-fiwind

JavaScript wrapper library for fiwind.io

Usage

To initialize a Fiwind struct:

  1. Log in to panel.fiwind.io.
  2. Open the developer tools and navigate to the local storage section.
  3. Locate the following variables: JWT_TOKEN, REFRESH_TOKEN, and deviceId.
  4. Pass these values to the constructor:
const fw = new Fiwind(jwtToken, refreshToken, deviceId)

Methods

Method Description
Fiwind.wallet.balance(currency: string) Retrieves the balance of the specified currency.
Fiwind.wallet.addresses(currency: string) Retrieves deposit addresses for the specified cryptocurrency.
Fiwind.wallet.convert(from: string, to: string, amount: number) Requests the current exchange rate between two currencies. It returns a short-lived quote ID for confirmation.
Fiwind.wallet.confirmTx(txId: string) Confirms a transaction using the provided quote ID.
Fiwind.wallet.findRecipient(cbuOrAlias: string, currency: string) Finds a recipient's bank account using their CBU (Clave Bancaria Uniforme) or alias and the specified currency.
Fiwind.wallet.findBank(cbu: string, alias: string, currency: string, bankName: string, denomination: string, cuit: string) Finds a bank account based on the provided recipient's details.
Fiwind.wallet.sendFiat(currency: string, amount: number, bankId: string) Sends money to the specified bank account.

Tests

  • npm run dev

Readme

Keywords

none

Package Sidebar

Install

npm i fiwind

Weekly Downloads

1

Version

0.0.0

License

ISC

Unpacked Size

11.3 kB

Total Files

8

Last publish

Collaborators

  • brunovivas