Authorizations
The OneBalance API uses API keys to authenticate requests. All API requests require authentication using an API key passed in the x-api-key
header:
curl -X 'GET' \
'https://be.onebalance.io/api/path-to/endpoint' \
-H 'x-api-key: ${ONEBALANCE_API_KEY}' \
...
A public API key is available for testing purposes with limited usage: 42bb629272001ee1163ca0dbbbc07bcbb0ef57a57baf16c4b1d4672db4562c11
.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
Learn how to generate API access tokens at OneBalance Docs.
Query Parameters
The ID of the quote to retrieve the status for
"0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
Response
Successfully retrieved the quote status
Status response for v3 endpoints with CAIP-2 chain identifiers
Quote ID of the execution
"0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
Execution status of the quote. The status progresses through different stages:
- PENDING: Operation has been submitted but processing has not yet begun
- IN_PROGRESS: Currently processing the execution steps of the operation
- EXECUTED: Transaction has been executed on the destination chain but origin chain operations may still be pending
- COMPLETED: All operations on both origin and destination chains have been completed successfully
- REFUNDED: Operation failed at some step, causing the whole operation to be refunded
- FAILED: All steps of the operation failed
PENDING
, IN_PROGRESS
, EXECUTED
, COMPLETED
, REFUNDED
, FAILED
"COMPLETED"
The address of the user that initiated the quote (EVM hex format or Solana base58 format)
"0x9b747cC14A5672a7166b4eccdc92d7F4003f8081"
The CAIP-10 address of the recipient
"eip155:1/0x9b747cC14A5672a7166b4eccdc92d7F4003f8081"
The asset(s) that were sent from the source
[
{
"hash": "0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d",
"chain": "eip155:1",
"chainId": 1,
"explorerUrl": "https://etherscan.io/tx/0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
}
]
Destination chain operations
[
{
"hash": "0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d",
"chain": "eip155:42161",
"chainId": 42161,
"explorerUrl": "https://arbiscan.io/tx/0xfa6094cd9d65416c975e3498cc5c2ca17df6c4cfa37e16f84f2736296dd98b5d"
}
]