Home

Simulate transaction

POST
https://stacks.nownodes.io/v3/transactions/simulate

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Simulates a single fully signed Stacks transaction on top of a chain tip without committing any state changes.

By default, the transaction is simulated on top of the canonical chain tip. A specific chain tip can be selected using the tip query parameter.

The response includes the transaction execution result, generated events, execution cost, execution limit, and information about post-condition or VM errors.

The supplied transaction must be fully signed and valid.

Body

application/json

Fully signed SIP-005 encoded Stacks transaction represented as a hexadecimal string.

transaction_hexstringrequired

SIP-005 encoded transaction in hexadecimal format.

Parameters

tipstringquery

The chain tip on top of which the transaction should be simulated. If omitted, the canonical chain tip is used.

Response

200OK

Result of the simulated transaction

400Bad Request

Invalid request, invalid transaction, or a chain tip that cannot be used for transaction simulation.

401Unauthorized

Unauthorized.

404Not Found

Chain tip not found.

500Internal Server Error

Internal server error.