Hierarchy

Constructors

Properties

Accessors

Methods

Constructors

  • Parameters

    Returns RawEnr

Properties

seq: bigint
signature?: Uint8Array

Accessors

  • get id(): string
  • Returns string

  • get ip(): undefined | string
  • Returns undefined | string

  • set ip(ip: undefined | string): void
  • Parameters

    • ip: undefined | string

    Returns void

  • get ip6(): undefined | string
  • Returns undefined | string

  • set ip6(ip: undefined | string): void
  • Parameters

    • ip: undefined | string

    Returns void

  • get multiaddrs(): undefined | Multiaddr[]
  • Get the multiaddrs field from ENR.

    This field is used to store multiaddresses that cannot be stored with the current ENR pre-defined keys. These can be a multiaddresses that include encapsulation (e.g. wss) or do not use ip4 nor ip6 for the host address (e.g. dns4, dnsaddr, etc)..

    If the peer information only contains information that can be represented with the ENR pre-defined keys (ip, tcp, etc) then the usage of getLocationMultiaddr should be preferred.

    The multiaddresses stored in this field are expected to be location multiaddresses, ie, peer id less.

    Returns undefined | Multiaddr[]

  • set multiaddrs(multiaddrs: undefined | Multiaddr[]): void
  • Set the multiaddrs field on the ENR.

    This field is used to store multiaddresses that cannot be stored with the current ENR pre-defined keys. These can be a multiaddresses that include encapsulation (e.g. wss) or do not use ip4 nor ip6 for the host address (e.g. dns4, dnsaddr, etc)..

    If the peer information only contains information that can be represented with the ENR pre-defined keys (ip, tcp, etc) then the usage of setLocationMultiaddr should be preferred. The multiaddresses stored in this field must be location multiaddresses, ie, without a peer id.

    Parameters

    • multiaddrs: undefined | Multiaddr[]

    Returns void

  • get publicKey(): undefined | Uint8Array
  • Returns undefined | Uint8Array

  • get tcp(): undefined | number
  • Returns undefined | number

  • set tcp(port: undefined | number): void
  • Parameters

    • port: undefined | number

    Returns void

  • get tcp6(): undefined | number
  • Returns undefined | number

  • set tcp6(port: undefined | number): void
  • Parameters

    • port: undefined | number

    Returns void

  • get udp(): undefined | number
  • Returns undefined | number

  • set udp(port: undefined | number): void
  • Parameters

    • port: undefined | number

    Returns void

  • get udp6(): undefined | number
  • Returns undefined | number

  • set udp6(port: undefined | number): void
  • Parameters

    • port: undefined | number

    Returns void

  • get waku2(): undefined | Waku2
  • Get the waku2 field from ENR.

    Returns undefined | Waku2

  • set waku2(waku2: undefined | Waku2): void
  • Set the waku2 field on the ENR.

    Parameters

    • waku2: undefined | Waku2

    Returns void

Methods

Generated using TypeDoc