Skip to main content

unsafe_batchTransaction

Transaction Builder API Create an unsigned batched transaction.

Transaction Builder API Create an unsigned batched transaction.

Parameters

  • signer : <SuiAddress> - the transaction signer's Sui address
  • single_transaction_params : <[RPCTransactionRequestParams]> - list of transaction request parameters
  • gas : <ObjectID> - gas object to be used in this transaction, node will pick one from the signer's possession if not provided
  • gas_budget : <BigInt_for_uint64> - the gas budget, the transaction will fail if the gas cost exceed the budget
  • txn_builder_mode : <SuiTransactionBlockBuilderMode> - Whether this is a regular transaction or a Dev Inspect Transaction

Returns

  • TransactionBlockBytes : <TransactionBlockBytes>
    • gas : <[ObjectRef]> - the gas objects to be used
    • inputObjects : <[InputObjectKind]> - objects to be used in this transaction
    • txBytes : <[Base64]> - BCS serialized transaction data bytes without its type tag, as base-64 encoded string.

Example Request and Result for unsafe_batchTransaction

Request

curl --location --request POST 'https://sui-testnet.public.qa.blastapi.io' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"id": 1,
"method": "suix_subscribeEvent",
"params": [
{
"All": [
{
"EventType": "MoveEvent"
},
{
"Package": "0x2"
},
{
"Module": "bag"
}
]
}
]
}'