Get transaction receipt
Changed onGet the receipt/status for a submitted transaction. Works for all transaction types including listing fulfillments, cross-chain buys, sweeps, offer fulfillments, and token swaps. Poll this endpoint after submitting transactions to check completion status.
Request
- Base URLhttps://api.opensea.io
- AuthAPI key in header x-api-key
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"swap_quote": {
"from_assets": [
{
"amount": "1000000000000000000",
"chain": "ethereum",
"contract": "0x0000000000000000000000000000000000000000",
"token_id": "1234"
}
],
"to_assets": [
{
"amount": "1000000000000000000",
"chain": "ethereum",
"contract": "0x0000000000000000000000000000000000000000",
"token_id": "1234"
}
]
},
"transaction_identifiers": [
{
"chain": "ethereum",
"swap_provider": "RELAY",
"transaction_hash": "0xabc123..."
}
]
}Response
Transaction receipt retrieved
Example response
{
"asset_receipts": [
{
"asset": {
"chain": "ethereum",
"contract": "0xBd3531dA5CF5857e7CfAA92426877b022e612cf8",
"token_id": "1234"
},
"price": {
"amount": "5.5",
"currency": "ETH",
"usd": "19250.0"
},
"quantity": "1"
}
],
"failed_asset_receipts": [
{
"asset": {
"chain": "ethereum",
"contract": "0xBd3531dA5CF5857e7CfAA92426877b022e612cf8",
"token_id": "1234"
},
"price": {
"amount": "5.5",
"currency": "ETH",
"usd": "19250.0"
},
"quantity": "1"
}
],
"missing_assets": [
{
"chain": "ethereum",
"contract": "0xBd3531dA5CF5857e7CfAA92426877b022e612cf8",
"token_id": "1234"
}
],
"status": "SUCCESS",
"total_spent": {
"price_per_token": [
{
"amount": "5.5",
"currency": "ETH",
"usd": "19250.0"
}
]
}
}Changes
- breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
//became nullable for the status - breaking
the response property
///became nullable for the status - info
the request property
became nullable - info
the request property
became nullable - info
the request property
///became nullable - info
the request property
/became nullable - info
the request property
///became nullable - info
the request property
became nullable - info
the request property
//became nullable - info
added the media type
*/*for the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status - info
added the optional property
to the response with the status
- breaking