Gasless.js
Send DAI without ETH in your app
Features
- Gasless DAI transfers via the Mosendo API
- Browser & Node.js support
- Injected web3 provider (e.g. Metamask) support
- EIP712 for readable user signed messages
Getting Started
npm i --save gasless
Usage
Injected Web3 Provider (e.g. Metamask)
; async { await windowethereum; const gasless = windowweb3currentProvider; const gasPrice = await windowweb3eth; const daiFee = await gasless; const from = windowweb3ethdefaultAccount; const txHash = await gasless; }
Custom Web3 Provider
Please make sure that your custom provider supports EIP712 signTypedData_v3.
Just replace window.web3.currentProvider
in the example above with your custom provider.