submit_open_position
Submit a signed open-position transaction. Re-verifies HMAC permit, re-reads pool/balances, re-simulates (sigVerify true, including the NFT-mint partial signature), then broadcasts. Pass signedTransaction plus permit, wallet, and the complete summary from prepare_open_position, unchanged. If the wallet rewrote the message (Phantom Lighthouse / ComputeBudget), also pass unsignedTransaction from prepare. Returns signature and the new positionMint.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"signedTransaction": "<signedTransaction>",
"permit": "<permit>",
"wallet": "<wallet>",
"summary": "<summary>"
},
"name": "submit_open_position"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| permit | Yes | HMAC permit from prepare_open_position | |
| wallet | Yes | Wallet public key | |
| summary | Yes | Complete summary object from prepare_open_position, unchanged (bound by the permit) | |
| signedTransaction | Yes | Base64-encoded signed transaction | |
| unsignedTransaction | No | Base64 prepared transaction from prepare_open_position. Pass this when the wallet rewrote the message (Phantom Lighthouse / ComputeBudget). |