Hi gentlemen, Iโm new
i am building a dapp to display different prices of different tokens per layer.
how do i download multiple contracts with one call?
i use this code:
import React from 'react';
import axios from 'axios';
const istanza=axios.create({
baseURL:'https://deep-index.moralis.io/api/v2/erc20/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c/price?chain=0x38',
headers: {
'accept': 'application/json',
'X-API-Key': 'xxx'
}
})
export default istanza;
and
import React, {useState, useEffect} from 'react';
import istanza from './api';
const Valuetoken = () => {
useEffect(() =>{
async function price(){
try {
const response=await istanza.get('')
console.log('RESPONSE', response)
} catch (err){console.log(err) }
}
price();
}, [])
return (
<div>
ciao
</div>
)
}
export default Valuetoken
sorry for my bad english.