Provider
Defined in: packages/sdk/src/types/index.ts:44
Provider interface - compatible with viem’s PublicClient
Properties
Section titled “Properties”chain?
Section titled “chain?”
optionalchain?:object
Defined in: packages/sdk/src/types/index.ts:86
Chain ID
id:
number
getCode?
Section titled “getCode?”
optionalgetCode?: (args) =>Promise<`0x${string}`|null|undefined>
Defined in: packages/sdk/src/types/index.ts:66
Account bytecode (EIP-1167 minimal proxy).
Parameters
Section titled “Parameters”address
Section titled “address”`0x${string}`
Returns
Section titled “Returns”Promise<`0x${string}` | null | undefined>
getEnsAddress?
Section titled “getEnsAddress?”
optionalgetEnsAddress?: (args) =>Promise<`0x${string}`|null>
Defined in: packages/sdk/src/types/index.ts:57
Get ENS address for name
Parameters
Section titled “Parameters”string
Returns
Section titled “Returns”Promise<`0x${string}` | null>
getEnsName?
Section titled “getEnsName?”
optionalgetEnsName?: (args) =>Promise<string|null>
Defined in: packages/sdk/src/types/index.ts:54
Get ENS name for address
Parameters
Section titled “Parameters”address
Section titled “address”`0x${string}`
Returns
Section titled “Returns”Promise<string | null>
getLogs?
Section titled “getLogs?”
optionalgetLogs?: (args) =>Promise<object[]>
Defined in: packages/sdk/src/types/index.ts:72
Logs for context.contract.factory.deployEvent.
Parameter shape is a subset of viem PublicClient.getLogs.
Parameters
Section titled “Parameters”address?
Section titled “address?”`0x${string}` | `0x${string}`[]
fromBlock?
Section titled “fromBlock?”bigint | LogBlockTag
toBlock?
Section titled “toBlock?”bigint | LogBlockTag
topics?
Section titled “topics?”(`0x${string}` | (`0x${string}` | null)[] | null)[]
Returns
Section titled “Returns”Promise<object[]>
getStorageAt?
Section titled “getStorageAt?”
optionalgetStorageAt?: (args) =>Promise<`0x${string}`|null|undefined>
Defined in: packages/sdk/src/types/index.ts:60
Storage slot read (EIP-1967 proxy implementation).
Parameters
Section titled “Parameters”address
Section titled “address”`0x${string}`
`0x${string}`
Returns
Section titled “Returns”Promise<`0x${string}` | null | undefined>
readContract?
Section titled “readContract?”
optionalreadContract?: (args) =>Promise<unknown>
Defined in: packages/sdk/src/types/index.ts:46
Read contract function
Parameters
Section titled “Parameters”readonly unknown[]
address
Section titled “address”`0x${string}`
readonly unknown[]
functionName
Section titled “functionName”string
Returns
Section titled “Returns”Promise<unknown>