⚡ We welcome businesses to test our enterprise-grade service

bch
Bitcoin Cash (BCH)

Method: POST dumpprivkey

dropdown

Method RPC dumpprivkey example for Bitcoin Cash (BCH)

POST dumpprivkey

Method not allowed

Reveals the private key corresponding to ‘address’.

Then the importprivkey can be used with this output

Parameters

address - string, required

The bitcoin address for the private key

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


Response

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