Skip to main content

Parameters

chainId
string
default:"sui"
required
Unique identifier for a blockchain network.
id
number
default:1
required
Request identifier used to match responses.
jsonrpc
string
default:"2.0"
required
JSON-RPC version.
method
string
default:"sui_dryRunTransactionBlock"
required
JSON-RPC method name.
params
object
required
Base64-encoded BCS transaction block data.Positional parameters for sui_dryRunTransactionBlock:
  • params[]: BCS-encoded transaction block (TransactionKind).

Returns

result
object
Simulated transaction block execution result, including effects, events, and gas usage.
curl --request POST \
  --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=sui \
  --header 'content-type: application/json' \
  --data '{
    "id": 1,
    "jsonrpc": "2.0",
    "method": "sui_dryRunTransactionBlock",
    "params": [
      "AAACACB7qR3cfnF89wjJNwYPBASHNuwz+xdG2Zml5YzVxnftgAEAT4LxyFh7mNZMAL..."
    ]
  }'
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {}
}