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<bigint>

Parameters

params
chainId

IntegerString

gas

bigint

maxFeePerGasAuthorized

bigint

slot

string

value

bigint

Returns

Promise<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
chainId

IntegerString

expiry

number

maxFeePerGasAuthorized

bigint

onBehalf

`0x${string}`

paymentReserve

{ amount: bigint; broadcaster: String0x; }

paymentReserve.amount

bigint

paymentReserve.broadcaster

String0x

slot

string

time

number

transaction

SimplerEthereumTransactionData | SimplerStarknetTransactionData

options?
fakeEncrypt

boolean

Returns

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

Defined in

client/src/index.ts:65