chain.lifecycle.v1.LifecycleReadService
ListFlowsByTx
ListFlowsByTx lists lifecycle flows that reference a transaction hash.
Request
curl --request POST \ \
--url 'https://api.testnet.polyester.com/chain.lifecycle.v1.LifecycleReadService/ListFlowsByTx' \
--header 'Content-Type: application/json' \
--header 'Connect-Protocol-Version: 1' \
--data '{
"limit": 100,
"lookupKind": "TX_SOURCE",
"pageToken": "eyJvZmZzZXQiOjEwMH0",
"txHash": "0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890"
}'Responses
{
"matches": [
{
"amountE18": {
"hi": "1",
"lo": "1"
},
"assetIds": {
"unifiedAssetId": 100,
"zippedAssetId": 100
},
"currentStep": "FLOW_STEP_SOURCE",
"destinationAddress": "0x3333333333333333333333333333333333333333",
"destinationDomain": "DOMAIN_EXTERNAL_CHAIN",
"flowId": "flow_7YWHMfk9JZeLMgZauHuiSxhJ",
"flowKind": "KIND_DEPOSIT",
"isOpen": false,
"isTerminal": false,
"lastActivityAtUnixMs": "1",
"latestTxRef": "0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890",
"lifecycleReason": "ZIPPER_VALIDATION_REJECTED",
"ownerAccountId": "7563897446546",
"polyesterChainId": 1,
"smartAccountAddress": "0x2222222222222222222222222222222222222222",
"sourceAddress": "0x4444444444444444444444444444444444444444",
"sourceDomain": "DOMAIN_EXTERNAL_CHAIN",
"sourceTxHash": "0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890",
"txOccurrenceIndex": "1",
"zipperReason": {
"code": "DEPOSIT_WAIT_EXPIRED",
"message": "value",
"reasonId": "value"
}
}
],
"nextPageToken": "eyJvZmZzZXQiOjIwMH0",
"txHash": "0xabc123def4567890abc123def4567890abc123def4567890abc123def4567890"
}chain.lifecycle.v1.ListFlowsByTxRequestchain.lifecycle.v1.ListFlowsByTxResponseChain transaction identifier to search for. Accepts a 0x-prefixed 32-byte EVM hash or a printable chain-native transaction id such as a Solana signature, Bitcoin txid, Litecoin txid, Dogecoin txid, or XRP transaction hash.
Lookup mode that determines which transaction references are searched.
Maximum number of matches to return. Defaults to 100 when omitted; maximum is 500.
Opaque keyset cursor returned by a previous response. The cursor is exclusive and bound to the transaction hash and lookup mode.
Transaction hash searched by the request.
Public, URL-safe lifecycle identifier for display, URLs, and user search.
Product flow family.
First observed source transaction hash for the flow when known.
Latest transaction reference associated with the current visible state.
Stable occurrence discriminator within a transaction. For source-chain deposits this is the batched leg index; for on-chain facts it is the log or equivalent per-tx occurrence index when available.
Product domain where the overall flow starts.
Product domain where the overall flow ends or currently settles.
Current user-facing progress step for this flow.
True when this flow is still progressing.
True when this flow reached a final state.
Zipped asset identifier for the chain-specific asset mapping row. This is the canonical id from `chain_zipped_assets`, which already represents the source-chain asset metadata plus its mapped zToken relationship when relevant.
Unified asset identifier for the uAsset used by funding or trading flows when relevant. This is the canonical Polyester asset identity used by FundingAccount, TradingGateway, Lending, and other downstream product domains.
Polyester Chain id associated with this flow.
Most significant 64 bits.
Least significant 64 bits.
Source address to show for this flow.
Destination address to show for this flow.
Product-facing reason for failed, dropped, or otherwise notable flows.
Timestamp used for list ordering in milliseconds since epoch (UTC).
Public account or subaccount identifier that owns this flow.
Smart account address on Polyester Chain when known.
Stable code assigned to the specific outcome.
Stable reason identifier suitable for localization lookup.
User-displayable English explanation of the outcome.
Opaque cursor for the next page. Empty when no more results exist.
| 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. |