Upload a JSON file

Upload a JSON file specifying transaction data

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".

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:

Approve 0 WETH
  "chainId": "1",
  "transactions": [
      "to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
      "value": "0",
      "data": "0x095ea7b300000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"

Last updated