/account/lock {disallowed} - NEM

Example code for the /account/lock {disallowed} rest method. Сomplete guide on how to use /account/lock {disallowed} rest in GetBlock.io Web3 documentation.

Parameters

privateKey -

A PrivateKey JSON object. A private key is a key to an account. Anyone having the private key to an account can initiate any account related action. Therefore a private key must be kept secret at all costs.

Request

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0", "method": "account_lock", "params": [{"privateKey": {"value": "68e4f79f886927de698df4f857de2aada41ccca6617e56bb0d61623b35b08cc0"}}], "id": "getblock.io"}'

Response

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

Last updated