The API presented by a Helia node

Implements

Constructors

Properties

blockstore: BlockStorage

Where the blocks are stored

datastore: Datastore<{}, {}, {}, {}, {}, {}, {}, {}, {}, {}>

A key/value store

Type declaration

    Type declaration

      Type declaration

        Type declaration

          Type declaration

            Type declaration

              Type declaration

                Type declaration

                  Type declaration

                    Type declaration

                      dns: DNS

                      The DNS property can be used to perform lookups of various record types and will use a resolver appropriate to the current platform.

                      getCodec: CodecLoader

                      Load an IPLD codec. Implementations may return a promise if, for example, the codec is being fetched from the network.

                      getHasher: HasherLoader

                      Hashers can be used to hash a piece of data with the specified hashing algorithm. Implementations may return a promise if, for example, the hasher is being fetched from the network.

                      log: Logger

                      A logging component that can be reused by consumers

                      metrics?: Metrics

                      A metrics object that can be used to collected arbitrary stats about node usage.

                      pins: Pins

                      Pinning operations for blocks in the blockstore

                      routing: Routing

                      The routing component allows performing operations such as looking up content providers, information about peers, etc.

                      Methods