Skip to main content

dryRunTransaction Query

Simulates a transaction without actually broadcasting it.

Updated on
Oct 16, 2024

dryRunTransaction Query

Parameters

encodedTransaction
string
REQUIRED
The transaction encoded as a hex string
utxoValidation
boolean
REQUIRED
A boolean flag for UTXO validation

Returns

data
object
The data object which contains the following fields:
dryRun
array
An array containing the result of the simulated transaction.
receiptType
string
The type of receipt generated by the simulation
data
string
The hexadecimal data associated with the transaction outcome
Request
1
curl --location 'https://docs-demo.fuel-mainnet.quiknode.pro/v1/graphql' \
2
--header 'Accept: application/json' \
3
--header 'Content-Type: application/json' \
4
--data '{
5
"query": "mutation DryRun($encodedTransaction: HexString!, $utxoValidation: Boolean) { dryRun(tx: $encodedTransaction, utxoValidation: $utxoValidation) { receiptType data } }",
6
"variables": {
7
"encodedTransaction": "YOUR_ENCODED_TRANSACTION_HERE",
8
"utxoValidation": true
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free