get_uri
Fetch data at IPFS URI
1
(async () => {
2
let res:any = await fetch('http://kylin-dsp-2.liquidapps.io/v1/dsp/liquidstorag/get_uri', {
3
method: 'POST',
4
mode: 'cors',
5
body: JSON.stringify({ uri: "ipfs://zb2rhX28fttoDTUhpmHBgQa2PzjL1N3XUDaL9rZvx8dLZseji" })
6
});
7
res = await res.json();
8
res = Buffer.from(res.data, 'base64').toString(),
9
console.log(`result: ${res}`);
10
})().catch((e) => { console.log(e); });
Copied!
Last modified 9mo ago
Copy link