Skip to main content

klay_decodeAccountKey RPC Method

Decodes an RLP encoded account key.

Updated on
Aug 7, 2024

klay_decodeAccountKey RPC Method

Parameters

key
string
REQUIRED
The RLP encoded account key

Returns

keyType
integer
Indicates the type of the top-level key
key
array
An array containing key objects. Each key object can have different types and structures depending on the key type
keyType
integer
Indicates the type of the key
key
object
The key object which contains the following fields:
threshold
integer
The minimum number of signatures required to validate a transaction
keys
array
An array of key objects with weights, each containing:
weight
integer
The weight of the key in the multisig scheme
key
object
The key object which contains the following fields:
x
string
The x-coordinate of the ECDSA public key
y
string
The y-coordinate of the ECDSA public 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_decodeAccountKey",
6
"params": [
7
"0x05f898a302a103e4a01407460c1c03ac0c82fd84f303a699b210c0b054f4aff72ff7dcdf01512db84e04f84b02f848e301a103e4a01407460c1c03ac0c82fd84f303a699b210c0b054f4aff72ff7dcdf01512de301a10336f6355f5b532c3c1606f18fa2be7a16ae200c5159c8031dd25bfa389a4c9c06a302a102c8785266510368d9372badd4c7f4a94b692e82ba74e0b5e26b34558b0f081447"
8
],
9
"id":1,
10
"jsonrpc":"2.0"
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free