Overview
This section covers interacting with the Bancor Network through the REST APIs.
The Bancor Network REST APIs allow simple access to network information as well as generating transactions on the network.
Note that v2 of the APIs is relatively new and is still in its experimental phase.
The Bancor Network APIs all return a JSON document as a response.
The APIs are designed to be blockchain agnostic and as such, all ids are defined using the generic DLT terminology and amounts are normalized to floating point numbers.

DLT Identifier

Many API endpoints support DLT identifiers. These define the target blockchain and the target entity (account, wallet etc.) on the specific blockchain:
Name
Type
Description
Example
dlt_type
String
blockchain type
"ethereum"
dlt_id
String
entity id (wallet address, tx hash)
0x52Ae12ABe5D8BD778BD5397F99cA900624CfADD4

Response Format

1
{
2
data // Object/Array, optional - when no error occurred, actual content
3
error: { // Object, optional - when there’s an error
4
status // integer, HTTP status code
5
messages: [ // Array (String), list of human readable error messages
6
]
7
}
8
}
9
Copied!
For all available endpoints and responses, see the API Reference.
Last modified 9mo ago