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.
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 |
|
| blockchain type | "ethereum" |
|
| entity id (wallet address, tx hash) | 0x52Ae12ABe5D8BD778BD5397F99cA900624CfADD4 |
{data // Object/Array, optional - when no error occurred, actual contenterror: { // Object, optional - when there’s an errorstatus // integer, HTTP status codemessages: [ // Array (String), list of human readable error messages]}}
For all available endpoints and responses, see the API Reference.