VNS-Js
A conveniant way to integrate the VeChain Name Service into your dApp. :)
Installation
Install from npm:
npm install --save vns-js
Usage
; // Passing connex is requiredconst vns = windowconnex; vns;
Available APIs
vns.lookup( domain )
Takes a valid VNS name, like raleighca.vet
, or vexchange.vet
.
Returns a Promise that resolves to a hex-prefixed hexadecimal string for the resolved address.
Current Supported Networks
- Mainnet (id: 74)
- Testnet (id: 39)