Download OpenAPI specification:Download
Core bridge API is a service that responsible for the communication between blockchains.
Get a list of chains and tokens based on the request.
filter[chain_type] | Array of any Filter by chain type. Items Value: [ |
include_tokens | boolean Include tokens in the response. Items Value: [ |
{- "data": [
- {
- "attributes": {
- "chain_params": null,
- "chain_type": "string",
- "icon": "string",
- "name": "string"
}, - "id": "string",
- "relationships": {
- "tokens": {
- "data": [
- {
- "id": "string",
- "type": "balance"
}
]
}
}, - "type": "balance"
}
], - "included": [
- [
- 0
]
]
}
Get combined history of deposits and withdrawals with filtering and pagination
from_address | string Filter by from address |
to_address | string Filter by to address |
source_network | string Filter by source network |
destination_network | string Filter by destination network |
token_address | string Filter by token address |
transaction_type | string Filter by transaction type (deposits/withdrawals) |
from_block | integer Filter by minimum block number |
to_block | integer Filter by maximum block number |
page | integer Page number (default: 1) |
page_size | integer Page size (default: 10) |
sort_by | string Sort field (default: block_number) |
sort_order | string Sort order (asc/desc, default: desc) |
{- "data": [
- {
- "amount": "string",
- "block_number": 0,
- "deposit_tx_hash": "string",
- "destination_network": "string",
- "from_address": "string",
- "is_mintable": true,
- "source_network": "string",
- "to_address": "string",
- "token_address": "string",
- "token_id": "string",
- "tx_hash": "string",
- "type": "string",
- "withdrawal_tx_hash": "string"
}
], - "pagination": {
- "current_page": 0,
- "page_size": 0,
- "total_items": 0,
- "total_pages": 0
}
}
Get the list of tokens based on the filter type and include chains flag.
include_chains | boolean Include chains in the response. Items Value: [ |
filter[token_type] | Array of any Filter by chain type. Items Value: [ |
{- "data": [
- {
- "attributes": {
- "icon": "string",
- "name": "string",
- "symbol": "string",
- "token_type": "fungible"
}, - "id": "string",
- "relationships": {
- "chains": {
- "data": [
- {
- "id": "string",
- "type": "balance"
}
]
}
}, - "type": "balance"
}
], - "included": [
- [
- 0
]
]
}
Get the balance of an account for a token.
token_id required | string Token ID |
address required | string Address of the account |
chain_id required | string Chain ID |
nft | string NFT ID |
{- "data": {
- "attributes": {
- "address": "string",
- "amount": { },
- "token_address": "string"
}, - "id": "string",
- "type": "balance"
}, - "included": [
- [
- 0
]
]
}
Get the metadata of a non-fungible token based on the token ID and NFT ID.
token_id required | string Token ID |
nft_id required | string NFT ID |
chain_id required | string Chain ID |
{- "data": {
- "attributes": {
- "animation_url": "string",
- "attributes": [
- {
- "trait_type": "string",
- "value": "string"
}
], - "description": "string",
- "external_url": "string",
- "image_url": "string",
- "metadata_url": "string",
- "name": "string"
}, - "key": {
- "id": "string",
- "type": "balance"
}
}, - "included": [
- [
- 0
]
]
}
Approve is an HTTP handler that creates an approval transaction for a spender.
Request body
required | object Data is the data of the approval request. |
{- "data": {
- "address": "string",
- "chain_id": "string",
- "token_id": "string"
}
}
{- "data": null,
- "included": [
- [
- 0
]
]
}
Generates transaction that will lock a token in the source chain.
Request body
required | object Data is the data of the lock request. |
{- "data": {
- "amount": { },
- "chain_from": "string",
- "chain_to": "string",
- "from": "string",
- "nft_id": "string",
- "to": "string",
- "token_id": "string"
}
}
{- "data": null,
- "included": [
- [
- 0
]
]
}
Check if lock transaction is valid and withdraw the token from the bridge. Returns the transaction
Request body
required | object Data is the data of the withdrawal request. |
{- "data": {
- "chain_from": "string",
- "from": "string",
- "token_id": "string",
- "tx_hash": "string"
}
}
{- "data": null,
- "included": [
- [
- 0
]
]
}