Skip to main content

kaia_decodeAccountKey RPC Method

Decodes an RLP encoded account key.

Updated on
Aug 07, 2024

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
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free