Install the SDK
Create a Go project and install the SDK. v1.2.0 and later require Go 1.22 or later.
Client initialization
Parse your Blnk base URL and create a client. Pass a pointer to your API key when your instance requires authentication. The SDK sends it as the
X-Blnk-Key header.Use nil when running locally without auth.client.go
Create a sample script
Create a
main.go 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 when your instance requires authentication.
main.go
View the transaction
Confirm the transaction landed in your ledger.
- Blnk Cloud
- CLI
- Open Transactions in the sidebar.
- Find your transaction by reference (
first_txn_001) or by thetransaction_idfrom the script output. - Click the row to open the details and verify the amount, status, source, and destination.

If the transaction is missing, click Refresh on the table to pull the latest data from Core.
Related docs
Using the SDK
Authentication, timeouts, retries, and logging.
Error handling
Three-value returns and Core error bodies.
Changelog
Go SDK releases and version history.