# Swaps

## Introduction

The Swaps block allows a user to facilitate asset swaps as part of the BUIDLER component.&#x20;

Users can use assets in their Key Wallet or Smart Wallet to swap assets.&#x20;

![](/files/p2ajJuKJI6b9MaTAgoEI)

Once a user selects their swap pair and amount, they can then choose a swap offer from the list presented.

![](/files/hzPlTw16pmVYqtOmcedj)

Once the user has chosen their offer, they are ready to make the swap.

### Implementation

Copy and paste the code below to get started.

```jsx
import {
  Etherspot,
  TRANSACTION_BLOCK_TYPE,
} from "@etherspot/react-transaction-buidler";

// ...

return (
  <Etherspot
    defaultTransactionBlocks={[{ type: TRANSACTION_BLOCK_TYPE.ASSET_SWAP }]}
  />
);
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://v1.etherspot.io/buidler-react-component/blocks/swaps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
