get_swap_wallet
Reads the caller wallet's shielded and unshielded balances, spendable coins, pending swap halves, and reserved coins to show what swaps can fund without spending.
Instructions
What the wallet of this MCP server (the caller seed) holds, shielded and unshielded. Shielded: address, public keys, and per token type the balance of the free coins, their number, spendable, the most ONE swap half can give (what its largest coins hold, up to maxInputs coins), and pending, what the halves built here bring back once their swaps land (the change and the wanted coins). While a half can still land the wallet is worth balance plus pending; a half can give only from balance, and revert_swap_offer moves a dropped half back into it. Also lists the halves built here that are not handed over yet (pendingHalves, with those of an earlier process marked restored) and the coins the SDK holds reserved (reserved, each with its ttl); one posted with post_swap_offer carries offerId and boardStatus and leaves the list once its offer filled. A maker half whose offer expired or was retired 15 minutes ago and that went into no job is released here on its own (released). Unshielded, under unshielded: the address a sender pays NIGHT to (mn_addr_...) and per token type, NIGHT first, the balance of the free coins, their number and reserved, what a payment built here holds until it landed. A first sync of the shielded coins from genesis takes about 5 minutes, during which the answer is { synced: false, syncingSeconds }: call again; the unshielded coins sync in seconds. Spends nothing.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_swap_wallet"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||