BATCH TRANSACTIONS

ACCOUNT TRANSACTIONS methods handle operations that have to do with onchain transactions and can affect your chain balance.

ACCOUNT TRANSACTIONS methods‌

sdk.

  • batchExecuteAccountTransaction()

  • batchSetAccountAuthKey()

  • estimateBatch()

  • submitBatch()

  • resetBatch()

batchExecuteAccountTransaction([options])

Creates a batch transaction.

DESCRIPTION

recipient

An address value to designate the Ethereum address that will be the receiver of the batch transaction.

value

A number value for the amount of ETH that should be sent.

data

A string value for the bytecode to be executed within the batch transaction.

batchSetAccountAuthKey([options])

Set the account auth key for the batch transaction.

DESCRIPTION

authKey

An address value that specifies the address of the auth key you want to set for this account.

type

A string value that specifies whether the auth key is Owner, Restricted or Removed.

estimateBatch(refundToken)

Estimates the gas cost required to send an onchain batch transaction.

This method takes one parameter: a refundToken address value to designate the Ethereum address of the consumable token that is used to estimate the gas cost as a meta-transaction. If no address value is provided, the gas cost is estimated as an on-chain transaction.

submitBatch(gasPrice)

Submits the batch transaction to the Ethereum blockchain.

This method takes one parameter: a gasPrice number value to designate the gas price in gwei for the amount you want to pay for each unit of gas.

resetBatch()

Resets the batch transaction process and removes any transaction data from the batch transaction.

.

If you encounter any bugs or issues, let us know in our early access Telegram chat group and we'd love to help!