execute
Execute is our main wrapper for calls on mintbase.js
It accepts a first Object as Argument that setup the batch call with the desired data.
It accepts a N number of transactions.
execute = async ({ wallet, account, callbackUrl = mbjs.keys.callbackUrl, callbackArgs }: NearExecuteOptions, ...calls: NearContractCall[]):
execute
takes one Argument as NearExecuteOptions
and also one or more NearContractCall
callbackUrl:
this argument can be set within mbjs.config ( globally ), thus if passed globally theres no need to be passed in the first obj argument. or in the execute method. it must be passed in full url. ex: "https://www.yourwebsite.xyz/success"
callbackArgs:
Optional object that will be passed as an argument on the url, ex: "https://www.yourwebsite.xyz/success?signMeta=arg1:XYZ"
React example
Example usage of list method in a hypothetical React component:
ListComponent.ts
Last updated
Was this helpful?