Skip to content

Sample Configuration Files

Here you can find sample configuration files for Iroha 2:

json
{
  "PUBLIC_KEY": null,
  "PRIVATE_KEY": null,
  "DISABLE_PANIC_TERMINAL_COLORS": false,
  "KURA": {
    "INIT_MODE": "strict",
    "BLOCK_STORE_PATH": "./storage",
    "BLOCKS_PER_STORAGE_FILE": 1000,
    "ACTOR_CHANNEL_CAPACITY": 100,
    "DEBUG_OUTPUT_NEW_BLOCKS": false
  },
  "SUMERAGI": {
    "KEY_PAIR": null,
    "PEER_ID": null,
    "BLOCK_TIME_MS": 2000,
    "TRUSTED_PEERS": null,
    "COMMIT_TIME_LIMIT_MS": 4000,
    "MAX_TRANSACTIONS_IN_BLOCK": 512,
    "ACTOR_CHANNEL_CAPACITY": 100,
    "GOSSIP_BATCH_SIZE": 500,
    "GOSSIP_PERIOD_MS": 1000
  },
  "TORII": {
    "P2P_ADDR": null,
    "API_URL": null,
    "TELEMETRY_URL": null,
    "MAX_TRANSACTION_SIZE": 32768,
    "MAX_CONTENT_LEN": 16384000,
    "FETCH_SIZE": 10,
    "QUERY_IDLE_TIME_MS": 30000
  },
  "BLOCK_SYNC": {
    "GOSSIP_PERIOD_MS": 10000,
    "BLOCK_BATCH_SIZE": 4,
    "ACTOR_CHANNEL_CAPACITY": 100
  },
  "QUEUE": {
    "MAX_TRANSACTIONS_IN_QUEUE": 65536,
    "MAX_TRANSACTIONS_IN_QUEUE_PER_USER": 65536,
    "TRANSACTION_TIME_TO_LIVE_MS": 86400000,
    "FUTURE_THRESHOLD_MS": 1000
  },
  "LOGGER": {
    "MAX_LOG_LEVEL": "INFO",
    "TELEMETRY_CAPACITY": 1000,
    "COMPACT_MODE": false,
    "LOG_FILE_PATH": null,
    "TERMINAL_COLORS": true
  },
  "GENESIS": {
    "ACCOUNT_PUBLIC_KEY": null,
    "ACCOUNT_PRIVATE_KEY": null
  },
  "WSV": {
    "ASSET_METADATA_LIMITS": {
      "max_len": 1048576,
      "max_entry_byte_size": 4096
    },
    "ASSET_DEFINITION_METADATA_LIMITS": {
      "max_len": 1048576,
      "max_entry_byte_size": 4096
    },
    "ACCOUNT_METADATA_LIMITS": {
      "max_len": 1048576,
      "max_entry_byte_size": 4096
    },
    "DOMAIN_METADATA_LIMITS": {
      "max_len": 1048576,
      "max_entry_byte_size": 4096
    },
    "IDENT_LENGTH_LIMITS": {
      "min": 1,
      "max": 128
    },
    "TRANSACTION_LIMITS": {
      "max_instruction_number": 4096,
      "max_wasm_size_bytes": 4194304
    },
    "WASM_RUNTIME_CONFIG": {
      "FUEL_LIMIT": 23000000,
      "MAX_MEMORY": 524288000
    }
  },
  "NETWORK": {
    "ACTOR_CHANNEL_CAPACITY": 100
  },
  "TELEMETRY": {
    "NAME": null,
    "URL": null,
    "MIN_RETRY_PERIOD": 1,
    "MAX_RETRY_DELAY_EXPONENT": 4,
    "FILE": null
  },
  "SNAPSHOT": {
    "CREATE_EVERY_MS": 60000,
    "DIR_PATH": "./storage",
    "CREATION_ENABLED": true
  }
}
json
{
  "transactions": [
    [
      {
        "Register": {
          "NewDomain": {
            "id": "wonderland",
            "logo": null,
            "metadata": {
              "key": {
                "String": "value"
              }
            }
          }
        }
      },
      {
        "Register": {
          "NewAccount": {
            "id": "alice@wonderland",
            "signatories": [
              "ed01207233BFC89DCBD68C19FDE6CE6158225298EC1131B6A130D1AEB454C1AB5183C0"
            ],
            "metadata": {
              "key": {
                "String": "value"
              }
            }
          }
        }
      },
      {
        "Register": {
          "NewAccount": {
            "id": "bob@wonderland",
            "signatories": [
              "ed01207233BFC89DCBD68C19FDE6CE6158225298EC1131B6A130D1AEB454C1AB5183C0"
            ],
            "metadata": {
              "key": {
                "String": "value"
              }
            }
          }
        }
      },
      {
        "Register": {
          "NewAssetDefinition": {
            "id": "rose#wonderland",
            "value_type": "Quantity",
            "mintable": "Infinitely",
            "logo": null,
            "metadata": {}
          }
        }
      },
      {
        "Register": {
          "NewDomain": {
            "id": "garden_of_live_flowers",
            "logo": null,
            "metadata": {}
          }
        }
      },
      {
        "Register": {
          "NewAccount": {
            "id": "carpenter@garden_of_live_flowers",
            "signatories": [
              "ed01207233BFC89DCBD68C19FDE6CE6158225298EC1131B6A130D1AEB454C1AB5183C0"
            ],
            "metadata": {}
          }
        }
      },
      {
        "Register": {
          "NewAssetDefinition": {
            "id": "cabbage#garden_of_live_flowers",
            "value_type": "Quantity",
            "mintable": "Infinitely",
            "logo": null,
            "metadata": {}
          }
        }
      },
      {
        "Mint": {
          "object": "13_u32",
          "destination_id": {
            "AssetId": "rose##alice@wonderland"
          }
        }
      },
      {
        "Mint": {
          "object": "44_u32",
          "destination_id": {
            "AssetId": "cabbage#garden_of_live_flowers#alice@wonderland"
          }
        }
      },
      {
        "Grant": {
          "object": {
            "PermissionToken": {
              "definition_id": "CanSetParameters",
              "payload": null
            }
          },
          "destination_id": {
            "AccountId": "alice@wonderland"
          }
        }
      },
      {
        "Sequence": [
          {
            "NewParameter": {
              "Parameter": "?MaxTransactionsInBlock=512"
            }
          },
          {
            "NewParameter": {
              "Parameter": "?BlockTime=2000"
            }
          },
          {
            "NewParameter": {
              "Parameter": "?CommitTimeLimit=4000"
            }
          },
          {
            "NewParameter": {
              "Parameter": "?TransactionLimits=4096,4194304_TL"
            }
          },
          {
            "NewParameter": {
              "Parameter": "?WSVAssetMetadataLimits=1048576,4096_ML"
            }
          },
          {
            "NewParameter": {
              "Parameter": "?WSVAssetDefinitionMetadataLimits=1048576,4096_ML"
            }
          },
          {
            "NewParameter": {
              "Parameter": "?WSVAccountMetadataLimits=1048576,4096_ML"
            }
          },
          {
            "NewParameter": {
              "Parameter": "?WSVDomainMetadataLimits=1048576,4096_ML"
            }
          },
          {
            "NewParameter": {
              "Parameter": "?WSVIdentLengthLimits=1,128_LL"
            }
          },
          {
            "NewParameter": {
              "Parameter": "?WASMFuelLimit=23000000"
            }
          },
          {
            "NewParameter": {
              "Parameter": "?WASMMaxMemory=524288000"
            }
          }
        ]
      },
      {
        "Register": {
          "NewRole": {
            "id": "ALICE_METADATA_ACCESS",
            "permissions": [
              {
                "definition_id": "CanRemoveKeyValueInUserAccount",
                "payload": {
                  "account_id": "alice@wonderland"
                }
              },
              {
                "definition_id": "CanSetKeyValueInUserAccount",
                "payload": {
                  "account_id": "alice@wonderland"
                }
              }
            ]
          }
        }
      }
    ]
  ],
  "validator": "./validator.wasm"
}
json
{
  "PUBLIC_KEY": "ed01207233BFC89DCBD68C19FDE6CE6158225298EC1131B6A130D1AEB454C1AB5183C0",
  "PRIVATE_KEY": {
    "digest_function": "ed25519",
    "payload": "9ac47abf59b356e0bd7dcbbbb4dec080e302156a48ca907e47cb6aea1d32719e7233bfc89dcbd68c19fde6ce6158225298ec1131b6a130d1aeb454c1ab5183c0"
  },
  "ACCOUNT_ID": "alice@wonderland",
  "BASIC_AUTH": {
    "web_login": "mad_hatter",
    "password": "ilovetea"
  },
  "TORII_API_URL": "http://127.0.0.1:8080/",
  "TORII_TELEMETRY_URL": "http://127.0.0.1:8180/",
  "TRANSACTION_TIME_TO_LIVE_MS": 100000,
  "TRANSACTION_STATUS_TIMEOUT_MS": 15000,
  "TRANSACTION_LIMITS": {
    "max_instruction_number": 4096,
    "max_wasm_size_bytes": 4194304
  },
  "ADD_TRANSACTION_NONCE": false
}