FUZD / fuzd-client / createClient
Function: createClient()
createClient(
config
):object
Parameters
config
Returns
object
assignRemoteAccount()
assignRemoteAccount: (
chainId
) =>Promise
<RemoteAccountInfo
>
Parameters
chainId
Returns
Promise
<RemoteAccountInfo
>
computeBalanceRequired()
computeBalanceRequired: (
params
) =>Promise
<{amountReserved
:bigint
;balanceRequired
:bigint
;totalMaxCost
:bigint
; }>
Parameters
params
chainId
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
options?
fakeEncrypt
boolean
Returns
Promise
<{ info
: ScheduleInfo
; success
: true
; } | { error
: unknown
; success
: false
; }>
Defined in
client/src/index.ts:95