cURL
Proposals
Vote and Execute
Vote to approve and immediately execute a proposal in one operation
POST
cURL
Combines voting and execution into a single operation. More efficient than separate vote and execute calls when you want to finalize a proposal immediately.
How It Works
- Validates proposal is
ActiveorApproved - Filters signers who already approved
- Selects minimum signers needed to reach threshold
- First signer with
CAN_EXECUTEbecomes the executor - Returns transaction(s) for signing
When Threshold Is Already Met
If the proposal already has enough approvals, the voting step becomes a no-op—only execution occurs.
Permission Requirements
- All signers need
CAN_VOTE(2) - At least one signer needs
CAN_EXECUTE(4)
Transaction Output
Returns 1-2 transactions depending on size:- Single transaction: Vote + execute fit within 1232 bytes
- Two transactions: Submit vote first, then execute
When to Use Vote vs Vote-and-Execute
| Use Case | Endpoint |
|---|---|
| Approve and execute immediately | Vote-and-Execute |
| Approve without executing | Vote |
| Reject or cancel | Vote |
| No CAN_EXECUTE signer available | Vote |
Related Endpoints
- Vote on Proposal — Vote without executing
- Get Proposal — Check current state
Authorizations
Your Grid API key from the Grid Dashboard
Headers
Target Solana environment
Path Parameters
Smart account address (Solana public key)
Proposal address (Solana public key)