UNPKG

@xuxinlai2002/pns-js

Version:

A NPM package in Typescript for .Play Name Service

22 lines (14 loc) 536 B
// import pkg from '@xuxinlai2002/pns-js'; // const { getAddress,getNames} = pkg; import pns from "@xuxinlai2002/pns-js" // import { getAddress,getNames} from "@xuxinlai2002/pns-js" // const { getAddress,getNames} = pns; const testAddress = "0x36cb680f411a6471947a491271fcc0741176b561"; const main = async () => { // console.log(pns.getNames); const names = await pns.getNames(testAddress); console.log("names is :",names); const address = await pns.getAddress("carv-id"); console.log("address is :",address); } main()