@lelantos-org/sdk / advanced / ViemReadCtx
Interface: ViemReadCtx
Defined in: @lelantos-org/sdk/dist/chain/viem/ctx.d.ts:5
State needed for reads, which work without an EVM key.
Properties
maspAddress
ts
readonly maspAddress: EvmAddress;Defined in: @lelantos-org/sdk/dist/chain/viem/ctx.d.ts:7
nativeAdapterAddress?
ts
readonly optional nativeAdapterAddress?: EvmAddress;Defined in: @lelantos-org/sdk/dist/chain/viem/ctx.d.ts:13
NativeAdapter deployed for this pool, if any. When undefined, native-coin paths are unavailable: the pool is ERC-20 only and has no fallback entry point.
permit2Address
ts
readonly permit2Address: EvmAddress;Defined in: @lelantos-org/sdk/dist/chain/viem/ctx.d.ts:8
publicClient
ts
readonly publicClient: object;Defined in: @lelantos-org/sdk/dist/chain/viem/ctx.d.ts:6
viem's PublicClient. Its members are viem's own and are documented there, not here.
Methods
chainId()
ts
chainId(): Promise<bigint>;Defined in: @lelantos-org/sdk/dist/chain/viem/ctx.d.ts:15
Resolves the chain id, caching after the first RPC round trip.
Returns
Promise<bigint>