# Record a transaction

Follow the steps in the video or read the step below.

{% embed url="<https://drive.google.com/file/d/1VG7VKh5w-dop-DC73eDtgWNxfPx4Od9a/view?usp=share_link>" %}
How to record a transaction using WalletConnect or Transaction Hash
{% endembed %}

There are 2 ways in which you can add transaction to automate them.

### 1. Record via WalletConnect

1. Step 1: Connect to dapp using WalletConnect, follow steps in [Connect to Dapp](/use-epoch-automation-dapp/connect-to-dapp.md)
2. Step 2: Once dapp is connected go back to the dapp and do any transaction.
3. Step 3: When you do a transaction on dapp you need to come back to Epoch, and you will see a popup to add transaction into Epoch

### 2. Record via Transaction Hash

1. Step 1: Go to the Blockchain Scan like Polygonscan or optimistic.etherscan.io.
2. Step 2: Find the transaction that you want to copy, and copy its transaction hash.
3. Step 3: Once copied, go back to Epoch and select "Transaction Hash" under the "Sources".
4. Step 4: Finally paste the transaction hash you copied into the input field, and click on "Fetch Details".
5. Step 5: Once the details are fetched, you can either keep the data unchanged or edit the calldata if you want to.
6. Step 6: Finally hit the "Submit" button to add the transaction to Actions.


---

# 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://docs.epochprotocol.xyz/use-epoch-automation-dapp/record-a-transaction.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.
