<p align="center"> <a> <img src="https://i.postimg.cc/W4q937Db/Logo.png" alt="DODO" /> </a> </p>
npm install @dodoex/dodo-contract-requestCode automatically generated by @dodoex/contract-call-generate
To install the required dependencies, use:
``bash`
yarn add @dodoex/dodo-contract-request
Import contract configuration
`javascript`
import { ethereum } from '@dodoex/dodo-contract-request/config';
Call contract method
`javascript
import { ContractRequests } from '@dodoex/contract-request';
import {
setContractRequests,
multiCallAddressList,
fetchERC20BalanceOf,
} from '@dodoex/dodo-contract-request';
const contractRequests = new ContractRequests({
rpc: {
1: 'https://rpc.ankr.com/eth', // Ethereum Mainnet RPC
42161: 'https://arb1.arbitrum.io/rpc', // Arbitrum RPC
},
multiCallAddressList,
batchParameters: {
batchStallTime: 10, // Batch delay time in milliseconds
batchMaxCount: 100, // Maximum number of requests in a batch
},
});
setContractRequests(contractRequests);
const balance = await fetchERC20BalanceOf(
42161,
'0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9',
'xxx',
);
`
The contract can be configured under the packages/dodo-contract-request/contract-config` folder.After configuration, the action will be called to generate the contract code, it can be merged into the main branch and executed action to publish
Future plans and high-priority features and enhancements can be found in the roadmap.
Tracking larger cycles, you can view milestones to keep up with ongoing changes and updates to the library.
- DODO Web