Initialization
Initialize a newDemos class instance to communicate with the Demos Network:
Connect Signing Wallet
Connect the crosschain wallet to use to prove ownership of the domain. Assuming you want to sign using your ETH wallet, that would look like this:You can use the domain owner address or any of the addresses added as records to sign the proof of ownership payload. You can sign using any of the supported chains.
Resolve UD Domain
Lookup your domain and fetch its metadata:resolutionData object contains information about your domain including the owner and records attached to it. That looks something like this:
resolutionData to link your domain to your Demos address:
addUnstoppableDomainIdentity uses the connected cross-chain wallet to create a proof of ownership payload, then sends the payload to the Demos RPC for verification.