Skip to main content

Using the RPC URL

Use the RPC URL's found here to interact with the Clet core contract

info

The github repository below shows how to utilise the clet core contract from your Next.js application

github Next.js Example


...
//Code Snippet
const btcAddress = await contract.resolve("franz.btc");
//returns 1BaByV2VzmNmvdTU8TWczk4aJjxZuKr5oo

const cletNameXRP = await contract.reverseLookup(
"rBRRbH8ucvBizG6wZEK4vvqLaj8mB349u2"
);
//returns pk.xrp