For the complete documentation index, see llms.txt. This page is also available as Markdown.

Wallet Execution

The HyperStream API returns wallet action plans from POST /v1/deposit/build. The plan is chain-specific, but the integration method is consistent:

  • You receive approvals[]

  • You execute them in order

  • You capture the transaction hash/signature for the action marked deposit: true

  • You submit that value to PUT /v1/deposit/submit

This page covers the two main execution patterns:

  • EVM (Ethereum, Arbitrum, Base, Optimism, etc.)

  • Solana

What is in a deposit plan?

A deposit plan typically includes some combination of:

  • A chain switch request (EVM)

  • One or more token approvals / permits (EVM)

  • The final deposit transaction (EVM or Solana)

Each approval/action may include:

  • request (EVM EIP-1193 request payload), or

  • transaction (Solana base64-encoded transaction)

  • waitForReceipt (suggestion to wait before continuing)

  • deposit: true on the action that represents the actual deposit

EVM: execute EIP-1193 requests

EVM plans are expressed as EIP-1193 request objects, so you can forward them directly to any EIP-1193 compatible wallet provider.

Common EVM UX considerations

  • If a chain switch fails, the wallet may require the chain to be added first.

  • Prefer showing users a clear stepper (Approve → Deposit) rather than firing multiple transactions without context.

  • If waitForReceipt is true, waiting for confirmation reduces the chance of downstream failures due to pending state.

Solana: execute base64 transactions

Solana plans return base64-encoded transactions. Your wallet adapter will typically expose signAndSendTransaction.

Last updated