Out-of-the-box core APIs for Ethereum ecosystem.
💋 KISS. Keep it small and simple.
- Out-of-the-box Ethereum APIs
- typescript
4.8.4
- node
v16.18.0
- ts-node
v10.9.1
- yarn
v1.22.19
npm install @jovijovi/ether-core
or
yarn add @jovijovi/ether-core
import {core} from '@jovijovi/ether-core';
const walletInfo = await core.NewWallet();
const wallet = core.GetWallet(walletInfo.pk);
const receipt = await core.Transfer(YOUR_WALLET_ADDRESS, wallet.address, '1', wallet.privateKey);
if (receipt.status !== core.params.StatusSuccessful) {
log.RequestId().error("Transfer failed, error=%o", receipt);
return;
}
- Documents