# requestQuoteV0 (experimental)

> Overview of the requestQuoteV0 function

> For the complete documentation index, see [llms.txt](/docs/llms.txt).

{/* This file is auto-generated by TypeDoc. Do not edit manually. */}

<Warning>
  Experimental: This API is experimental and may change in a future release.
</Warning>

```ts
function requestQuoteV0(client, params): Promise<RequestQuoteV0Result>;
```

Defined in: [packages/wallet-apis/src/experimental/actions/requestQuoteV0.ts:119](https://github.com/alchemyplatform/aa-sdk/blob/v5.x.x/packages/wallet-apis/src/experimental/actions/requestQuoteV0.ts#L119)

Requests a quote for a token swap, returning either prepared calls for smart wallets
or raw calls for EOA wallets depending on the returnRawCalls parameter.

## Example

```ts twoslash
// Request a quote for smart wallet (prepared calls)
const quote = await client.requestQuoteV0({
  fromToken: "0xA0b86a33E6441e1d6a8E8C7a8E8E8E8E8E8E8E8E",
  toToken: "0xB0b86a33E6441e1d6a8E8C7a8E8E8E8E8E8E8E8E",
  fromAmount: 1000000000000000000n, // 1 ETH
  chainId: 42161, // Arbitrum
  capabilities: {
    paymaster: { policyId: "your-policy-id" },
  },
});

// Request a quote for EOA wallet (raw calls)
const rawQuote = await client.requestQuoteV0({
  fromToken: "0xA0b86a33E6441e1d6a8E8C7a8E8E8E8E8E8E8E8E",
  toToken: "0xB0b86a33E6441e1d6a8E8C7a8E8E8E8E8E8E8E8E",
  fromAmount: 1000000000000000000n,
  chainId: 42161,
  returnRawCalls: true,
});
```

## Parameters

<table>
  <thead>
    <tr>
      <th align="left">Parameter</th>
      <th align="left">Type</th>
      <th align="left">Description</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `client`
      </td>

      <td>
        `InnerWalletApiClient`
      </td>

      <td>
        The wallet API client to use for the request
      </td>
    </tr>

    <tr>
      <td>
        `params`
      </td>

      <td>
        [`RequestQuoteV0Params`](../type-aliases/RequestQuoteV0Params)
      </td>

      <td>
        Parameters for requesting a swap quote
      </td>
    </tr>

  </tbody>
</table>

## Returns

`Promise`\<[`RequestQuoteV0Result`](../type-aliases/RequestQuoteV0Result)>

A Promise that resolves to either prepared calls or raw calls depending on returnRawCalls