Den Documentation
  • What is Den?
    • Den
    • Safe Contracts
    • Supported Chains
    • Security Practices
  • Set up Den
    • Sign In With Ethereum
    • Using Existing Safes
    • Creating and Managing Safes
  • Creating Transactions
    • Getting Started
    • Send Tokens
    • Connect to Dapps
    • Custom Transaction Builder
    • Upload a JSON file
    • Adding Descriptions
    • Simulations
    • Batching
  • Signing and Executing
    • Overview
    • Edit Descriptions
    • Decoded Data
    • Smart Contract Search
    • Simulation
  • Pay Gas from Safe
    • Overview
    • How it Works
    • FAQ
  • Payment Requests
    • Overview
    • Send the Request Form
    • Request a Payment
    • See Requests you've sent
    • Approve and Pay Requests
  • Organizations
    • Overview
  • Notifications
    • Overview
    • Set a Reminder Frequency
    • Discord
    • Telegram
    • Slack
    • SMS
    • Bot Commands
  • Links
    • Book a Demo
    • Support
    • Feature Requests
Powered by GitBook
On this page
  1. Creating Transactions

Upload a JSON file

Upload a JSON file specifying transaction data

PreviousCustom Transaction BuilderNextAdding Descriptions

Last updated 1 year ago

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"
    }
  ]
}