leap-provider
Ethers.js provider to work with Leap Network.
Install
yarn add leap-provider
Usage
Connect to a Wallet:
const LeapProvider = ;const provider = 'https://testnet-node.leapdao.org'; // can be passed in a Walletconst plasmaWallet = privKey provider; // or connected to existing walletconst otherWallet = Wallet;otherWallet;
Send transaction to Leap Network:
const LeapProvider = ;const provider = 'https://testnet-node.leapdao.org'; // create some LeapTransactionconst tx = Tx; // tx should be signedtx; // send via providerconst resp = await walletprovider; // wait for inclusion, you will get a proper TransactionReceipt once tx is included in a blockconst receipt = await resp;console;