Skip to main content
added 5 characters in body; edited title
Source Link
ltyu
  • 11
  • 2

Safe UI Transaction Batch Schema

Currently, we are looking for a way to submit safe transactions using the UI programatically. It seems like using the Transaction Builder UI with a generated JSON file is the best bet.

I was wondering what the schema for this JSON file is, and what each property does. So far I have this, and it seems to work:

{
  "version": "1.0",
  "chainId": "84532",
  "meta": {
    "txBuilderVersion": "1.13.1"
  },
  "transactions": [
    {
      "to": "0x13C620d9876d341946d42727ef41E6bD60942554",
      "value": "0",
      "data": "0xe9198bf900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000002fd1cb000000000000000000000000000000000000000000000000000000000000000100000000000000000000000067832b9fc47eb3cdbf7275b95a29740ec58193d2",
      "operation": 0,
      "baseGas": "0",
      "gasPrice": "0",
      "gasToken": "0x0000000000000000000000000000000000000000",
      "refundReceiver": "0x0000000000000000000000000000000000000000",
      "nonce": 26,
      "safeTxGas": "0"
    }
  ]
}

Transaction Batch Schema

Currently, we are looking for a way to submit transactions using the UI programatically. It seems like using the Transaction Builder UI with a generated JSON file is the best bet.

I was wondering what the schema for this JSON file is, and what each property does. So far I have this, and it seems to work:

{
  "version": "1.0",
  "chainId": "84532",
  "meta": {
    "txBuilderVersion": "1.13.1"
  },
  "transactions": [
    {
      "to": "0x13C620d9876d341946d42727ef41E6bD60942554",
      "value": "0",
      "data": "0xe9198bf900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000002fd1cb000000000000000000000000000000000000000000000000000000000000000100000000000000000000000067832b9fc47eb3cdbf7275b95a29740ec58193d2",
      "operation": 0,
      "baseGas": "0",
      "gasPrice": "0",
      "gasToken": "0x0000000000000000000000000000000000000000",
      "refundReceiver": "0x0000000000000000000000000000000000000000",
      "nonce": 26,
      "safeTxGas": "0"
    }
  ]
}

Safe UI Transaction Batch Schema

Currently, we are looking for a way to submit safe transactions using the UI programatically. It seems like using the Transaction Builder UI with a generated JSON file is the best bet.

I was wondering what the schema for this JSON file is, and what each property does. So far I have this, and it seems to work:

{
  "version": "1.0",
  "chainId": "84532",
  "meta": {
    "txBuilderVersion": "1.13.1"
  },
  "transactions": [
    {
      "to": "0x13C620d9876d341946d42727ef41E6bD60942554",
      "value": "0",
      "data": "0xe9198bf900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000002fd1cb000000000000000000000000000000000000000000000000000000000000000100000000000000000000000067832b9fc47eb3cdbf7275b95a29740ec58193d2",
      "operation": 0,
      "baseGas": "0",
      "gasPrice": "0",
      "gasToken": "0x0000000000000000000000000000000000000000",
      "refundReceiver": "0x0000000000000000000000000000000000000000",
      "nonce": 26,
      "safeTxGas": "0"
    }
  ]
}

Source Link
ltyu
  • 11
  • 2

Transaction Batch Schema

Currently, we are looking for a way to submit transactions using the UI programatically. It seems like using the Transaction Builder UI with a generated JSON file is the best bet.

I was wondering what the schema for this JSON file is, and what each property does. So far I have this, and it seems to work:

{
  "version": "1.0",
  "chainId": "84532",
  "meta": {
    "txBuilderVersion": "1.13.1"
  },
  "transactions": [
    {
      "to": "0x13C620d9876d341946d42727ef41E6bD60942554",
      "value": "0",
      "data": "0xe9198bf900000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000002fd1cb000000000000000000000000000000000000000000000000000000000000000100000000000000000000000067832b9fc47eb3cdbf7275b95a29740ec58193d2",
      "operation": 0,
      "baseGas": "0",
      "gasPrice": "0",
      "gasToken": "0x0000000000000000000000000000000000000000",
      "refundReceiver": "0x0000000000000000000000000000000000000000",
      "nonce": 26,
      "safeTxGas": "0"
    }
  ]
}