Install the TypeScript SDK and create your first transaction.
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.
npm install @blnkfinance/blnk-typescript
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.
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.