This Black Friday, get 30% off your first month on any plan

banner image
bsv

BSV

POST

GET

chevron-right

Last updated on January 1, 1970

1 min read

Method sethdseed undefined ()
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://bsv.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