Request
A bridge/swap request record. See the SDK "Data models" guide for full field docs.
idstring
typestring
Possible values: [Wrap, Unwrap, WrapAndSwap, SwapAndUnwrap]
tokenTypestring
Possible values: [BTC]
statestring
Possible values: [Pending, Done, Failed]
statusstring
Possible values: [NotProcessed, Pending, Confirmed, Submitted, ExchangeFailed, Failed, Withdrawn]
fromAddressstring
toAddressstring
inputTokenAmountstring
outputTokenAmountstring
totalFeestring
refundAmountstringnullable
What a refunded request returned to the user, in refundToken's base units.
null until the refund tx is known, and for the few refunds whose delivered amount
is not recorded (an XDC refund, or a manual non-USDC refund to Solana).
refundToken objectnullable
The token the refund was paid in. null until the refund tx is known.
contractAddressstring
symbolstring
namestring
decimalinteger
networkIdstring
refundNetwork objectnullable
The network the refund was paid on. null until the refund tx is known.
idstring
namestring
Example:
solanatitlestring
chainIdinteger
createdAtstring<date-time>
updatedAtstring<date-time>
Request
{
"id": "string",
"type": "Wrap",
"tokenType": "BTC",
"state": "Pending",
"status": "NotProcessed",
"fromAddress": "string",
"toAddress": "string",
"inputTokenAmount": "string",
"outputTokenAmount": "string",
"totalFee": "string",
"refundAmount": "string",
"refundToken": {
"contractAddress": "string",
"symbol": "string",
"name": "string",
"decimal": 0,
"networkId": "string"
},
"refundNetwork": {
"id": "string",
"name": "solana",
"title": "string",
"chainId": 0
},
"createdAt": "2024-07-29T15:51:28.071Z",
"updatedAt": "2024-07-29T15:51:28.071Z"
}