You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lace light wallet needs a way to resolve an adahandle, we need therefore implement a new method for doing this, where the handle itself will be passed in param.
consthandleName='web3';constpolicyID='f0ff48bbb7bbe9d59a40f1ce90e9e9d0ff5002ec48f232b49ca0fb9a';// A blank Handle name should always be ignored.if(handleName.length===0){// Handle error.}// Convert handleName to hex encoding.constassetName=Buffer.from(handleName).toString('hex');// Fetch matching address for the asset.constdata=awaitfetch(`https://cardano-mainnet.blockfrost.io/api/v0/assets/${policyID}${assetName}/addresses`,{headers: {// Your Blockfrost API keyproject_id: process.env.BLOCKFROST_API_KEY,'Content-Type': 'application/json'}}).then(res=>res.json());if(data?.error){// Handle error.}const[{ address }]=data;console.log(address);// addr1qx3c9...
The text was updated successfully, but these errors were encountered:
Lace light wallet needs a way to resolve an adahandle, we need therefore implement a new method for doing this, where the handle itself will be passed in param.
The method is very easy, just take how the queries works from their official website.
The text was updated successfully, but these errors were encountered: