Code wizard on Sui
Sui - move is a objective smart langue, fun and interesting!
Try API wtih nodeJs
javascript
import axios from 'axios';
const array = ['sui_price','deep_price']
async function fetchUsers() {
array.forEach(async(index)=>{
console.log(index);
try {
const response = await axios.get(`https://www.majesticer.xyz/api/${index}`);
console.log('GET Response:', response.data);
return response.data;
} catch (error) {
console.error('Error fetching users:', error);
}
})
}
Tabs
About
Last updated