klay_encodeAccountKey
Encodes an account key using the Recursive Length Prefix (RLP) encoding scheme.
Name | Type | Description |
---|---|---|
keytype | QUANTITY | |
key | JSON DATA | Account key object |
Type | Description |
---|---|
DATA | RLP encoded account key |
// Request to encode AccountKeyNil
curl -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "klay_encodeAccountKey", "params": [{"keyType": 0, "key": {}}], "id": 66}' http://127.0.0.1:8551
// Result
{
"id": 66,
"jsonrpc": "2.0",
"result": "0x80"
}
Last modified 11mo ago