Encodes an account key using the Recursive Length Prefix (RLP) encoding scheme.
Last updated 1 month ago
Was this helpful?
keytype
QUANTITY
Integer value indicating account key type. For the value of each account key type, see .
key
JSON DATA
Account key object
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" }