This package provides a simple and efficient way to interact with Ethereum and the USDT smart contract. It allows you to fetch token balances and get the last block number on the Ethereum mainnet.
- Setup Web3 connection to Ethereum mainnet using Infura.
- Interact with USDT smart contract to fetch token balances.
- Fetch the last block number on the Ethereum mainnet.
- Node.js (version 14 or higher)
- An Infura API key for connecting to the Ethereum mainnet.
npm i @noor4app/ethereum-info
- Import the
getLastBlockNumber
function fromblockNumber.js
- Import the
getTokenBalance
function fromcontractInteraction.js
- Use the
getTokenBalance
function to fetch the token balance of a holder. - Use the
getLastBlockNumber
function to get the last block number on the Ethereum mainnet.
In The vue-ether Vue.js project the package is utilized within the BlockchainInfo component.
Contributions are welcome. Please feel free to submit a pull request or open an issue.
This project is licensed under the MIT License.