⚡ We welcome businesses to test our enterprise-grade service

bch
Bitcoin Cash (BCH)

Method: POST getreceivedbyaddress

dropdown

方法 RPC getreceivedbyaddress 例如 Bitcoin Cash (BCH)

POST getreceivedbyaddress

方法不允许

返回给定地址在至少有 minconf 确认的交易中收到的总金额。

Parameters

address - 字符串,必填

交易的比特币地址。

minconf - 数字,可选,默认=1

只包括至少确认这么多次的交易。

Request

curl --location --request POST 'https://bch.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"
}