the trie at a root
the anchor type the trie proof should be submitted to. Default:
Anchor.Type.ETH
whether to output the anchoring progress to stdout. Default: true
Creates a key-values proof for the provided key-values out of the given trie proof
trie ID
trie proof ID to base on. When zero (""
), a new trie proof will be created
on-the-fly
the key-values filter (optional). When null or zero, all key-values will be included in the proof
the key-values proof output file path
Creates a new trie
storage type of the trie. Default: Trie.StorageType.LOCAL
Creates a new trie with the given key-values
the key-values
storage type of the trie. Default: Trie.StorageType.LOCAL
Creates a trie proof for the given trie root. When root is zero (""
), the current root hash of
the trie will be used, and the request will be blocked until all ongoing updates are finished
trie Id
trie root
Deletes the given trie
trie ID
Deletes a proof for a trie root
trie ID
trie proof ID
Exports the given trie
trie ID
output file path
Gets a trie
trie ID
Get a key-value of the trie at the given root. When root is zero (""
), the current root hash of
the trie will be used, and the request will be blocked until all ongoing updates are finished
trie ID
trie root
the key of the key-value
Gets the key-values of the trie at the given root. When root is zero (""
), the current root
hash of the trie will be used, and the request will be blocked until all ongoing updates are
finished
trie ID
trie root
Gets a trie proof by either proof ID or root. If by root, the latest proof of that root will be returned
trie ID
trie proof ID or root filter. When not provided, the oldest TrieProof
for
current trie root will be returned
Gets proofs of a trie. The returned TrieProof
s will be in chronological order
trie ID
the root filter. When not provided, all TrieProof
s will be returned
Gets roots of a trie. This is a series of roots showing the modification history of a trie
trie ID
the root filter. When not provided, all TrieRoot
s will be returned
Gets all tries. Admin privilege is required
Imports a trie and verifies its given root with the original data in sorted stream of key-values. The returned results contain both proof and key-values status
the trie input file path
the original data in sorted stream. You can use sortKeyValues
to
sort a key-values array
trie proof ID or root filter. When not provided, the oldest
TrieProof
for current trie root will be used
Graphviz Dot Graph output file path. Default: undefined
(don't
output)
Imports the trie data and creates a new trie. If id
is zero, a new trie ID will be generated,
which is recommended when importing
trie ID
the trie input file path
storage type of the trie. Default: Trie.StorageType.LOCAL
Sets the key-values to the trie. When root is zero (""
), the current root hash of the trie will
be used, and the request will be blocked until all ongoing updates are finished
trie ID
trie root
the key-values
Sets the root of a trie to the given one. This will add an entry in the root history
trie ID
trie root
Sets the storage type of a trie
trie ID
storage type of the trie. Default: Trie.StorageType.LOCAL
Subscribes to the given trie proof
trie ID
trie proof ID or root filter. When not provided, the oldest TrieProof
for
current trie root will be used
Verifies the given key-values proof
the key-values proof input file path
whether to output key-values contained in the trie. Default: false
Graphviz Dot Graph output file path. Default: undefined
(don't output)
Verifies the key-values proof with the original data in sorted stream of key-values. The returned results contain both proof and key-values status
the key-values proof input file path
the original data in sorted stream. You can use sortKeyValues
to
sort a key-values array
Graphviz Dot Graph output file path. Default: undefined
(don't
output)
Verifies the given trie proof
trie ID
trie proof ID
whether to output key-values contained in the trie. Default: false
Graphviz Dot Graph output file path. Default: undefined
(don't output)
Verifies the trie at the given root with the original data in sorted stream of key-values. The returned results contain both proof and key-values status
the trie at a root
the original data in sorted stream. You can use sortKeyValues
to
sort a key-values array
trie proof ID or root filter. When not provided, the oldest
TrieProof
for current trie root will be used
Graphviz Dot Graph output file path. Default: undefined
(don't
output)
Generated using TypeDoc
Anchors the trie at the given root by creating a trie proof and waiting for it to be confirmed