> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moca.network/llms.txt
> Use this file to discover all available pages before exploring further.

# Advanced Functions (Beta)

> Use AIR Kit's custom EIP-1193 RPC methods for advanced wallet operations — token swaps, DeFi actions, and smart account flows (Base chain, beta).

<Warning>
  Swap functionality, advanced DeFi operations are only supported on `Base` chain only.
</Warning>

### Swap Operations (Beta)

**air\_getSwapQuote**

```tsx theme={null}
const quote = await provider.request({
  method: "air_getSwapQuote",
  params: [
    {
      fromToken: string,
      toToken: string,
      fromAmount: string
    }
  ]
});
// Returns: swap quote data
```

**air\_sendSwapTransaction**

```tsx theme={null}
const txHash = await provider.request({
  method: "air_sendSwapTransaction",
  params: [
    {
      fromToken: string,
      toToken: string,
      fromAmount: string
    }
  ]
});
// Returns: string (transaction hash)
```

**air\_showSwapUI**

```tsx theme={null}
const txHash = await provider.request({
  method: "air_showSwapUI",
  params: []
});
// Returns: string (transaction hash)
```
