interface Delegate {
    block: {
        stat(cid, options?): Promise<StatResult>;
    };
    dht: {
        findProvs(cid, options?): AsyncIterable<QueryEvent>;
        get(key, options?): AsyncIterable<QueryEvent>;
        provide(cid, options?): AsyncIterable<QueryEvent>;
        put(key, value, options?): AsyncIterable<QueryEvent>;
    };
    getEndpointConfig(): {
        host: string;
        port: string;
        protocol: string;
    };
}

Properties

Methods

Properties

block: {
    stat(cid, options?): Promise<StatResult>;
}

Type declaration

dht: {
    findProvs(cid, options?): AsyncIterable<QueryEvent>;
    get(key, options?): AsyncIterable<QueryEvent>;
    provide(cid, options?): AsyncIterable<QueryEvent>;
    put(key, value, options?): AsyncIterable<QueryEvent>;
}

Type declaration

Methods

  • Returns {
        host: string;
        port: string;
        protocol: string;
    }

    • host: string
    • port: string
    • protocol: string

Generated using TypeDoc