Transactions

Transactions involve shifting amounts from one account to another.

Attribute
Description

amount

The amount to transfer from the sender account.

reference

A reference for the transaction.

Relationship
Description

sender

The account to send this transaction from.

recipient

The account to send this transaction to.

Meta
Description

exchangeRate

The exchange rate of the transaction, if applicable.

createdAt

The timestamp (UTC) (ISO8601) when the transaction was created.

  • meta.exchangeRate will be omitted if the two accounts are the same currency.


List transactions

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
filter[account]stringOptional

Filter all transactions where either the sender or recipient is a specific account ID.

Example: a1b2c3d4e5
filter[sender]stringOptional

Filter all transactions where the sender is a specific account ID.

Example: a1b2c3d4e5
filter[recipient]stringOptional

Filter all transactions where the recipient is a specific account ID.

Example: a1b2c3d4e5
filter[reference]stringOptional

Filter all transactions where the reference contains a specific substring.

Example: hello-world
page[page]integerOptional

Set the page number of resources to return.

Default: 1
page[limit]integer · max: 100Optional

Set the maximum number of resources to return.

Default: 20
Responses
200

List of Transactions

application/json
get
/transactions

Create transaction

post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
Responses
200

Created transaction

application/json
post
/transactions
  • You cannot edit or delete a transaction after created.


Get transaction by ID

get
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
transactionIdstringRequired

Transaction ID

Example: c3d4e5f6h7
Responses
200

Found transaction

application/json
get
/transactions/{transactionId}

Examples

Crediting your account

  • You can credit your account by specifying "ROOT" as the sender account ID, and one of your accounts as the recipient.

  • This is a Create event, similar to minting new coin, where you receive "funds" from nothing.

  • Yes, you can credit your account insane amounts (but it's not real!).

Emptying your account

  • You can empty your account by specifying "ROOT" as the recipient account ID.

  • This is a Destroy event, where you send "funds" into nothing.

Transfer between 2 accounts

You can transfer funds between 2 accounts by specifying the relevant recipient account ID.

  • You can transfer from any of your accounts.

  • You can transfer to any of your accounts, or any public/unlisted account.

Last updated