Dispatch Transaction
Wander Injected API dispatch() function
Last updated
Was this helpful?
Wander Injected API dispatch() function
Last updated
Was this helpful?
The dispatch()
function allows you to quickly sign and send a transaction to the network in a bundled format. It is best for smaller datas and contract interactions. If the bundled transaction cannot be submitted, it will fall back to a base layer transaction. The function returns the of the API call.
transaction
A valid Arweave transaction instance (without a keyfile)
Note: If you are trying to sign a larger piece of data (5 MB <), make sure to notify the user to not switch / close the browser tab. Larger transactions are split into chunks in the background and will take longer to sign.
Note: The function uses the default bundler node set by the user or the extension. Consider using the function to submit data to a custom bundler.
The dispatch()
function returns the result of the operation, including the ID of the submitted transaction, as well as if it was submitted in a bundle or on the base layer.