@multiformats/multiaddr
    Preparing search index...

    Interface Component

    A Component is a section of a multiaddr with a name/code, possibly with a value.

    Component names/codes are defined in the protocol table.

    interface Component {
        bytes?: Uint8Array<ArrayBufferLike>;
        code: number;
        name: string;
        value?: string;
    }
    Index

    Properties

    Properties

    bytes?: Uint8Array<ArrayBufferLike>

    The bytes that make up the component. This will be set if the multiaddr was parsed from a Uint8Array, or if .bytes has been accessed on it.

    code: number

    The code of the component as defined in the protocol table

    name: string

    The name of the component as defined in the protocol table

    value?: string

    The component value, if one is present