Currency methods
Currency object
Name | Type | Description |
---|---|---|
| string | The unique system identifier of a currency, matching the ISO code. |
| string | The name of a blockchain, for example: The value is filled in by default only for coins. For other currencies, the value is an empty string. |
| number | The ISO code of a currency. |
| string | The name of a currency, for example: |
| string | The alphabetic code of a currency, for example: |
| string or null | The alternative identifier used to identify similar currencies in different blockchains. |
| string | The tags assigned via the B2BINPAY Back Office. |
| number | The currency precision, that is the number of digits after the decimal separator. |
| number or null | For cryptocurrencies, the default number of blocks needed to send a callback. For fiat currencies, |
| string | The minimum possible amount of transfers. |
| number | For cryptocurrencies, the estimated block mining time, in seconds. For fiat currencies, |
| object | For tokens only. The parent currency of a token, in the same blockchain. For other currencies, returns The object contains the string |
Currency object example
Get currency
Request
GET
[base]/currency/
{id}
Name | Type | Required | Description |
---|---|---|---|
| string | No | The unique system identifier of a currency, matching the ISO code. |
Filtering by object parameters can be applied according to the JSON API Specification.
Request example
Response
In case of success, the response body contains a currency object or an array of objects (if the id
wasn’t specified).
The wallets list is paginated and the default page size is 10. You can adjust pagination according to the JSON API Specification.
Response codes
HTTP code | Application code | Description | Suggested action |
---|---|---|---|
| — | The request succeeded. | — |
| 2007: No active account found with the given credentials | Incorrect credentials. | Send correct credentials. |
| 404: Not found | The currency with the given | Send a correct |
| — | Internal server error. | Try again later. |
| — | Bad gateway. | Try again later. |
| — | Service unavailable. | Try again later. |
| — | Gateway timeout. | Try again later. |
| — | Other server errors. | Try again later. |
Last updated