From 1a4f97138f57baf030b08bd3f23c4d1d5efe60b4 Mon Sep 17 00:00:00 2001 From: Vivek Singh <47470314+heyitsvi@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:09:34 +0530 Subject: [PATCH] fixes (#126) --- building-blocks/hyperdht.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/building-blocks/hyperdht.md b/building-blocks/hyperdht.md index 33ba2aa..282ff84 100644 --- a/building-blocks/hyperdht.md +++ b/building-blocks/hyperdht.md @@ -42,8 +42,8 @@ Notable features include: * [node.unannounce(topic, keyPair, \[options\])](hyperdht.md#node.unannounce) * [Mutable/immutable records:](hyperdht.md#mutable-immutable-records) * Methods: - * [node.immutablePut(value, \[options\])](hyperdht.md#node.inmutableput) - * [node.immutableGet(hash, \[options\])](hyperdht.md#node.inmutableget) + * [node.immutablePut(value, \[options\])](hyperdht.md#node.immutableput) + * [node.immutableGet(hash, \[options\])](hyperdht.md#node.immutableget) * [node.mutablePut(keyPair, value, \[options\])](hyperdht.md#node.mutableput) * [node.mutableGet(publicKey, \[options\])](hyperdht.md#node.mutableget) @@ -243,17 +243,17 @@ Unannounces a key pair. Any passed options are forwarded to dht-rpc. -### Mutable/Immutable Records {#mutable-inmutable-records} +### Mutable/Immutable Records {#mutable-immutable-records} #### Methods -#### **`const { hash, closestNodes } = await node.immutablePut(value, [options])`** {#node.inmutableput} +#### **`const { hash, closestNodes } = await node.immutablePut(value, [options])`** {#node.immutableput} Stores an immutable value in the DHT. When successful, the hash of the value is returned. Any passed options are forwarded to dht-rpc. -#### **`const { value, from } = await node.immutableGet(hash, [options])`** {#node.inmutableget} +#### **`const { value, from } = await node.immutableGet(hash, [options])`** {#node.immutableget} Fetch an immutable value from the DHT. When successful, it returns the value corresponding to the hash.