FindByHash
Finds transaction by blockchain transaction hash.
POST Transaction/FindByHash
Input
Parameter | Type | Required | Description | Default |
---|---|---|---|---|
MerchantId | string | yes | your merchant ID | – |
BlockchainHash | string | no | transaction hash, a.k.a. tx id | – |
Output
Parameter | Type | Description |
---|---|---|
IsFound | boolean | whether or not this transaction hash exists |
Transaction | Transaction | transaction information |
Transaction
Type
Field | Type | Description |
---|---|---|
Id | string | transaction ID (generated by ATLOS) |
SubscriptionId | string | subscription ID (generated by ATLOS) |
MerchantId | string | your merchant ID |
OrderId | string | the order ID you passed to the widget or the API as orderId |
Amount | number | the amount of asset received |
AssetCode | string | asset code |
BlockchainCode | string | blockchain code |
Fee | string | the amount of the commission fee collected |
SenderAddress | string | for EVM blockchains, the sender's wallet address |
RecipientAddress | string | the receiving wallet address |
BlockchainHash | string | blockchain transaction hash (a.k.a. blockchain transaction ID) |
BlockNumber | number | blockchain block height |
TimeSent | string | time when the transaction was recorded in a block |
Status | number | 100 (success) |
Example Input
{
"MerchantId": "8XOZ64KC9X",
"BlockchainHash": "0x81d4eba9504bac535d112551afc1dd35ebfc6c8306ad805728a0a886f765def6"
}
Example Output
{
"IsFound": true,
"Transaction": {
"TransactionId": "RpoWRCnC84cjjQ5Y",
"SubscriptionId": "Xx9Gp1FJuKiP",
"MerchantId": "8XOZ64KC9X",
"OrderId": "123465",
"AssetCode": "USDC",
"BlockchainCode": "PGN",
"Amount": 19.950000,
"Fee": 0.199500,
"SenderAddress": "0xFFcf8FDEE72ac11b5c542428B35EEF5769C409f0",
"RecipientAddress": "0x90F8bf6A479f320ead074411a4B0e7944Ea8c9C1",
"BlockchainHash": "0x81d4eba9504bac535d112551afc1dd35ebfc6c8306ad805728a0a886f765def6",
"BlockNumber": 25,
"TimeSent": "2024-10-15T02:17:04Z",
"Status": 100
}
}