Type/to search
Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
Capability Matrix
Centralized Exchanges
Decentralized Exchanges (DEX)
Prediction Markets
Securities and Futures
On-chain & Custom

On a Jupiter exchange object, query the status of a Solana transaction, optionally waiting until it is confirmed.

exchange.IO(k, signature)
exchange.IO(k, signature, waitMs)

Examples

Query the transaction status of an order.

javascript
function main() { var id = exchange.CreateOrder("SOL_USDC", "sell", -1, 0.1) if (!id) return var r = exchange.IO("receipt", String(id).split(",")[1], 60000) Log(r.state, r.fee) }

Returns

TypeDescription

object / null value

Returns {signature, state, slot, confirmationStatus, err, fee, blockTime}. state is success (confirmed), failed (failed on chain, with the reason in err) or pending (not confirmed; when the node cannot find the transaction yet, visible: false is added). After confirmation fee (SOL) and blockTime (seconds) are included. A null value is returned when the node request fails.

Arguments

NameTypeRequiredDescription

k

string

Yes

Selects what the exchange.IO() function does. Set it to receipt to query a transaction status.

signature

string

Yes

Transaction signature. For an order, pass the part after the comma in the order ID.

waitMs

number

No

Maximum wait time in milliseconds (at most 600000); the function returns early once the transaction is confirmed or fails. Omit it to check without waiting.

See Also