opns_resolver
v0.0.6
Published
Module with function and express middleware to resolve OPNS domains (PoW Domains) on the Bitcoin Blockchain
Downloads
9
Readme
OPNS Resolver
OPNS are PoW domains built as 1satordinal on the Bitcoin SV Blockchain, this module provides function and express middleware to resolve OPNS domains
opns_resolve( domain )
Basic function to call api an resolve an OPNS Domain
import { opns_resolve } from "opns_resolver"
let domain = "bsvdirect"
let response = await opns_resolve( domain )
let { outpoint, origin, owner } = response
opns_serverPubKey()
Express controller that responds with server public key
opns_resolver( domain )
Express controller that calls to opns_resolve and responds with signed domain resolution
