Up to 50% Off on Your First Month

0

4

:

0

6

:

4

7

:

0

2

Sale bannerSale banner
bch

Bitcoin Cash

BCH

POST

GET

chevron-right

Last updated on January 1, 1970

1 min read

Method sethdseed Bitcoin Cash (BCH)
connect with JSON-RPC protocol

sethdseed

info-circle-fill

Method not allowed

info-circle-fill

Set or generate a new HD wallet seed. Non-HD wallets will not beupgraded to being a HD wallet. Wallets that are already HD will have anew HD seed set so that new keys added to the keypool will be derivedfrom this new seed.Note that you will need to MAKE A NEW BACKUP of your wallet aftersetting the HD wallet seed.Requires wallet passphrase to be set with walletpassphrase call ifwallet is encrypted.

Parameters

newkeypool - boolean, optional, default=true

Whether to flush old unused addresses, including change addresses, from the keypool and regenerate it.

seed - string, optional, default=random seed

The WIF private key to use as the new HD seed.

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

Response

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

Start Building with GetBlock RPCs for Free