Skip to content

FUZD / fuzd-client / createClient

Function: createClient()

createClient(config): object

Parameters

config

ClientConfig

Returns

object

assignRemoteAccount()

assignRemoteAccount: (chainId) => Promise<RemoteAccountInfo>

Parameters

chainId

IntegerString

Returns

Promise<RemoteAccountInfo>

computeBalanceRequired()

computeBalanceRequired: (params) => Promise<{ amountReserved: bigint; balanceRequired: bigint; totalMaxCost: bigint; }>

Parameters

params
chainId

IntegerString

gas

bigint

maxFeePerGasAuthorized

bigint

slot

string

value

bigint

Returns

Promise<{ amountReserved: bigint; balanceRequired: bigint; totalMaxCost: bigint; }>

computeTotalMaxCost()

computeTotalMaxCost: (params) => bigint

Parameters

params
gas

bigint

maxFeePerGasAuthorized

bigint

value

bigint

Returns

bigint

getRemoteAccount()

getRemoteAccount: () => undefined | String0x

Returns

undefined | String0x

scheduleExecution()

scheduleExecution: (execution, options?) => Promise<{ info: ScheduleInfo; success: true; } | { error: unknown; success: false; }>

Parameters

execution

Submission

options?
fakeEncrypt

boolean

Returns

Promise<{ info: ScheduleInfo; success: true; } | { error: unknown; success: false; }>

Defined in

client/src/index.ts:95