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 addresssingle_transaction_params
:<[RPCTransactionRequestParams]>
- list of transaction request parametersgas
:<ObjectID>
- gas object to be used in this transaction, node will pick one from the signer's possession if not providedgas_budget
:<BigInt_for_uint64>
- the gas budget, the transaction will fail if the gas cost exceed the budgettxn_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.
- gas :
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"
}
]
}
]
}'