Skip to main content
POST
/
v0
/
solana
/
post-transaction
/
scan
curl --request POST \
--url https://api.blockaid.io/v0/solana/post-transaction/scan \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"chain": "mainnet",
"options": [
"simulation",
"validation"
],
"tx_hash": "3diX8kbXNk6fc6JMpSSFEzvNUhHZxR5sYf68XG77LoWXtHQt4nrTyXpJzeKbMXQ7kfY4MK3Er5FKR7mQxnx6TwqG"
}
'
{
  "encoding": "base58",
  "status": "SUCCESS",
  "result": {
    "simulation": {
      "assets_diff": {},
      "delegations": {},
      "assets_ownership_diff": {},
      "accounts_details": [
        {
          "account_address": "<string>",
          "description": "<string>",
          "type": "PDA",
          "was_written_to": true,
          "owner": "<string>"
        }
      ],
      "account_summary": {
        "account_assets_diff": [
          {
            "asset": {
              "type": "SOL",
              "decimals": 123,
              "logo": "<string>"
            },
            "in": {
              "usd_price": 123,
              "summary": "<string>",
              "value": 123,
              "raw_value": 123
            },
            "out": {
              "usd_price": 123,
              "summary": "<string>",
              "value": 123,
              "raw_value": 123
            },
            "asset_type": "<string>"
          }
        ],
        "account_delegations": [
          {
            "asset": {
              "type": "<string>",
              "name": "<string>",
              "symbol": "<string>",
              "address": "<string>",
              "decimals": 123,
              "logo": "<string>"
            },
            "asset_type": "<string>",
            "delegate": "<string>",
            "delegation": {
              "usd_price": 123,
              "summary": "<string>",
              "value": 123,
              "raw_value": 123
            }
          }
        ],
        "account_ownerships_diff": [
          {
            "asset": {
              "type": "SOL",
              "decimals": 123,
              "logo": "<string>"
            },
            "in": {
              "usd_price": 123,
              "summary": "<string>",
              "value": 123,
              "raw_value": 123
            },
            "out": {
              "usd_price": 123,
              "summary": "<string>",
              "value": 123,
              "raw_value": 123
            },
            "pre_owner": "<string>",
            "post_owner": "<string>",
            "asset_type": "<string>"
          }
        ],
        "total_usd_diff": {
          "in": 123,
          "out": 123,
          "total": 123
        },
        "total_usd_exposure": {}
      }
    },
    "validation": {
      "result_type": "Benign",
      "reason": "<string>",
      "features": [
        "<string>"
      ],
      "extended_features": [
        {
          "type": "Benign",
          "feature_id": "<string>",
          "description": "<string>",
          "address": "<string>"
        }
      ]
    }
  },
  "error": "<string>",
  "error_details": {
    "type": "ApiError",
    "message": "<string>"
  },
  "request_id": "<string>"
}

Authorizations

X-API-Key
string
header
required

Body

application/json
tx_hash
string
required
chain
string
default:mainnet
options
enum<string>[]

List of options to include in the response

  • Options.validation: Include Options.validation output in the response

  • Options.simulation: Include Options.simulation output in the response

Minimum length: 1

Response

Successful Response

encoding
enum<string>
default:base58
required
Available options:
base58,
base64
status
enum<string>
required
Available options:
SUCCESS,
ERROR
request_id
string
required

Unique identifier of the request

result
object

Result of the request

error
string | null

Error message if the simulation failed

error_details
object

Error details