Last updated 25 days ago
privkey - string
privkey
private key to import.
account - string
account
name of account to associate with private key.
rescan - boolean
rescan
Optional, default=true
rescan blockchain for transcations containing altcoin address associated with privkey.
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \ --header 'Content-Type: application/json' \ --data-raw '{"jsonrpc": "2.0", "method": "importprivkey", "params": [null, null, null], "id": "getblock.io"}'
{ "result": "null", "id": "getblock.io", "status_code": 405, "message": "Method not allowed" }
Example code for the importprivkey {disallowed} json-rpc method. Сomplete guide on how to use importprivkey {disallowed} json-rpc in GetBlock.io Web3 documentation.