Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fiwind

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fiwind

JavaScript wrapper library for [fiwind.io](fiwind.io)

  • 0.0.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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
MethodDescription
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

FAQs

Package last updated on 26 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc