CID SDK
Use cidjs SDK to interact with Core ID contracts
CID.js
Overview of the API
Installation
npm install @ciddomains/cidjs web3Getting Started
// core mainnet domain example, getAddress
const CID = require('@ciddomains/cidjs').default
const Web3 = require('web3')
async function main(name) {
const provider = new Web3.providers.HttpProvider("https://rpc.coredao.org")
let cid = new CID({ provider })
const address = await cid.name(name).getAddress() // 0x123
console.log("name: %s, address: %s", name, address)
}
main("coreid.core") // 0x9826a59Aa17C36e88AA2F6dC367772381f034401
Reverse Resolution
exports
CID Interface
Name Interface
Resolver Interface
Last updated