kaia_encodeAccountKey
Encodes an account key using the Recursive Length Prefix (RLP) encoding scheme.
Parameters
Name
Type
Description
Return Value
Type
Description
Example
// Request to encode AccountKeyNil
curl -H "Content-Type: application/json" --data '{"jsonrpc": "2.0", "method": "kaia_encodeAccountKey", "params": [{"keyType": 0, "key": {}}], "id": 66}' http://kaia.blockpi.network/v1/rpc/your-api-key
// Result
{
"id": 66,
"jsonrpc": "2.0",
"result": "0x80"
}Last updated
Was this helpful?