w3name

A client library for the w3name - IPNS over HTTP API. It provides a convenient interface for creating names, making revisions to name records, and publishing and resolving them via the HTTP API.

Example

import * as Name from 'w3name'

const name = await Name.create()

console.log('Name:', name.toString())
// e.g. k51qzi5uqu5di9agapykyjh3tqrf7i14a7fjq46oo0f6dxiimj62knq13059lt

// The value to publish
const value = '/ipfs/bafkreiem4twkqzsq2aj4shbycd4yvoj2cx72vezicletlhi7dijjciqpui'
const revision = await Name.v0(name, value)

// Publish the revision
await Name.publish(revision, name.key)

// Resolve the latest value
await Name.resolve(name)

Index

Classes

Functions

Generated using TypeDoc