/preview

Takes an unsigned transaction object and returns a fully classified transaction, including an enriched English description of the action that is about to take place, and all relevant asset transfers tagged.

Optionally, it takes a stateOverrides object, which allows you to customize the state of the chain before the transaction is previewed. Useful for more advanced applications. You can skip this object to preview the transaction in the "real" state of the chain.

Path Params
string
required

The chain name, as listed in the /chains endpoint.

Query Params
string

The account address from which perspective the transaction will be previewed (optional). Leave blank to use the raw 'from' of the transaction object.

int64

The block number to preview the transaction at (optional). Leave blank to use the latest block number.

Body Params

The unsigned transaction object, modeled after the standard format used by multiple EVM wallets.

transaction
object
stateOverrides
object | null
Headers
string
required
Defaults to demokey

API Key for Foresight API. To get an API Key, visit https://app.noves.fi/register

string
enum
Defaults to application/json

Generated from available response content types

Allowed:
Responses

Language
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json