Skip to main content

klay_getAccountKey RPC Method

Returns the account key of the Externally Owned Account (EOA) of a given address. If the account has AccountKeyLegacy or the account of the given address is a Smart Contract Account, it will return an empty key value.

Updated on
Aug 07, 2024

Parameters

address
string
REQUIRED

The address of the account being queried

BlockNumberOrHashOrTag
string
REQUIRED

The block number in integer, block hash or block tag(earliest and latest)

Returns

result
object | null

The account key object, or null when the account uses a legacy key or is a contract account

keyType
integer

An integer value indicating account key type

key
object

An account key object

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free