Skip to main content

getKeysets

Type Aliases

GetKeysetsParams

type GetKeysetsParams: object;

Type declaration

MemberTypeDescription
sequencerInboxAddressAddress of the sequencerInbox we're getting logs from

Source

src/getKeysets.ts:8


GetKeysetsReturnType

type GetKeysetsReturnType: object;

Type declaration

MemberTypeDescription
keysetsobjectMap of keyset hash to keyset bytes
keyset hash are used to invalidate a given keyset

Source

src/getKeysets.ts:12

Functions

getKeysets()

function getKeysets<TChain>(publicClient: object, GetKeysetsParams: GetKeysetsParams): Promise<GetKeysetsReturnType>

Type parameters

Type parameter
TChain extends undefined | Chain<undefined | ChainFormatters>

Parameters

ParameterTypeDescription
publicClientobjectThe chain Viem Public Client
GetKeysetsParamsGetKeysetsParamsGetKeysetsParams

Returns

Promise<GetKeysetsReturnType>

Promise<GetKeysetsReturnType>

Example

const { keysets } = getKeysets(client, {
sequencerInbox: '0x211E1c4c7f1bF5351Ac850Ed10FD68CFfCF6c21b'
});

Source

src/getKeysets.ts:34