Solana

Scan Transaction

Changed on

Gets a transaction and returns a full simulation indicating what will happen in the transaction together with a recommended action and some textual reasons of why the transaction was flagged that way.

post/v0/solana/message/scan

Request

Request body

encoding'base58' | 'base64'
optionsSolanaOptions[]

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

  • Options.gas_estimation: Include gas estimation output in the response

account_addressstring required

The user's Solana account address. Can be either base58 or base64, independent of the encoding field, which applies to transactions only.

transactionsstring[] required

Transactions to scan

method'signAndSendTransaction' | 'signAndSendAllTransactions' | 'signTransaction' | 'signAllTransactions'

The RPC method used by the dApp to request a signature or send a transaction.

execution_mode'standard' | 'jito_bundle'

Execution mode for transaction scanning. standard for regular transactions, jito_bundle for Jito bundle transactions.

Response

Successful Response

encoding'base58' | 'base64' required
status'SUCCESS' | 'ERROR' required
errorstring nullable

User-friendly error message if the scan or simulation failed, e.g. "Simulation failed due to an error" or "The transaction was reverted".

request_idstring nullable required

Unique identifier of the request

Changes

    • breaking

      removed the enum value sendRawTransaction of the request property

    • breaking

      request property was restricted to a list of enum values

    • info

      added the new sendRawTransaction enum value to the request property

    • info

      added the new signAllTransactions enum value to the request property

    • info

      added the new signAndSendAllTransactions enum value to the request property

    • info

      added the new signAndSendTransaction enum value to the request property

    • info

      added the new signTransaction enum value to the request property