ltc

Litecoin (LTC)

Method: POST getreceivedbyaddress

dropdown

POST getreceivedbyaddress

Method not allowed

Returns the total amount received by litecoinaddress in transactions with at least minconf confirmations.

While some might consider this obvious, value reported by this only considers *receiving* transactions.

It does not check payments that have been made *from* this address.

In other words, this is not "getaddressbalance".

Works only for addresses in the local wallet, external addresses will always show 0.

Parameters

litecoinaddress - string, required

The litecoin address for transactions.

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": "getreceivedbyaddress",
"params": [null, null],
"id": "getblock.io"}'


Response

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