wallet_getKeys
Get all keys for an account.
Request
type Request = {
method: 'wallet_getKeys',
params: [{
address: Address,
chainId: Hex,
}],
}
Response
Each key associated with an account, along with the permissions set on the keys.
type Response = {
// key hash
hash: Hash,
key: {
expiry?: number,
type: 'p256' | 'webauthnp256' | 'secp256k1',
role: 'admin' | 'normal' | 'session',
publicKey: Hex,
},
permissions: ({
type: 'call',
selector: string,
to: Address,
} | {
type: 'spend',
limit: number,
period: 'minute' | 'hour' | 'day' | 'week' | 'month' | 'year',
// defaults to the native token (address zero)
token?: Address,
})[],
}[]