Skip to content

IrohNativeBinding

Defined in: src/client/iroh.ts:183

Minimal surface implemented by the official @number0/iroh Node binding.

Endpoint: object;

Defined in: src/client/iroh.ts:185

Native endpoint factory exported by the binding.

builder(): NativeEndpointBuilder;

Creates a configurable native endpoint builder.

NativeEndpointBuilder


EndpointAddr: (id, relayUrl?, addresses?) => unknown;

Defined in: src/client/iroh.ts:195

Native remote-address constructor exported by the binding.

Combines an endpoint ID with optional relay and direct-address hints.

Parameter Type
id unknown
relayUrl? string | null
addresses? string[] | null

unknown


EndpointId: object;

Defined in: src/client/iroh.ts:190

Native endpoint-ID factory exported by the binding.

fromBytes(bytes): unknown;

Decodes a 32-byte endpoint identifier.

Parameter Type
bytes number[]

unknown


RelayMode: object;

Defined in: src/client/iroh.ts:200

Native relay-mode factory exported by the binding.

customFromUrls(urls): unknown;

Creates a custom relay mode from the supplied relay URLs.

Parameter Type
urls string[]

unknown