Skip to main content
This guide walks you through installing the Blnk TypeScript SDK, initializing the client, and creating your first ledger resource. By the end, you’ll have a working connection to Blnk and be ready to build financial products from your TypeScript or JavaScript application.
1

Install the SDK

Install the SDK in your project. v1.2.0 and later require Node.js 18 or later.
2

Create a sample script

Create an index.js file as shown below to create your first transaction with the SDK.
Make sure you have a running Blnk Core instance. Set the URL and API key as environment variables in your project.
index.js
3

Execute the script

Run the file.
You should get the following response:
201 Created
4

View the transaction

Confirm the transaction landed in your ledger.
  1. Open Transactions in the sidebar.
  2. Find your transaction by reference (first_txn_001) or by the transaction_id from the script output.
  3. Click the row to open the details and verify the amount, status, source, and destination.
Blnk Cloud Transactions table with reference, amount, status, source, and destination columns

The Transactions table shows every transaction synced from your Core instance.

If the transaction is missing, click Refresh on the table to pull the latest data from Core.

Need help?

We are very happy to help you make the most of Blnk, regardless of whether it is your first time or you are switching from another tool. To ask questions or discuss issues, please contact us or join our Discord community.