ethdk
TypeScript icon, indicating that this package has built-in type declarations

0.0.0-beta.8 • Public • Published

ethdk

Ethdk is meant to make interacting with the Ethereum ecosystem easier for developers by abstracting the web3 domain knowledge into an easy-to-understand node module. With familar language, naming, and sensible defaults; web2 developers can effortlessly integrate and experiment with web3 components in their product.

The approach is to then attempt integrations with low-/no-code solutions so that more entrepreneurs may experiment and innovate with web3 capabilities. Example applications will supplement this direction to demonstrate what is possible.

Getting started

How to use ethdk

Accounts

import { networks, createAccount } from 'ethdk'

// Private key param is optional. A random private key will
// be generated if one is not provided.
const account = await createAccount({
  accountType: 'bls',
  network: networks.BLS_NETWORKS.arbitrumGoerli,
})

const { address } = account

Recovery

const recoveryPhrase = 'Do not forget this!'
const trustedAccount = '0x70b8...06A0'
account.setTrustedAccount(recoveryPhrase, trustedAccount)

Transaction

const transaction = await account.sendTransaction(...);

const { hash } = transaction;

/ethdk/

    Package Sidebar

    Install

    npm i ethdk

    Weekly Downloads

    1

    Version

    0.0.0-beta.8

    License

    MIT

    Unpacked Size

    64.1 kB

    Total Files

    56

    Last publish

    Collaborators

    • blakecduncan