Skip to content

Sample Configuration Files

Here you can find sample configuration files for Iroha 2:

json
{
  "chain": "00000000-0000-0000-0000-000000000000",
  "executor": "executor.wasm",
  "parameters": {
    "sumeragi": {
      "block_time_ms": 2000,
      "commit_time_ms": 4000,
      "max_clock_drift_ms": 1000
    },
    "block": {
      "max_transactions": 512
    },
    "transaction": {
      "max_instructions": 4096,
      "smart_contract_size": 4194304
    },
    "executor": {
      "fuel": 55000000,
      "memory": 55000000
    },
    "smart_contract": {
      "fuel": 55000000,
      "memory": 55000000
    }
  },
  "instructions": [
    {
      "Register": {
        "Domain": {
          "id": "wonderland",
          "logo": null,
          "metadata": {
            "key": "value"
          }
        }
      }
    },
    {
      "Register": {
        "Account": {
          "id": "ed0120CE7FA46C9DCE7EA4B125E2E36BDB63EA33073E7590AC92816AE1E861B7048B03@wonderland",
          "metadata": {
            "key": "value"
          }
        }
      }
    },
    {
      "Register": {
        "Account": {
          "id": "ed012004FF5B81046DDCCF19E2E451C45DFB6F53759D4EB30FA2EFA807284D1CC33016@wonderland",
          "metadata": {
            "key": "value"
          }
        }
      }
    },
    {
      "Register": {
        "AssetDefinition": {
          "id": "rose#wonderland",
          "type": "Numeric",
          "mintable": "Infinitely",
          "logo": null,
          "metadata": {}
        }
      }
    },
    {
      "Register": {
        "Domain": {
          "id": "garden_of_live_flowers",
          "logo": null,
          "metadata": {}
        }
      }
    },
    {
      "Register": {
        "Account": {
          "id": "ed0120E9F632D3034BAB6BB26D92AC8FD93EF878D9C5E69E01B61B4C47101884EE2F99@garden_of_live_flowers",
          "metadata": {}
        }
      }
    },
    {
      "Register": {
        "AssetDefinition": {
          "id": "cabbage#garden_of_live_flowers",
          "type": "Numeric",
          "mintable": "Infinitely",
          "logo": null,
          "metadata": {}
        }
      }
    },
    {
      "Mint": {
        "Asset": {
          "object": "13",
          "destination": "rose##ed0120CE7FA46C9DCE7EA4B125E2E36BDB63EA33073E7590AC92816AE1E861B7048B03@wonderland"
        }
      }
    },
    {
      "Mint": {
        "Asset": {
          "object": "44",
          "destination": "cabbage#garden_of_live_flowers#ed0120CE7FA46C9DCE7EA4B125E2E36BDB63EA33073E7590AC92816AE1E861B7048B03@wonderland"
        }
      }
    },
    {
      "Transfer": {
        "AssetDefinition": {
          "source": "ed01204164BF554923ECE1FD412D241036D863A6AE430476C898248B8237D77534CFC4@genesis",
          "object": "rose#wonderland",
          "destination": "ed0120CE7FA46C9DCE7EA4B125E2E36BDB63EA33073E7590AC92816AE1E861B7048B03@wonderland"
        }
      }
    },
    {
      "Transfer": {
        "Domain": {
          "source": "ed01204164BF554923ECE1FD412D241036D863A6AE430476C898248B8237D77534CFC4@genesis",
          "object": "wonderland",
          "destination": "ed0120CE7FA46C9DCE7EA4B125E2E36BDB63EA33073E7590AC92816AE1E861B7048B03@wonderland"
        }
      }
    },
    {
      "Grant": {
        "Permission": {
          "object": {
            "name": "CanSetParameters",
            "payload": null
          },
          "destination": "ed0120CE7FA46C9DCE7EA4B125E2E36BDB63EA33073E7590AC92816AE1E861B7048B03@wonderland"
        }
      }
    },
    {
      "Grant": {
        "Permission": {
          "object": {
            "name": "CanRegisterDomain",
            "payload": null
          },
          "destination": "ed0120CE7FA46C9DCE7EA4B125E2E36BDB63EA33073E7590AC92816AE1E861B7048B03@wonderland"
        }
      }
    }
  ],
  "wasm_dir": "libs",
  "wasm_triggers": [],
  "topology": []
}
toml
# chain =

## Might be set via `TORII_URL` env var
# torii_url =

[basic_auth]
# login =
# password =

[account]
# domain =
# public_key =
# private_key =

[transaction]
# time_to_live_ms = 100_000
# status_timeout_ms = 100_000
## Nonce is TODO describe what it is
# nonce = false