check-accounts
Validate Solana/Anchor account constraints such as ownership, signer authority, token accounts, and duplicate mutable accounts to catch missing security checks in Rust source code.
Instructions
Check account validation: owner checks, signer verification, authority, token accounts, duplicate mutable accounts.
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": {
"source_code": "<source_code>"
},
"name": "check-accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source_code | Yes | Rust/Anchor source code |