Skip to main content
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.
At least one signer must have CAN_EXECUTE permission (mask includes value 4). Unlike the vote endpoint, this is required.

How It Works

  1. Validates proposal is Active or Approved
  2. Filters signers who already approved
  3. Selects minimum signers needed to reach threshold
  4. First signer with CAN_EXECUTE becomes the executor
  5. 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

Authorizations

Authorization
string
header
required

Your Grid API key from the Grid Dashboard

Headers

x-grid-environment
string
required

Target Solana environment

Path Parameters

address
string
required

Smart account address (Solana public key)

proposal_address
string
required

Proposal address (Solana public key)

Body

application/json
signers
string[]
required
feeConfig
null | object

Response

Vote and execute transaction(s) created successfully

data
object
required
metadata
object
required