the total supply of several erc20 token on several blockchain.
I would like to know the total supply of an erc20 token on a first blockchain and sum with another erc20 token in another blockchain.
Is that possible with Chainlink?
You just need to know the address of the ERC20 token and execute function totalSupply(). If you want to have that in a simple contract, you could have something like this: pragma solidity ^0.8.1; import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/IERC20.sol"; contract Test { IERC20 public token; function getTotalSupply(address addr) public view returns(uint256) { return IERC20(addr).totalSupply(); } } And You want to learn how to use VRF in your project , - https://blog.chain.link/verifiable-random-function-vrf/ If you have any questions, dm me🙏🏻☺️
Обсуждают сегодня