Skip to content
Alchemy Logo

sendCalls (Solana)

function sendCalls(client, params): Promise<SolanaSendCallsResult>;

Defined in: packages/wallet-apis/src/actions/solana/sendCalls.ts:47

Prepares, signs, and submits Solana instructions in a single call. Internally calls prepareCalls, signPreparedCalls, and sendPreparedCalls.

const result = await client.sendCalls({
  calls: [
    {
      programId: "11111111111111111111111111111111",
      data: "0x...",
    },
  ],
  capabilities: {
    paymaster: { policyId: "your-policy-id" },
  },
});

ParameterTypeDescription

client

InnerSolanaWalletApiClient

The Solana wallet API client

params

SolanaSendCallsParams

Parameters for sending Solana calls

Promise<SolanaSendCallsResult>

The result containing the call ID

Was this page helpful?