Preview v2
Previews a transaction against the latest network state, and returns the preview receipt. If the node has enabled it, you may be able to also preview against recent network state.
This endpoint supports V2 transactions (and beyond). If you still need to preview V1
transactions, you should use the /preview
endpoint instead.
This endpoint is effectively a proxy towards the Core API /transaction/preview-v2
endpoint. See the Core API documentation for more details.
Body
Responses
200
Successful Preview
application/json
4XX
Client-originated request error
application/json
post
POST /transaction/preview-v2 HTTP/1.1
Host: xrd-gateway.nownodes.io
Content-Type: application/json
Accept: */*
Content-Length: 307
{
"preview_transaction": {
"type": "Compiled",
"preview_transaction_hex": "<sample-preview-transaction-hex>"
},
"flags": {
"use_free_credit": true,
"assume_all_signature_proofs": true,
"skip_epoch_check": true,
"disable_auth_checks": true
},
"opt_ins": {
"core_api_receipt": true,
"radix_engine_toolkit_receipt": true,
"logs": true
}
}
{
"at_ledger_state_version": 1,
"receipt": {},
"radix_engine_toolkit_receipt": {},
"logs": [
{
"level": "text",
"message": "text"
}
]
}