Check a Solana transaction before signing: ALLOW, WARN or BLOCK with balance changes (x402)

Check an unsigned Solana transaction before signing. Send its base64 serialization; malformed input is rejected before payment. We simulate it on mainnet and return ALLOW, WARN or BLOCK with SOL and token balance changes and reasons, including dangerous approvals, owner changes, excessive outflows and redirected swaps. Solana only. The published sample is synthetic and only shows an HTTP 402 quote; replace it with a current unsigned transaction before paying.

post/v1/tx-guard

Request

  • Base URL: https://getrugshield.com (the document declares no server; this is the origin it was published from)
  • URL: https://getrugshield.com/v1/tx-guard
  • Auth: none declared

Headers

Idempotency-Keystring

Canonical 43-character base64url encoding of 32 random bytes. Recommended on the first signed call and every retry for lost-response recovery; not required for the first inline paid result.

X-RugShield-Job-IDstring

Echo the opaque job_id from an unpaid 503 on a ready signed retry if no Idempotency-Key was used. The same signed proof and exact request are required.

Request body

transactionstring required

Unsigned Solana transaction (legacy or v0), base64-encoded.

signerstring

Base58 wallet that will sign; defaults to the transaction's fee payer.

Response

Completed paid result with a recoverable job ID; the server confirmed settlement before sending.

verdict'ALLOW' | 'WARN' | 'BLOCK' required
latency_msinteger required
guard_versionstring required
job_idstring required
status_urlstring required
chargedtrue required

Changes

No recorded changes to this operation across all 1 revision of this API.