Skip to content

Torii Parameters

TODO: Explain Torii module

This module contains configuration of Torii - the API gateway of Iroha. Refer to the Torii Endpoints reference for information about exact endpoints.

torii.address

Address on which Torii Endpoints will be accessible.

toml
[torii]
api_address = "localhost:8080"

torii.max_content_length

  • Type: String or Number, Byte Size
  • Default: 16 000 KiB16\ 000\text{ KiB} (21016 000=16 384 000 bytes2^{10} \cdot 16\ 000 = 16\ 384\ 000\text{ bytes})

TODO: consider changing the default value to 16 MiB precisely (which is 22016=16 777 2162^{20} * 16 = 16\ 777\ 216)

The maximum number of bytes in a raw request body accepted by the Transaction Endpoint. This limit is used to prevent DOS attacks.

Example:

toml
[torii]
max_content_length = "16MiB"

torii.query_idle_time

  • Type: String or Number, Duration
  • Default: 30 seconds

The time a query can remain in the store if unaccessed.

TODO: Configures behaviour of lazily-evaluated pagination of the Query Endpoint.

Example:

toml
[torii]
query_idle_time = "30s"