⚡ We welcome businesses to test our enterprise-grade service

Method: POST personal_unlockAccount

dropdown

方法 GETH RPC personal_unlockAccount 例如 Ethereum (ETH)

POST personal_unlockAccount

Method not allowed

从密钥商店中使用给定的地址解密键。

使用JavaScript控制台时,密码和解锁持续时间都是可选的。 如果未作为参数提供密码,则控制台将交互提示密码。

未加密的钥匙将在记忆中保存,直到解锁持续时间到期为止。 如果解锁持续时间默认为300秒。 零秒的显式持续时间可解锁钥匙,直到Geth退出为止。

该帐户可以在解锁时与eth_sign和eth_sendtransaction一起使用。

Parameters

adress - 细绳

没有任何

passphrase - 细绳

没有任何

duration - 数字

没有任何

Request

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


Response

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