Skip to main content

klay_encodeAccountKey RPC Method

Encodes an account key using the Recursive Length Prefix (RLP) encoding scheme.

Updated on
Aug 7, 2024

klay_encodeAccountKey RPC Method

Parameters

keyType
integer
REQUIRED
An integer value indicating account key type
key
object
REQUIRED
An account key object

Returns

key
string
The RLP encoded account key
Request
1
curl https://docs-demo.kaia-kairos.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{
5
"method": "klay_encodeAccountKey",
6
"id": 1,
7
"jsonrpc": "2.0",
8
"params": [
9
{
10
"keyType": 0,
11
"key": {}
12
}
13
]
14
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free