Learn how to manage transactions with the CLI.
blnk transactions
command to create and manage transactions in your Blnk server.
Field | Description |
---|---|
<amount> | The transaction amount. |
<precision> | Precision for the currency/asset passed. See also: Precision. |
<reference> | Your unique reference to ensure idempotency. |
<description> | The unique id of the ledger that this balance belongs to. |
<currency> | Short code for your asset class. See also: Asset classes. |
<source> | Sender’s balance ID. |
<destination> | Recipient’s balance ID. |
<allow overdraft> | ”y” if you want to enable overdraft, “n” if otherwise. |
<inflight> | ”y” if you want to enable inflight, “n” if otherwise. |
<metadata> | Custom info written in JSON format . If you have no metadata, you can leave it blank like this: {} |
blnk transactions list
command.
Options | Description |
---|---|
-p or --page <number> | Page number (default: “1”) |
--per-page <number> | Results per page (default: “10”) |
-s or --search <term> | What you are searching for (default: ”*“) |
-q or --query-by <fields> | Fields to query your search term by (default: “reference, source, destination”) |