{"repo":"blockcoders/nestjs-ethers","free":true,"listed":false,"github":"https://github.com/blockcoders/nestjs-ethers","clone":"git clone https://github.com/blockcoders/nestjs-ethers.git","description":"Ethereum utilities for NestJS based on Ethers.js","language":"TypeScript","stars":95,"topics":["ethers","ethersjs","ethereum","nestjs","nest","blockchain"],"license":"Apache-2.0","category":"blockchain-web3","readme_excerpt":"NestJS-Ethers ============= Ethereum utilities for NestJS based on Ethers.js Install Register module Zero configuration Just import EthersModule to your module: NOTE: By default EthersModule will try to connect using getDefaultProvider. It's the safest, easiest way to begin developing on Ethereum. It creates a FallbackProvider connected to as many backend services as possible. Configuration params nestjs-ethers can be configured with this options: Synchronous configuration Use EthersModule.forRoot method with Options interface: Asynchronous configuration With EthersModule.forRootAsync you can, for example, import your ConfigModule and inject ConfigService to use it in useFactory method. useFactory should return object with Options interface or undefined Here's an example: Or you can just pass ConfigService to providers , if you don't have any ConfigModule : You can also pass multiple ethersjs configs, if you want to use the FallbackProvider to send multiple requests simultaneously: BaseProvider BaseProvider implements standard Ether.js Provider. So if you are familiar with it, you are ready to go. Binance Smart Chain Provider if you are familiar with BscscanProvider, you are ready to go. Binance Smart Chain Default Provider This will create a FallbackProvider , backed by all popular Third-Party BSC services (currently only BscscanProvider). NOTE: if bscscan is null or undefined. The BSC default provider will use the community API Key. Custom JsonRpcProvider if you are familia","default_branch":null,"files":null,"tree":[],"storefront":"/r/blockcoders","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/blockcoders/nestjs-ethers/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}