Skip to content

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

NameTypeNote
cursorstringOptional. 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.
limitintegerOptional. The most rows to return. Default 50.
wallet_iduuidOptional. An unknown one answers 400 with error.field.
networkstringOptional. 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.
assetstringOptional. 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.
sourceenumOptional. deposit matches every transaction that moved money at a customer address, sweeps included. One of deposit, withdrawal, sweep, manual.
statusenumOptional. One of detected, confirming, confirmed, reverted.
tx_hashstringOptional. 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_fromdate-timeOptional. Inclusive RFC 3339 lower time boundary.
created_todate-timeOptional. Exclusive RFC 3339 upper time boundary.
scanner_stalebooleanOptional.
sh
curl -sS "$FIATLESS_URL/api/v1/transactions" \
  -H "Authorization: Bearer $FIATLESS_KEY"

Responses

StatusMeaning
200One page of transactions, the most recently recorded first.
400A 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.
401No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate.
403The key lacks the scope this call needs. The code is permission_denied.
500The install failed; the details stay in its logs. The code is internal_error.

200 OK

FieldTypeNote
dataTransaction[]
next_cursorstring or nullPass 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

NameTypeNote
iduuidRequired. The resource's id.
sh
curl -sS "$FIATLESS_URL/api/v1/transactions/$TRANSACTION_ID" \
  -H "Authorization: Bearer $FIATLESS_KEY"

Responses

StatusMeaning
200The transaction as it is now.
400A 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.
401No API key, or one the install does not know. The code is authentication_required. Headers: WWW-Authenticate.
403The key lacks the scope this call needs. The code is permission_denied.
404The resource does not exist. The code is resource_not_found.
500The install failed; the details stay in its logs. The code is internal_error.

200 OK

FieldTypeNote
iduuid
network_iduuid
tx_hashstring
amountsobject[]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_iduuidThe asset, within the transaction's network_id.
amounts[].amountstringThe 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.
walletsobject[]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_iduuidThe customer address, as getWallet reads it.
wallets[].external_idstringYour reference for the customer, as you sent it to createWallet.
wallets[].amountsobject[]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_iduuidThe asset, within the transaction's network_id.
wallets[].amounts[].amountstringWhat this address received in this asset.
sourcesenum[]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.
statusenumOne of detected, confirming, confirmed, reverted.
inclusionobject or null
inclusion.positioninteger or nullBlock height, Solana slot, or XRPL ledger index.
inclusion.hashstring or nullThe hash of the block or ledger that holds the transaction, when known.
confirmationsobject
confirmations.currentinteger or null
confirmations.requiredinteger or null
confirmations.remaininginteger or null
confirmations.progress_percentinteger or null
confirmations.inclusion_positioninteger or null
confirmations.processed_positioninteger or null
confirmations.required_positioninteger or null
confirmations.policy_iduuid
confirmations.policy_versioninteger
confirmations.calculated_atdate-time
confirmations.scanner_staleboolean
confirmations.scanner_laginteger or null
feestring or nullThe transaction's network fee, when it can be read as an amount.
raw_feestring or nullThe fee as the chain reports it, when it cannot be read as an amount.
sender_addressstring or null
recipient_addressstring or null
confirmed_atdate-time or null
reverted_atdate-time or null
created_atdate-time
updated_atdate-time