Loading...
Loading...
Buy or sell Backed xStocks (tokenized equities, e.g. TSLAx) on TON using jetton addresses from the xStocks API and TON MCP swap tools. Use when the user asks for xStocks, xStock, TSLAx, stock tokens on TON, or buying/selling equity jettons via Omniston.
npx skill4agent add ton-connect/kit ton-xstockston-swapCritical: USDT is the only working swap pair.
Omniston consistently returns no quote for TON → xStock and xStock → TON routes.
All xStock buys and sells must go through USDT. If the user lacks sufficient USDT, buy USDT with TON first (see §Pre-fund USDT below).
| Token | Jetton master |
|---|---|
| USDT (TON) | |
TSLAxcurlcurl -s "https://api.xstocks.fi/api/v2/public/assets/{symbol}"https://api.xstocks.fi/api/v2deployments[]network"Ton"addressfromTokentoTokencurl -s "https://api.xstocks.fi/api/v2/public/assets"deploymentsget_jetton_info--jettonAddress <jetton_master>| Action | Tools |
|---|---|
| Pre-fund USDT | |
| Buy xStock | |
| Sell xStock | |
| Verify | |
get_swap_quoteget_jetton_info| Tool | Arg | CLI flag |
|---|---|---|
| jettonAddress | |
| jettonAddress | |
| fromToken | |
| toToken | |
| amount | |
| slippageBps | |
| messages | |
| messages | |
| normalizedHash | |
get_jetton_balanceamountamountget_swap_quotefromToken"TON"toTokenamountsend_raw_transactionget_transaction_statuscompletedget_swap_quotefromTokentoTokenamountslippageBpsemulate_transactiontransaction.messagessend_raw_transactiontransaction.messagesget_transaction_statusnormalizedHashcompletedfailedDo not attempt TON → xStock directly. It will return no quote. Always route through USDT.
get_jetton_balanceamount"12.5"amountRawamountamountget_swap_quoteget_swap_quotefromTokentoTokenemulate_transactiontransaction.messagessend_raw_transactionget_transaction_statuscompletedfailedDo not attempt xStock → TON directly. Always sell into USDT.
get_swap_quoteton-swapton-balance