Account Kit Wallet APIs

website·Indexed 41 days ago

https://accountkit.alchemy.com/

Simple APIs to send transactions with advanced capabilities.

Tokens
484
Snippets
1
Records
4
Agent score
17%

What's inside Account Kit

  1. Overview of Alchemy Wallet APIs

    Alchemy Wallet APIs allow developers to send transactions with advanced capabilities handled automatically, including gas sponsorship, transaction batching, and automatic retries. The workflow consists of four main steps: Preparing the calls (e.g., transfers or swaps), Signing using an embedded wallet or key, Sending (where Alchemy optimizes gas and sponsors fees), and Tracking the transaction status via API endpoints.
  2. Integrate Wallet APIs with external signers

    Alchemy Wallet APIs are compatible with any embedded wallet or key management solution. Recommended integration is via Privy (supporting social login, email OTP, and passkeys), but any viem-compatible provider or custom embedded wallet can be used as a signer.
  3. Send and track transactions using the Wallet API

    You can use the TypeScript SDK to prepare, sign, and send multiple calls in a single request and then poll for the transaction status using the returned ID.
    // Prepare, sign, and send — in one call
    const { id } = await client.sendCalls({
      calls: [
        { to: "0xContractA", data: "0x..." },
        { to: "0xContractB", data: "0x..." },
      ],
    });
    
    // Track
    const status = await client.waitForCallsStatus({ id });
  4. Advanced transaction capabilities of Wallet APIs

    The Wallet APIs provide several advanced features to improve user experience and transaction reliability:

    • Gas Sponsorship: Cover gas fees for users so they don't need native tokens (ETH/SOL). Includes custom spending rules.
    • ERC-20 Gas Payments: Allow users to pay for gas using tokens like USDC or USDT.
    • Batch Transactions: Combine multiple calls into a single atomic transaction (e.g., approve and swap).
    • Automatic Retries: Automatically re-price and resubmit stuck transactions.
    • Parallel Transactions: Send multiple transactions simultaneously without nonce collisions.
    • Session Keys: Grant scoped, time-limited signing permissions for autonomous actions.
    • Token Swaps: Built-in routing for same-chain and cross-chain swaps.
    • EIP-7702: Upgrade embedded EOA users to smart wallets.