Skip to main content
POST
/
v1
/
security
/
transaction-preview
Preview a transaction
curl --request POST \
  --url https://api-nova.tech/v1/security/transaction-preview \
  --header 'Content-Type: application/json' \
  --data '
{
  "transaction": "<string>",
  "chain": "solana"
}
'
{
  "summary": "This transaction swaps SOL for USDC.",
  "actions": [
    {
      "type": "swap",
      "asset": "<string>",
      "amount": "<string>"
    }
  ],
  "warnings": [
    {
      "code": "LOW_LIQUIDITY",
      "message": "Liquidity is thin for this token."
    }
  ]
}

Body

application/json
transaction
string
required

Encoded transaction or simulation input accepted by your Nova plan.

chain
enum<string>
default:solana
Available options:
solana

Response

Transaction preview.

riskLevel
enum<string>
required
Available options:
low,
medium,
high,
critical
summary
string
required
Example:

"This transaction swaps SOL for USDC."

actions
object[]
required
warnings
object[]