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
<bigint
>
Parameters
params
chainId
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
expiry
number
maxFeePerGasAuthorized
bigint
onBehalf
`0x${string}`
paymentReserve
{ amount
: bigint
; broadcaster
: String0x
; }
paymentReserve.amount
bigint
paymentReserve.broadcaster
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