get_receipt
Retrieves receipt information based on the provided chain name and hash.
Body
from_chain_hashstringRequiredExample:
The hash of the transfer transaction that user send to from_chain.
0x00001fd96f18783cd72f2f3682a9cfda652b5eb4258cf5f48d5453df091e003d
Responses
0
Successful response
application/json
Responseall of
901
Chain name not found
907
Tx hash not found on chain, try again later or user may failed to send the transfer transaction
908
The bridge request is received, and is under processing
909
The bridge request failed
post
POST /get_receipt HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 88
{
"from_chain_hash": "0x00001fd96f18783cd72f2f3682a9cfda652b5eb4258cf5f48d5453df091e003d"
}
{
"data": {
"from_chain_name": "BaseMainnet",
"from_chain_token_address": "0xcc63950c44862d6970",
"to_chain_hash": "0xcc63950c44862d697074dd944f0d74c27280d8880be1f248b9ceb61efd0e958d",
"to_chain_name": "ScrollMainnet",
"to_chain_token_address": "0x2d6970cc63950c4486",
"token_name": "USDC",
"user_receive_value": {
"decimals": 18,
"raw_value": "1000000",
"ui_value": "1.2"
},
"user_send_value": {
"decimals": 18,
"raw_value": "1000000",
"ui_value": "1.2"
}
},
"status": {
"code": 1,
"message": "text"
}
}
Last updated
Was this helpful?