https://github.com/gubnota/chimera-provider
ChimeraProvider based on Ethereum-provider (eth-provider powered example)
https://github.com/gubnota/chimera-provider
eth ethereum web3 webpack
Last synced: 2 months ago
JSON representation
ChimeraProvider based on Ethereum-provider (eth-provider powered example)
- Host: GitHub
- URL: https://github.com/gubnota/chimera-provider
- Owner: gubnota
- Created: 2022-01-27T08:04:47.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-01-27T08:05:11.000Z (over 4 years ago)
- Last Synced: 2025-09-06T11:59:16.470Z (10 months ago)
- Topics: eth, ethereum, web3, webpack
- Language: JavaScript
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to use
This is a simple HTTP provider based on `eth-provider` and `ethereum-provider` packages made solely for development purposes to interact as Dapp without using Metamask or other compatible extensions.
To use it:
```sh
npm run build
```
Then import `public/chimeraProvider.js`, to use:
```js
window.eth_accounts = ['0x95e6FeeeBDD83a44EB7Ca87F3EEeC4632F4218A5']
window.ethereum = ChimeraProvider('https://bsc-dataseed1.ninicoin.io/')
// probably:
// window.web3 = new Web3(window.ethereum)
```