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

coins coins coins coins
ltc
Litecoin (LTC)

Method: POST getbalance

dropdown

# getbalance example for Litecoin (LTC)

POST getbalance

Method not allowed

If account is not specified, returns the server's total available balance.

If account is specified, returns the balance in the account.

Parameters

account - string, optional

Account

minconf - numeric, optional, default=1

Minconf

Request

curl --location --request POST 'https://ltc.getblock.io/mainnet/' \ 
--header 'x-api-key: YOUR-API-KEY' \ 
--header 'Content-Type: application/json' \ 
--data-raw '{"jsonrpc": "2.0",
"method": "getbalance",
"params": [null, null],
"id": "getblock.io"}'


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}