⚡ Heavy Workload? We Offer Higher Rate Limits to Accelerate Your dApp Performance

bg pattern bg pattern xs
neo

NEO (NEO)

Method: POST importprivkey

dropdown
POST

importprivkey

Method not allowed

Imports the private key to the wallet.

Before you can invoke this method you must call the RPC method openwallet to open the wallet first.

Parameters

key - string

The WIF-format private key.

Request

curl --location --request POST 'https://neo.getblock.io/mainnet/' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "importprivkey",
"params": [null],
"id": "getblock.io"}'


Response

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