Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ethdk

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethdk

A package meant to make it easier to interact with the Ethereum blockchain.

  • 0.0.0-beta.8
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

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;

FAQs

Package last updated on 12 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc