Listing accounts

List accounts

GET /api/public/v1/accounts

This endpoint returns all currency accounts and balances you have on Txn.

Headers

NameValue

Content-Type

application/json

Authorization

Bearer <api_key>

Response

{
  "data": [
    {
      "id": "5850abb7-0a60-4041-800c-1d43b4dcf4d6",
      "type": "accounts",
      "attributes": {
        "currencyCode": "BTC",
        "balance": "0.94086678",
        "currencyType": "crypto"
    },
    {
      "id": "acd50522-de49-4aaa-a183-dc046ff27fd5",
      "type": "accounts",
      "attributes": {
        "currencyCode": "EUR",
        "balance": "337.89",
        "currencyType": "fiat"
    },
    {
      "id": "08e71d13-55f2-43cb-8990-e8d8e10d3903",
      "type": "accounts",
      "attributes": {
        "currencyCode": "TRX",
        "balance": "693.259691",
        "currencyType": "crypto"
    },
    {
      "id": "3b9f157c-588f-4e6c-b0c6-038dcfe8fa7c",
      "type": "accounts",
      "attributes": {
        "currencyCode": "USD",
        "balance": "1877.82",
        "currencyType": "fiat"
    },
    {
      "id": "8140e530-4cd3-47e0-b813-9c473e9a2ea3",
      "type": "accounts",
      "attributes": {
        "currencyCode": "USDT",
        "balance": "54.339500",
        "currencyType": "crypto"
    },
    {
      "id": "746e3b21-595e-4540-8436-4658cb508d11",
      "type": "accounts",
      "attributes": {
        "currencyCode": "TRY",
        "balance": "18981.20",
        "currencyType": "fiat"
    }
  ],
  "meta": {},
  "jsonapi": {
    "version": "1.0"
  }
}

Response Body

NameTypeDescription

data.id

string

Account ID.

data.type

string

Entity type returned. Always accounts.

data.attributes

object

A set of account attributes.

data.attributes.currencyCode

string

Account currency code. Refer to the list of supported currencies.

data.attributes.balance

string

Account total balance.

data.attributes.currencyType

string

Account currency type. Can be either fiat or crypto.

Last updated