- connection<T, S>(options?): ConnectionView<S>
Type Parameters
T extends `did:${string}:${string}`
Parameters
Optional
options: {
channel: undefined | Transport.Channel<S>;
fetch: undefined | {
(input, init?): Promise<Response>;
(input, init?): Promise<Response>;
};
principal: undefined | Principal<T>;
url: undefined | URL;
} = {}
fetch: undefined | {
(input, init?): Promise<Response>;
(input, init?): Promise<Response>;
}
principal: undefined | Principal<T>
url: undefined | URL
Creates a Ucanto connection for the w3access API
Usage: