⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins
eos
EOS (EOS)

Method: POST get_currency_balance

dropdown

# get_currency_balance example for EOS (EOS)

POST get_currency_balance

Retrieves the current balance

Parameters

code - string

Must be one of:
- NamePrivileged - String representation of privileged EOSIO name type
- NameBasic - String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5
- NameBid - String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed
- NameCatchAll - String representation of EOSIO name type

account - string

Must be one of:
- NamePrivileged - String representation of privileged EOSIO name type
- NameBasic - String representation of basic EOSIO name type, must be 12 characters and contain only a-z and 0-5
- NameBid - String representation of EOSIO bid name type, 1-12 characters and only a-z and 0-5 are allowed
- NameCatchAll - String representation of EOSIO name type

symbol - string

A string representation of an EOSIO symbol, composed of a float with a precision of 4, and a symbol composed of capital letters between 1-7 letters separated by a space, example 1.0000 ABC.

Request

curl --location --request POST 'https://eos.getblock.io/v1/chain/get_currency_balance' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"code": "codename", "account": "playuplandme", "symbol": "1.0000 EOS"}'


Response

{
  [
    "123.1234 EOS"
  ]
}