prepare_solana_nonce_close
Tear down a previously-initialized durable-nonce account and return its full balance (~0.00144 SOL) to the main wallet. ix[0] = SystemProgram.nonceAdvance (self-protecting, same pattern as any durable-nonce-protected send — so this close tx itself won't expire during Ledger review), ix[1] = Syste...
This record as markdown: /tools/io-github-szhygulin-vaultpilot-mcp/prepare-solana-nonce-close.md
What prepare_solana_nonce_close does on VaultPilot MCP
AI agents call prepare_solana_nonce_close to permanently remove resources in VaultPilot MCP, typically in cleanup and lifecycle workflows. It does its job in a single call, and there is no undo.
| Parameter | Type | Required | Description |
|---|---|---|---|
wallet | string | Yes | Solana wallet whose durable-nonce account should be closed. The full balance (~0.00144 SOL rent-exempt seed) is returned to this same wallet. |
Parameters from the server's own tool schema.
Why prepare_solana_nonce_close is rated Critical
This tool irreversibly closes a durable-nonce account and drains its balance back to the main wallet. The destruction of the nonce account is permanent (cannot be undone without re-running init), and the action disrupts wallet functionality for future transactions. The combination of account teardown, balance draining, and operational impact on the wallet qualifies this as Destructive with high severity.
From the tool's definition 'Tear down a previously-initialized durable-nonce account', 'nonceWithdraw (drains the balance)', 'subsequent sends from this wallet will refuse until prepare_solana_nonce_init is run again'
Attacks that exploit this kind of access
The rule that runs prepare_solana_nonce_close safely
PolicyLayer is an MCP gateway: it sits between your AI agents and VaultPilot MCP, and checks every tool call against a rule you set before the call runs. Nothing changes on the server itself. For prepare_solana_nonce_close, this is the rule to start with:
prepare_solana_nonce_close is removed from the agent's tool list entirely, so the agent never calls it. The rest of the server keeps working.
The button opens the PolicyLayer dashboard: create your workspace, connect VaultPilot MCP, apply this rule, and every prepare_solana_nonce_close call is checked against it from then on.
Questions about prepare_solana_nonce_close
Tear down a previously-initialized durable-nonce account and return its full balance (~0.00144 SOL) to the main wallet. ix[0] = SystemProgram.nonceAdvance (self-protecting, same pattern as any durable-nonce-protected send — so this close tx itself won't expire during Ledger review), ix[1] = SystemProgram.nonceWithdraw (drains the balance). After broadcast, subsequent sends from this wallet will refuse until prepare_solana_nonce_init is run again. Refuses if no nonce account exists for the wallet. It is categorised as a Destructive tool in the VaultPilot MCP MCP Server, which means it can permanently delete or destroy data. Block by default and require explicit approval.
prepare_solana_nonce_close accepts 1 parameter: wallet. Required: wallet. The full parameter table on this page comes from the server's own tool schema.
Register the VaultPilot MCP server in PolicyLayer and add a rule for prepare_solana_nonce_close: allow, deny, rate-limit, or require approval. Point your MCP client at the PolicyLayer proxy URL and the rule is enforced on every call, before it reaches VaultPilot MCP. Nothing to install.
prepare_solana_nonce_close is a Destructive tool with critical risk. Critical-risk tools should be blocked by default and only enabled with explicit human approval.
Yes. Add a rate_limit block to the prepare_solana_nonce_close rule in your PolicyLayer policy. For example, setting max: 10 and window: 60 limits the tool to 10 calls per minute. Rate limits are tracked per agent session and reset automatically.
Set action: deny in the PolicyLayer policy for prepare_solana_nonce_close. The AI agent will receive a policy violation error and cannot call the tool. You can also include a reason field to explain why the tool is blocked.
prepare_solana_nonce_close is provided by the VaultPilot MCP server (vaultpilot-mcp). PolicyLayer sits as a proxy in front of this server to enforce policies before tool calls reach the server.
More on VaultPilot, and thousands of servers like it.
Across the catalogue