Transactions
List transactions
listTransactions · GET /api/v1/transactions · scope ledger:read
Returns your install's transactions on chain, the most recently recorded first (created_at): payments, payouts and sweeps. Transactions found by history sync and by the live scanner form one list, so a history read records older transactions after newer ones; inclusion.position gives their order on chain. Confirmation progress matches getTransaction.
Query
| Name | Type | Note |
|---|---|---|
cursor | string | Optional. The previous page's next_cursor, passed back as received. Send the same filters with it; limit may change between pages. A cursor never expires. A malformed one answers 400 with invalid_request. |
limit | integer | Optional. The most rows to return. Default 50. |
wallet_id | uuid | Optional. An unknown one answers 400 with error.field. |
network | string | Optional. A network's code, in any case, or its id, from listNetworks. A code names the network this install runs for it, so the same code works on a testnet install and a mainnet one. One that names no network of this install answers 400 with error.field. |
asset | string | Optional. An asset's id, or its code in any case, read within network when the request names one. A code that names no asset, or more than one (USDT on two networks, a token and its bridged copy), answers 400 with error.field, the candidates' ids in its message. |
source | enum | Optional. deposit matches every transaction that moved money at a customer address, sweeps included. One of deposit, withdrawal, sweep, manual. |
status | enum | Optional. One of detected, confirming, confirmed, reverted. |
tx_hash | string | Optional. The hash as tx_hash spells it. On XRPL that is the 64 uppercase hex characters XRPL nodes and explorers name it by, with no 0x. |
created_from | date-time | Optional. Inclusive RFC 3339 lower time boundary. |
created_to | date-time | Optional. Exclusive RFC 3339 upper time boundary. |
scanner_stale | boolean | Optional. |
sh
curl -sS "$FIATLESS_URL/api/v1/transactions" \
-H "Authorization: Bearer $FIATLESS_KEY"Responses
| Status | Meaning |
|---|---|
200 | One page of transactions, the most recently recorded first. |
400 | A malformed value or query string, an unknown field or query parameter, a body member sent twice or matching a field only in another case, a bad cursor, or no Idempotency-Key on a call that needs one. The codes are invalid_request and idempotency_key_required. |
401 | No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate. |
403 | The key lacks the scope this call needs. The code is permission_denied. |
500 | The install failed; the details stay in its logs. The code is internal_error. |
200 OK
| Field | Type | Note |
|---|---|---|
data | Transaction[] | |
next_cursor | string or null | Pass it back as cursor for the next page; null on the last page. |
Get transaction
getTransaction · GET /api/v1/transactions/{id} · scope ledger:read
Returns one transaction, in the same shape as listTransactions.
Path
| Name | Type | Note |
|---|---|---|
id | uuid | Required. The resource's id. |
sh
curl -sS "$FIATLESS_URL/api/v1/transactions/$TRANSACTION_ID" \
-H "Authorization: Bearer $FIATLESS_KEY"Responses
| Status | Meaning |
|---|---|
200 | The transaction as it is now. |
400 | A malformed value or query string, an unknown field or query parameter, a body member sent twice or matching a field only in another case, a bad cursor, or no Idempotency-Key on a call that needs one. The codes are invalid_request and idempotency_key_required. |
401 | No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate. |
403 | The key lacks the scope this call needs. The code is permission_denied. |
404 | The resource does not exist. The code is resource_not_found. |
500 | The install failed; the details stay in its logs. The code is internal_error. |
200 OK
| Field | Type | Note |
|---|---|---|
id | uuid | |
network_id | uuid | |
tx_hash | string | |
amounts | object[] | What this transaction moved for your install, one signed row per asset, sorted by asset_id. It covers your customer addresses, plus the treasury's side of a sweep or payout, or of a move from a customer address into the treasury that your install did not make, by the same rule as the ledger behind listBalances. A payment shows its amount from detection on. The network fee is not included (see fee), except on Bitcoin, where a sweep's amounts include the fee its inputs paid. A reverted transaction, or a failed payout whose amount was released, adds nothing, and a payout whose transaction failed or moved none of its asset adds nothing, at the latest from the moment its transaction confirms. Empty when nothing your install owns moved. |
amounts[].asset_id | uuid | The asset, within the transaction's network_id. |
amounts[].amount | string | The signed change to your install's funds in this asset: positive credits the install, negative debits it. A payment reads positive, a payout negative. A move between your own addresses, such as a sweep into the treasury, nets out. On an account-model chain it reads 0; on a UTXO chain it reads minus the miner fee. A network fee recorded on its own is not in amount; it is fee. Summed over a page, amount moves confirmed by the same total, less the fees your install paid. fee does not say who paid it. |
wallets | object[] | The customers this transaction paid: one entry per customer address that received money from outside your install, sorted by wallet_id. A transaction sent by one of your own addresses pays no customer, even where it credits a customer address: a sweep, a gas top-up, or a payout from your treasury. A Bitcoin transaction names no sender, so one that spends from any of your own addresses pays no customer. A transaction anyone else sends pays no customer in an asset it takes, on balance, from one of your own addresses, such as a token issuer's transfer out of your treasury. Empty when the transaction paid no customer, and once it is reverted. |
wallets[].wallet_id | uuid | The customer address, as getWallet reads it. |
wallets[].external_id | string | Your reference for the customer, as you sent it to createWallet. |
wallets[].amounts | object[] | What the customer was paid at this address, one row per asset, sorted by asset_id. Always above zero. The network fee is not included. |
wallets[].amounts[].asset_id | uuid | The asset, within the transaction's network_id. |
wallets[].amounts[].amount | string | What this address received in this asset. |
sources | enum[] | Every role this transaction plays for your install, in the order deposit, withdrawal, sweep, manual. A payout into one of your own customer addresses has two. One of deposit, withdrawal, sweep, manual. |
status | enum | One of detected, confirming, confirmed, reverted. |
inclusion | object or null | |
inclusion.position | integer or null | Block height, Solana slot, or XRPL ledger index. |
inclusion.hash | string or null | The hash of the block or ledger that holds the transaction, when known. |
confirmations | object | |
confirmations.current | integer or null | |
confirmations.required | integer or null | |
confirmations.remaining | integer or null | |
confirmations.progress_percent | integer or null | |
confirmations.inclusion_position | integer or null | |
confirmations.processed_position | integer or null | |
confirmations.required_position | integer or null | |
confirmations.policy_id | uuid | |
confirmations.policy_version | integer | |
confirmations.calculated_at | date-time | |
confirmations.scanner_stale | boolean | |
confirmations.scanner_lag | integer or null | |
fee | string or null | The transaction's network fee, when it can be read as an amount. |
raw_fee | string or null | The fee as the chain reports it, when it cannot be read as an amount. |
sender_address | string or null | |
recipient_address | string or null | |
confirmed_at | date-time or null | |
reverted_at | date-time or null | |
created_at | date-time | |
updated_at | date-time |