# Upload a JSON file

You can upload a JSON file with transaction data to use that transaction in Den. Many teams generate these files using scripts so they can run complex testing and analysis, or import them from other tools. These JSONs can include a single transaction, or a list of many transactions.

To upload a JSON, select the "Use a smart contract" when choosing how you want to create your transaction. Then click "Upload JSON".

<figure><img src="/files/yehv1HfoIoULjfXbkXED" alt=""><figcaption></figcaption></figure>

Den accepts two formats for JSON uploads:

* Transactions with `to`, `value`, and `data` fields
* Transactions with the function name and parameters specified, based on the Safe UI transaction builder's import / export format

Example for the first format:

{% code title="Approve 0 WETH" %}

```json
{
  "chainId": "1",
  "transactions": [
    {
      "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
      "value": "0",
      "data": "0x095ea7b300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
    }
  ]
}
```

{% endcode %}


---

# 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.onchainden.com/creating-transactions/upload-a-json-file.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.
