LedgerReadService
List Transfers
List finalized transfer history for an account. Supports optional subaccount, asset, inclusive time-bound, ordering, and cursor filters.
Request
curl --request GET \ \ --url 'https://api.testnet.polyester.com/v1/transfers?ledger=1&limit=100&reversed=false&subaccountId=45LUmqjT' \ --header 'Accept: */*' \ --header 'X-API-KEY-ID: YOUR_API_KEY_ID' \ --header 'X-API-TIMESTAMP: YOUR_API_TIMESTAMP' \ --header 'X-API-SIGNATURE: YOUR_API_SIGNATURE'
Responses
{
"nextPageToken": "eyJvZmZzZXQiOjIwMH0",
"transfers": [
{
"account": "FUNDING",
"amount": "18.446744073709551617",
"asset": "USDT",
"balanceAfter": "18.446744073709551617",
"destination": {
"accountId": "4Rh4iXdT",
"address": "0x3333333333333333333333333333333333333333",
"chainId": 1,
"kind": "FUNDING_ACCOUNT"
},
"flowId": "flow_7YWHMfk9JZeLMgZauHuiSxhJ",
"isDebit": false,
"linkId": "1",
"source": {
"accountId": "4Rh4iXdT",
"address": "0x3333333333333333333333333333333333333333",
"chainId": 1,
"kind": "FUNDING_ACCOUNT"
},
"timestamp": "1",
"transferCode": "DEPOSIT",
"transferId": "9155001234569"
}
]
}Optional public asset filter.
Maximum rows to return (default 100, max 1000).
Opaque keyset cursor returned by the previous response.
true=newest first; false=oldest first.
Optional subaccount public id (base58).
Optional inclusive upper transfer time bound in microseconds since Unix epoch (UTC); at least timestampMin when both are set.
Optional inclusive lower transfer time bound in microseconds since Unix epoch (UTC).
Opaque cursor for the next page. Empty when no more results exist.
eyJvZmZzZXQiOjIwMH0Account bucket affected by this transfer.
FUNDINGTransfer amount at fixed 18-decimal ledger scale.
18.446744073709551617Public unified asset ID. Resolve its symbol through the spot configuration API. U128 amounts in this row always use a fixed 18-decimal ledger scale.
USDTPost-transfer balance at fixed 18-decimal ledger scale.
18.446744073709551617Public root account or subaccount ID when this side is safe to identify. Never populated for private counterparties or non-user ledger accounts.
4Rh4iXdTAddress for this side when known. For EXTERNAL_ADDRESS this is an external-chain wallet address from lifecycle correlation; for identifiable Polyester accounts this is a Polyester smart-account address. May be empty until the corresponding lifecycle details are available.
0x3333333333333333333333333333333333333333PolyChain-registered external network identifier for EXTERNAL_ADDRESS. This matches chain.zipper.v1.ChainConfig.chain_id and is not the chain's native identifier (for example, an EIP-155 id) or the Polyester chain id.
1Display classification for this transfer side.
FUNDING_ACCOUNTPublic lifecycle flow ID when this transfer belongs to a chain lifecycle flow.
flow_7YWHMfk9JZeLMgZauHuiSxhJTrue when this row is the debit leg; false when it is the credit leg.
falseCorrelation ID used to group related transfer legs. Zero when unavailable.
1Public root account or subaccount ID when this side is safe to identify. Never populated for private counterparties or non-user ledger accounts.
4Rh4iXdTAddress for this side when known. For EXTERNAL_ADDRESS this is an external-chain wallet address from lifecycle correlation; for identifiable Polyester accounts this is a Polyester smart-account address. May be empty until the corresponding lifecycle details are available.
0x3333333333333333333333333333333333333333PolyChain-registered external network identifier for EXTERNAL_ADDRESS. This matches chain.zipper.v1.ChainConfig.chain_id and is not the chain's native identifier (for example, an EIP-155 id) or the Polyester chain id.
1Display classification for this transfer side.
FUNDING_ACCOUNTTransfer timestamp in microseconds since epoch (UTC).
1Product reason for this transfer.
DEPOSITStable transfer identifier, an unsigned 128-bit integer as a decimal string. Both legs of a transfer share it; with account_code and is_debit it identifies this row.
9155001234569| Key | HTTP status | Connect code | Error | When |
|---|---|---|---|---|
| unauthenticated | 401 | unauthenticated | Unauthenticated | Authentication required. |
| permission-denied | 403 | permission_denied | Permission Denied | Permission denied. |
| invalid-argument | 400 | invalid_argument | Invalid Argument | Invalid argument. |
| not-found | 404 | not_found | Not Found | Not found. |
| unavailable | 503 | unavailable | Unavailable | Service unavailable. |