web3-mock
web3-mock copied to clipboard
🤡 JavaScript library to mock web3 responses either by emulating web3 wallets or web3 RPC requests.
### Use case I add new, custom network (with custom network id): ``` return Web3Mock.mock({ blockchain, wallet, network: { add: networkInfo } }) ``` Then I want to switch to...
When follow mocking connection ``` mock({ blockchain : 'ethereum', accounts: { return: ['0xd8da6bf26964af9d7eed9e03e53415d37aa96045'] } }) config = createConfig({ autoConnect: true, publicClient: createPublicClient({ chain: mainnet, transport: custom(window.ethereum), }), }) ``` and...
Hi team, How can we mock connect Metamask wallet with using this library? I am now using Jest, Playwright, Wagmi So, what I need to do is 1. visit page...
Is it possible to add support for Evmos which is an EVM chain? Here are the infos: https://chainlist.org/chain/9001
Hello team! Since upgrading to [wagmi 1.x](https://wagmi.sh/react/migration-guide) the `depay-mock` module no longer mocks balances. The transactions are mocked just fine, but the address balance mocks are bypassed and instead the...