/transaction/dry-run REST API Endpoint
Body Parameters
tx
string
REQUIRED
The transaction hash in hexadecimal format
Returns
resultType
string
Retuns either `DispatchOutcome` if the transaction is valid or `TransactionValidityError` if the result is invalid.
result
string
If there was an error it will be the cause of the error. If the transaction executed correctly it will be `Ok'
validityErrorType
string
Specifies the type of error encountered. It can be one of these - `InvalidTransaction` or `UnknownTransaction`
Request
1curl --location 'https://docs-demo.dot-mainnet.quiknode.pro/transaction/dry-run' \2--header 'Content-Type: application/json' \3--header 'Accept: application/json' \4--data '{5"tx": "YOUR_TRANSACTION"6}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free