The FinTag JavaScript SDK provides a simple and efficient way to interact with the FinTag API. With this SDK, you can easily integrate FinTag's powerful features into your JavaScript applications.
To install the FinTag JavaScript SDK, use npm:
npm install @fintag/jsHere's a quick example of how to use the FinTag JavaScript SDK:
import { FintagClient } from "@fintag/js";
const client = new FintagClient("<API_URL>", "<API_KEY>");
// Verify a FinTag
const verificationResult = await client.verify("fintag-id");
// Get wallet information
const walletInfo = await client.getWalletInfo("fintag-id");Creates a new instance of the FintagClient.
apiUrl: The base URL for the API.apiKey: Your API key for authenticating requests.
Verifies a FinTag.
fintag: The ID of the FinTag to verify.
Returns a promise that resolves with the verification result.
Retrieves wallet information for a FinTag.
fintag: The ID of the FinTag to retrieve wallet information for.
Returns a promise that resolves with the wallet information.
We welcome contributions to the FinTag JavaScript SDK! If you'd like to contribute, please fork the repository and submit a pull request.