0.0.3 • Published 1 year ago

@ethernauta/eth v0.0.3

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Philosophy

This module aims to be an un-opinionated representation of the defined:

Table of contents

  1. API
  2. core
  3. chain
  4. abi
  5. method

API

import { eip155_1, eth_getBlockByHash } from "@ethernauta/eth";
import { createReader, encodeChainId, http } from "@ethernauta/transport";

const reader = createReader([
  {
    chainId: "eip155:1",
    transports: [
      http(
        "https://snowy-fragrant-haze.ethereum-sepolia.quiknode.pro/71bd09c56eb85b1c709871faa17483fa65ba8177/"
      ),
    ],
  },
  {
    chainId: "eip155:1",
    transports: [
      http(
        "https://snowy-fragrant-haze.ethereum-sepolia.quiknode.pro/x3bdg0c56ebg5b1c70957bfaa17483faxaba81z1/"
      ),
    ],
  },
]);
const readable = eth_getBlockByHash([
  "0x31386e6cfba70bb4d8a95404bdb740572b758a15c62e51ee912071a7b5be9e26",
  false,
]);
const chainId = encodeChainId({
  namespace: "eip155",
  reference: eip155_1.chainId,
});
const block = await readable(reader(chainId));

Files to pay attention

core

block

client

filter

receipt

state

withdrawal

address

addresses

base

transaction

chain

abi

error

client

shared

function

client

shared

function

method

eip-1102

block

client

execute

fee-market

filter

sign

state

submit

transaction

0.0.3

1 year ago

0.0.2

1 year ago

0.0.0

1 year ago