<!--
Sitemap:
- [Tempo Accounts SDK - Getting Started](/docs/): Set up the Tempo Accounts SDK to create, manage, and interact with accounts on Tempo.
- [Deploying to Production](/docs/production): Things to consider before deploying your application with the Tempo Accounts SDK to production.
- [FAQ](/docs/faq): Frequently asked questions about the Tempo Accounts SDK.
- [Connect Accounts](/docs/guides/connect-accounts): Connect a Tempo account in your application.
- [Authentication](/docs/guides/authentication): Authenticate connected accounts against your own server with a signed SIWE challenge.
- [Identity](/docs/guides/identity): Request and verify identity claims about a connected account, starting with a verified email.
- [Transfers](/docs/guides/transfers): Send stablecoin transfers from a connected Tempo account, initiated either by the user or by your server.
- [Spend Permissions](/docs/guides/spend-permissions): Authorize spend limits, call scopes, and expiries so repeat transfers can be signed without a confirmation prompt.
- [React Native](/docs/guides/react-native): Set up Tempo Accounts in a React Native app.
- [Subscriptions](/docs/guides/subscriptions): Charge recurring payments from a connected Tempo account.
- [Fee Sponsorship](/docs/guides/fee-sponsorship): Sponsor transaction fees from a server-controlled policy.
- [Deposits](/docs/guides/deposits): Open the Tempo deposit flow from a connected account and let the user choose deposit details.
- [Swaps](/docs/guides/swaps): Open the Tempo swap flow from a connected account with optional pre-filled intent fields.
- [Theming](/docs/guides/theming): Match embedded account surfaces to your product.
- [CLI](/docs/guides/cli): Authorize and use Tempo accounts from command-line tools.
- [Adapters](/docs/adapters/): Choose the signing adapter for your Tempo Accounts SDK integration.
- [Tempo Wallet Adapter](/docs/adapters/tempo-wallet): Use Tempo Wallet as the hosted universal wallet adapter.
- [WebAuthn Adapter](/docs/adapters/webauthn): Use domain-bound passkeys as the account signing adapter.
- [Turnkey Adapter](/docs/adapters/turnkey): Use Turnkey-managed wallet accounts as the account signing adapter.
- [Privy Adapter](/docs/adapters/privy): Use Privy embedded wallets as the account signing adapter.
- [Private Key Adapter](/docs/adapters/private-key): Sign in-process with a `secp256k1` private key.
- [Custom Adapter](/docs/adapters/custom): Author your own adapter with the `Adapter.define` API.
- [Adapters](/docs/api/adapters): Pluggable adapters for the Tempo Accounts SDK Provider.
- [dialog](/docs/api/dialog): Adapter for the Tempo Wallet dialog, an embedded iframe or popup for account management.
- [local](/docs/api/local): Key-agnostic adapter for defining arbitrary account types and signing mechanisms.
- [mobileWebAuth](/docs/api/mobileWebAuth): Mobile web auth adapter for browser-session wallet requests.
- [postMessage](/docs/api/postMessage): Connect to wallet from anywhere on the web
- [privy](/docs/api/privy): React adapter backed by Privy sessions and embedded Ethereum wallets.
- [secp256k1](/docs/api/secp256k1): Adapter that signs in-process with a `secp256k1` private key.
- [turnkey](/docs/api/turnkey): Adapter backed by Turnkey client sessions.
- [webAuthn](/docs/api/webAuthn): Adapter for passkey-based accounts using WebAuthn registration and authentication.
- [Dialog](/docs/api/dialogs): Dialog modes for embedding the Tempo Wallet.
- [Dialog.iframe](/docs/api/dialog.iframe): Embed the Tempo Wallet auth UI in an iframe dialog element.
- [Dialog.popup](/docs/api/dialog.popup): Open the Tempo Wallet auth UI in a popup window.
- [Expiry](/docs/api/expiry): Utility functions for computing access key expiry timestamps.
- [Provider](/docs/api/provider): Create an EIP-1193 provider for managing accounts on Tempo.
- [Rpc](/docs/api/rpc): Per-method Zod schemas and shared building blocks for the Accounts JSON-RPC surface.
- [Schema](/docs/api/schema): Zod-based JSON-RPC schema definitions for the Accounts provider.
- [TrustedHosts](/docs/api/trustedHosts): Trusted host mappings and matching helpers for dialog adapters.
- [WebAuthnCeremony](/docs/api/webauthnceremony): Pluggable strategy for WebAuthn registration and authentication ceremonies.
- [WebAuthnCeremony.from](/docs/api/webauthnceremony.from): Create a WebAuthnCeremony from a custom implementation.
- [WebAuthnCeremony.server](/docs/api/webauthnceremony.server): Server-backed WebAuthn ceremony that delegates to a remote handler.
- [CLI](/docs/cli/provider): Create a Provider for CLI environments.
- [eth_accounts](/docs/rpc/eth_accounts): Get the addresses of the currently connected accounts.
- [eth_chainId](/docs/rpc/eth_chainId): Get the chain ID of the currently active chain.
- [eth_fillTransaction](/docs/rpc/eth_fillTransaction): Fills missing transaction fields and returns wallet-aware metadata.
- [eth_requestAccounts](/docs/rpc/eth_requestAccounts): Request access to user accounts, prompting the user to connect if needed.
- [eth_sendTransaction](/docs/rpc/eth_sendTransaction): Send a transaction from the connected account.
- [eth_sendTransactionSync](/docs/rpc/eth_sendTransactionSync): Send a transaction and wait for the receipt.
- [eth_signTransaction](/docs/rpc/eth_signTransaction): Sign a transaction without broadcasting it.
- [eth_signTypedData_v4](/docs/rpc/eth_signTypedData_v4): Sign EIP-712 typed structured data with the connected account.
- [personal_sign](/docs/rpc/personal_sign): Sign a message with the connected account.
- [wallet_authorizeAccessKey](/docs/rpc/wallet_authorizeAccessKey): Authorize an access key for delegated transaction signing.
- [wallet_connect](/docs/rpc/wallet_connect): Connect account(s) with optional capabilities like access key authorization.
- [wallet_deposit](/docs/rpc/wallet_deposit): Open the wallet deposit flow with optional pre-filled fields.
- [wallet_depositZone](/docs/rpc/wallet_depositZone): Open the wallet zone-deposit flow with optional pre-filled fields.
- [wallet_disconnect](/docs/rpc/wallet_disconnect): Disconnect the connected account(s).
- [wallet_getBalances](/docs/rpc/wallet_getBalances): Get token balances for an account.
- [wallet_getCallsStatus](/docs/rpc/wallet_getCallsStatus): Get the status of a batch of calls sent via wallet_sendCalls.
- [wallet_getCapabilities](/docs/rpc/wallet_getCapabilities): Get account capabilities for specified chains.
- [wallet_revokeAccessKey](/docs/rpc/wallet_revokeAccessKey): Revoke a previously authorized access key.
- [wallet_send](/docs/rpc/wallet_send): Open the wallet send-token flow with optional pre-filled fields.
- [wallet_sendCalls](/docs/rpc/wallet_sendCalls): Send a batch of calls from the connected account.
- [wallet_swap](/docs/rpc/wallet_swap): Open the wallet swap flow with optional pre-filled swap intent fields.
- [wallet_switchEthereumChain](/docs/rpc/wallet_switchEthereumChain): Switch the provider's active chain.
- [wallet_withdrawZone](/docs/rpc/wallet_withdrawZone): Open the wallet zone-withdraw flow with optional pre-filled fields.
- [Remote](/docs/api/remote): Bridge that runs inside the wallet's iframe/popup and serves RPC requests from the host SDK.
- [Remote.create](/docs/api/remote.create): Create a remote context bound to a Messenger and Provider.
- [Remote.useEnsureVisibility](/docs/api/remote.useEnsureVisibility): React hook that monitors iframe visibility and falls back to a popup when occluded.
- [Remote.useState](/docs/api/remote.useState): React hook to subscribe to a remote context's state store.
- [Remote.useTheme](/docs/api/remote.useTheme): React hook that applies theme overrides from URL search params and live messenger updates.
- [Remote.validateSearch](/docs/api/remote.validateSearch): Validate an RPC request payload from URL search params.
- [Tempo Accounts Server Handlers](/docs/server/): Configure server-side Tempo Accounts SDK handlers for relaying wallet RPC requests, composing backends, and managing WebAuthn ceremonies.
- [Handler.auth](/docs/server/handler.auth): Server handler that issues SIWE-based authentication challenges and sessions.
- [Handler.codeAuth](/docs/server/handler.codeAuth): Server handler for the device-code (PKCE) access-key bootstrap flow.
- [Handler.compose](/docs/server/handler.compose): Compose multiple server handlers into a single handler.
- [Handler.exchange](/docs/server/handler.exchange): Server handler that returns Stablecoin DEX quotes and ready-to-submit calls.
- [Handler.relay](/docs/server/handler.relay): Server handler that proxies certain RPC requests with wallet-aware enrichment.
- [Handler.webAuthn](/docs/server/handler.webAuthn): Server-side WebAuthn ceremony handler for registration and authentication.
- [hc](/docs/server/hc): Typed RPC client for handlers built with the Tempo Accounts SDK.
- [Identity.verify](/docs/server/identity.verify): Verify a wallet-issued identity token (verified email) against an issuer's JWKS.
- [Kv](/docs/server/kv): Key-value store adapters for server-side persistence.
- [Kv.cloudflare](/docs/server/kv.cloudflare): Kv adapter backed by a Cloudflare Workers KV namespace.
- [Kv.durableObject](/docs/server/kv.durableObject): Kv adapter backed by a Cloudflare Durable Object with atomic take and create.
- [Kv.from](/docs/server/kv.from): Wrap a custom Kv-shaped object so the SDK accepts it as a Kv.
- [Kv.memory](/docs/server/kv.memory): In-memory Kv adapter for tests and single-process deployments.
- [Keystore](/docs/api/keystore): Pluggable backends for key material.
- [Keystore.p256](/docs/api/keystore.p256): Pure-JS P-256 keystore.
- [Keystore.secp256k1](/docs/api/keystore.secp256k1): Pure-JS secp256k1 keystore.
- [Keystore.webCryptoP256](/docs/api/keystore.webCryptoP256): WebCrypto P-256 keystore.
- [Storage](/docs/api/storage): Pluggable storage adapters for persisting provider state.
- [Storage.combine](/docs/api/storage.combine): Combine multiple Storage adapters into one.
- [Storage.cookie](/docs/api/storage.cookie): Cookie-backed Storage adapter.
- [Storage.from](/docs/api/storage.from): Create a Storage adapter from a custom implementation.
- [Storage.idb](/docs/api/storage.idb): IndexedDB-backed Storage adapter.
- [Storage.localStorage](/docs/api/storage.localStorage): localStorage-backed Storage adapter.
- [Storage.memory](/docs/api/storage.memory): In-memory Storage adapter.
- [asyncStorage](/docs/api/storage.asyncStorage): React Native Storage adapter backed by AsyncStorage.
- [secureMmkv](/docs/api/storage.secureMmkv): Encrypted React Native Storage adapter backed by MMKV.
- [Tempo Accounts SDK](/index): The fastest way to add stablecoins to your application.
- [Secp256k1 Adapter](/docs/adapters/secp256k1): Sign in-process with a `secp256k1` private key.
- [Bring Your Auth](/docs/enterprise/bring-your-auth/): Connect enterprise auth and signing systems to Tempo accounts.
- [Hosted Universal Wallets](/docs/enterprise/hosted-universal-wallets): Stub for hosting a universal wallet on your own domain.
- [Handler.feePayer (Deprecated)](/docs/server/handler.feePayer): Deprecated — use Handler.relay with feePayer option instead.
- [tempoWallet](/docs/wagmi/tempoWallet): Wagmi connector for the Tempo Wallet dialog.
- [webAuthn](/docs/wagmi/webAuthn): Wagmi connector for passkey-based WebAuthn accounts.
- [AWS KMS](/docs/enterprise/bring-your-auth/aws-kms): Stub for integrating AWS KMS-backed signing with the Tempo Accounts SDK.
- [Custom Auth](/docs/enterprise/bring-your-auth/custom): Stub for first-party enterprise auth and signing integrations.
- [Privy](/docs/enterprise/bring-your-auth/privy): Enterprise notes for integrating Privy-backed auth with the Tempo Accounts SDK.
- [Turnkey](/docs/enterprise/bring-your-auth/turnkey): Stub for integrating Turnkey-backed signing with the Tempo Accounts SDK.
-->

# `eth_fillTransaction`

Fills missing transaction fields (gas, nonce, fees) via the node, with wallet-aware enrichment — fee token resolution, simulation-based balance diffs, conditional sponsorship, and automatic AMM resolution for insufficient balances.

When sent through [`Handler.relay`](/docs/server/handler.relay), the response is enriched with a `capabilities` object containing balance diffs, fee estimates, sponsor info, and swap details.

When the sender has a pending locally managed access key, `Provider` attaches the pending `keyAuthorization` before fill so the returned gas covers first-use key publication. Fill and signing-only flows keep that pending authorization available for retry; successful send and broadcast paths consume it.

## Request

```ts
type Request = {
  method: 'eth_fillTransaction'
  params: [{
    /** Access list entries. */
    accessList?: { address: `0x${string}`; storageKeys: `0x${string}`[] }[]
    /** Batch of calls. */
    calls?: {
      /** Calldata. */
      data?: `0x${string}`
      /** Recipient. */
      to?: `0x${string}`
      /** Value to transfer (hex-encoded bigint). */
      value?: `0x${string}`
    }[]
    /** Chain ID (hex-encoded number). */
    chainId?: `0x${string}`
    /** Top-level calldata (when not using `calls`). */
    data?: `0x${string}`
    /**
     * Fee payer override. `true` enables the relay's default fee payer,
     * `false` disables it, or a URL string points at a custom fee payer
     * service.
     */
    feePayer?: boolean | string
    /** Pre-computed fee payer signature payload. */
    feePayerSignature?: Record<string, unknown>
    /** Fee token to use. If omitted, the relay picks the user's best token. */
    feeToken?: `0x${string}`
    /** Sender address. */
    from?: `0x${string}`
    /** Gas limit (hex-encoded bigint). */
    gas?: `0x${string}`
    /** Key authorization for access key transactions. */
    keyAuthorization?: KeyAuthorization
    /** Raw key material (e.g. compressed/uncompressed public key bytes). */
    keyData?: `0x${string}`
    /** Address of the key being used to sign. */
    keyId?: `0x${string}`
    /** Key type used to sign. */
    keyType?: 'secp256k1' | 'p256' | 'webAuthn'
    /** Max fee per gas (hex-encoded bigint). */
    maxFeePerGas?: `0x${string}`
    /** Max priority fee per gas (hex-encoded bigint). */
    maxPriorityFeePerGas?: `0x${string}`
    /** Nonce (hex-encoded number). */
    nonce?: `0x${string}`
    /** Nonce key (hex-encoded bigint). */
    nonceKey?: `0x${string}`
    /** Top-level recipient (when not using `calls`). */
    to?: `0x${string}`
    /** Value to transfer (hex-encoded bigint). */
    value?: `0x${string}`
    /** Valid after timestamp (hex-encoded number, unix seconds). */
    validAfter?: `0x${string}`
    /** Valid before timestamp (hex-encoded number, unix seconds). */
    validBefore?: `0x${string}`
  }]
}
```

## Response

```ts
type Response = {
  /** Wallet-specific capabilities computed during fill. */
  capabilities: {
    /** AMM swap injected to cover an insufficient balance. */
    autoSwap?: {
      /** Max input amount with slippage applied. */
      maxIn: SwapAmount
      /** Deficit amount that triggered the swap. */
      minOut: SwapAmount
      /** Slippage tolerance (e.g. 0.05 = 5%). */
      slippage: number
    }

    /** Per-account balance diffs from simulation (swap-related diffs excluded). */
    balanceDiffs?: {
      [account: `0x${string}`]: BalanceDiff[]
    }

    /** Fee estimate for the transaction. */
    fee?: {
      /** Raw fee amount in token units. */
      amount: `0x${string}`
      /** Token decimals (e.g. 6). */
      decimals: number
      /** Human-readable fee (e.g. "0.028022"). */
      formatted: string
      /** Token symbol (e.g. "AlphaUSD"). */
      symbol: string
    }

    /** Structured error details when the fill fails. */
    error?: {
      /** Decoded ABI item that produced the revert (when known). */
      abiItem?: Record<string, unknown>
      /** Raw revert data (hex-encoded). */
      data?: `0x${string}`
      /** Revert error name (e.g. "InsufficientBalance"). */
      errorName: string
      /** Human-readable error message. */
      message: string
    }

    /** Funding requirement when InsufficientBalance is encountered. */
    requireFunds?: {
      /** Deficit amount in token units. */
      amount: `0x${string}`
      /** Token decimals (e.g. 6). */
      decimals: number
      /** Human-readable deficit (e.g. "100.000000"). */
      formatted: string
      /** Token address. */
      token: `0x${string}`
      /** Token symbol (e.g. "USDC.e"). */
      symbol: string
    }

    /** Sponsor details, present when `sponsored` is `true`. */
    sponsor?: {
      /** Sponsor address. */
      address: `0x${string}`
      /** Sponsor display name. */
      name?: string
      /** Sponsor URL. */
      url?: string
    }

    /** Whether the transaction is sponsored by a fee payer. */
    sponsored: boolean
  }
  /** Fully filled transaction. */
  tx: Record<string, unknown>
}

type BalanceDiff = {
  /** Token address. */
  address: `0x${string}`
  /** Token decimals (e.g. 6). */
  decimals: number
  /** Direction relative to the user. */
  direction: 'incoming' | 'outgoing'
  /** Human-readable formatted amount (e.g. "100.00"). */
  formatted: string
  /** Token name (e.g. "USDC.e"). */
  name: string
  /** Addresses receiving this asset. */
  recipients: readonly `0x${string}`[]
  /** Token symbol (e.g. "USDC.e"). */
  symbol: string
  /** Token amount. */
  value: `0x${string}`
}

type SwapAmount = {
  /** Token decimals. */
  decimals: number
  /** Human-readable formatted amount. */
  formatted: string
  /** Token name (e.g. "AlphaUSD"). */
  name: string
  /** Token symbol (e.g. "AlphaUSD"). */
  symbol: string
  /** Token address. */
  token: `0x${string}`
  /** Amount. */
  value: `0x${string}`
}
```

## Example

```ts twoslash
// @noErrors
import { Provider } from 'accounts'

const provider = Provider.create()

const [account] = await provider.request({
  method: 'eth_accounts',
})

// ---cut---
const result = await provider.request({
  method: 'eth_fillTransaction',
  params: [{
    from: account,
    calls: [{
      to: '0x20c000000000000000000000b9537d11c60e8b50', // USDC.e
      // transfer 100 USDC.e
      data: '0xa9059cbb000000000000000000000000cafebabecafebabecafebabecafebabecafebabe0000000000000000000000000000000000000000000000000000000005f5e100',
    }],
  }],
})

result.capabilities
// {
//   balanceDiffs: {
//     '0x1234567890abcdef1234567890abcdef12345678': [{
//       address: '0x20c000000000000000000000b9537d11c60e8b50',
//       decimals: 6,
//       direction: 'outgoing',
//       formatted: '100.000000',
//       name: 'USDC.e',
//       recipients: ['0xcafebabecafebabecafebabecafebabecafebabe'],
//       symbol: 'USDC.e',
//       value: '0x5f5e100',
//     }],
//   },
//   fee: {
//     amount: '0x6b86',
//     decimals: 6,
//     formatted: '0.027526',
//     symbol: 'pathUSD',
//   },
//   sponsored: false,
// }
```

### With Fee Token

Pay fees with a specific stablecoin.

```ts twoslash
// @noErrors
import { Provider } from 'accounts'
const provider = Provider.create()
const [account] = await provider.request({ method: 'eth_accounts' })
// ---cut---
const result = await provider.request({
  method: 'eth_fillTransaction',
  params: [{
    from: account,
    calls: [{
      to: '0x20c000000000000000000000b9537d11c60e8b50', // USDC.e
      // transfer 100 USDC.e
      data: '0xa9059cbb000000000000000000000000cafebabecafebabecafebabecafebabecafebabe0000000000000000000000000000000000000000000000000000000005f5e100',
    }],
    feeToken: '0x20c000000000000000000000b9537d11c60e8b50', // USDC.e
  }],
})

result.capabilities.fee
// {
//   amount: '0x6b86',
//   decimals: 6,
//   formatted: '0.027526',
//   symbol: 'USDC.e',
// }
```

### With Sponsorship

When the relay is configured with a [`feePayer`](/docs/server/handler.relay#feepayer), validated transactions are sponsored. The response includes `sponsored: true` and `sponsor` details.

```ts twoslash
// @noErrors
import { Provider } from 'accounts'
const provider = Provider.create()
const [account] = await provider.request({ method: 'eth_accounts' })
// ---cut---
const result = await provider.request({
  method: 'eth_fillTransaction',
  params: [{
    from: account,
    calls: [{
      to: '0x20c000000000000000000000b9537d11c60e8b50', // USDC.e
      // transfer 100 USDC.e
      data: '0xa9059cbb000000000000000000000000cafebabecafebabecafebabecafebabecafebabe0000000000000000000000000000000000000000000000000000000005f5e100',
    }],
  }],
})

result.capabilities.sponsored
// true

result.capabilities.sponsor
// {
//   address: '0x1234567890abcdef1234567890abcdef12345678',
//   name: 'My App',
//   url: 'https://myapp.com',
// }
```

### AMM Resolution

When the user has insufficient balance of a required token, the relay automatically injects swap calls (approve + buy) via the [Stablecoin DEX](https://docs.tempo.xyz/guide/stablecoin-dex). The swap details are reported in `capabilities.autoSwap`, and swap-related balance diffs are excluded from `capabilities.balanceDiffs`.

```ts twoslash
// @noErrors
import { Provider } from 'accounts'
const provider = Provider.create()
const [account] = await provider.request({ method: 'eth_accounts' })
// ---cut---
const result = await provider.request({
  method: 'eth_fillTransaction',
  params: [{
    from: account,
    calls: [{
      to: '0x20c000000000000000000000b9537d11c60e8b50', // USDC.e
      // transfer 100 USDC.e
      data: '0xa9059cbb000000000000000000000000cafebabecafebabecafebabecafebabecafebabe0000000000000000000000000000000000000000000000000000000005f5e100',
    }],
  }],
})

result.capabilities.balanceDiffs
// {
//   '0x1234567890abcdef1234567890abcdef12345678': [{
//     address: '0x20c0000000000000000000000000000000000001',
//     decimals: 6,
//     direction: 'outgoing',
//     formatted: '100.000000',
//     name: 'AlphaUSD',
//     recipients: ['0xcafebabecafebabecafebabecafebabecafebabe'],
//     symbol: 'AlphaUSD',
//     value: '0x5f5e100',
//   }],
// }

result.capabilities.autoSwap
// {
//   maxIn: {
//     decimals: 6,
//     formatted: '105.000000',
//     name: 'AlphaUSD',
//     symbol: 'AlphaUSD',
//     token: '0x20c0000000000000000000000000000000000001',
//     value: '0x6422c40',
//   },
//   minOut: {
//     decimals: 6,
//     formatted: '100.000000',
//     name: 'USDC.e',
//     symbol: 'USDC.e',
//     token: '0x20c000000000000000000000b9537d11c60e8b50',
//     value: '0x5f5e100',
//   },
//   slippage: 0.05,
// }

result.capabilities.fee
// {
//   amount: '0x6b86',
//   decimals: 6,
//   formatted: '0.027526',
//   symbol: 'pathUSD',
// }
```

### Error Details

When `eth_fillTransaction` fails, the relay returns structured error details in `capabilities.error` instead of throwing.

```ts twoslash
// @noErrors
import { Provider } from 'accounts'
const provider = Provider.create()
const [account] = await provider.request({ method: 'eth_accounts' })
// ---cut---
const result = await provider.request({
  method: 'eth_fillTransaction',
  params: [{
    from: account,
    calls: [{
      to: '0x20c000000000000000000000b9537d11c60e8b50', // USDC.e
      data: '0xa9059cbb000000000000000000000000cafebabecafebabecafebabecafebabecafebabe0000000000000000000000000000000000000000000000000000000005f5e100',
    }],
  }],
})

result.capabilities.error
// {
//   errorName: 'BelowMinimumOrderSize',
//   message: 'Below minimum order size: 1000000.',
// }
```

### Require Funds

For `InsufficientBalance` errors, the relay also returns a `capabilities.requireFunds` object with the exact deficit amount and token metadata.

```ts twoslash
// @noErrors
import { Provider } from 'accounts'
const provider = Provider.create()
const [account] = await provider.request({ method: 'eth_accounts' })
// ---cut---
const result = await provider.request({
  method: 'eth_fillTransaction',
  params: [{
    from: account,
    calls: [{
      to: '0x20c000000000000000000000b9537d11c60e8b50', // USDC.e
      // transfer 100 USDC.e (but account has 0)
      data: '0xa9059cbb000000000000000000000000cafebabecafebabecafebabecafebabecafebabe0000000000000000000000000000000000000000000000000000000005f5e100',
    }],
  }],
})

result.capabilities.requireFunds
// {
//   amount: '0x5f5e100',
//   decimals: 6,
//   formatted: '100.000000',
//   token: '0x20c000000000000000000000b9537d11c60e8b50',
//   symbol: 'USDC.e',
// }

result.capabilities.balanceDiffs
// {
//   '0x1234567890abcdef1234567890abcdef12345678': [{
//     address: '0x20c000000000000000000000b9537d11c60e8b50',
//     decimals: 6,
//     direction: 'outgoing',
//     formatted: '100.000000',
//     name: 'USDC.e',
//     recipients: ['0xcafebabecafebabecafebabecafebabecafebabe'],
//     symbol: 'USDC.e',
//     value: '0x5f5e100',
//   }],
// }
```
