Alchemy Logo

unsafe_batchTransaction

POST
/{apiKey}

Creates a BCS-serialized batched transaction that is not signed. This can be used to execute multiple actions atomically in one transaction block.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

signerstringrequired

The transaction signer's Sui address.

single_transaction_paramsobject[]required

A list of individual transaction instructions to include in the batch.

gasstringoptional

The gas object to be used. If omitted, one will be selected automatically.

gas_budgetstringrequired

The maximum amount of gas to be used for this transaction.

txn_builder_modeenumoptional

Whether this is a regular or dev-inspect transaction.

Allowed values:

Responses

200

The batched transaction block as BCS-encoded data, plus gas and input metadata.

Was this page helpful?