1.0.0-next.22 • Published 2 years ago

@tevm/api v1.0.0-next.22

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

CI CI

@tevm/api

@tevm/api is the official tevm spec represented as typescript types and reused across the rest of the tevm monorepo

This package has no javascript only typescript types.

Tevm.ts

Tevm is the API type of Tevm implemented by

  • @tevm/vm package the evm implementation of tevm
  • @tevm/client package the remote JSON-RPC client for talking to a remote Tevm EVM

High level API

Tevm core api follows an input/output pattern and is implemented in two ways:

  • The ergonomic high level action based API
  • The lower level JSON-RPC based API used for remote calls

This API is implemented with the following packages

Tevm high-level action based API

The high-level action based API is what most users and internal code are using whenever possible. It's more ergonomic, types are generic, and it is able to return more than 1 error.

Tevm low-level JSON-rpc based API

The lower level JSON-RPC api is more suitable for sending tevm requests remotely and mirrors the high level api. Though sometimes a single JSON-RPC method will be overloaded with multiple higher level API actions.

Visit Docs for docs, guides, API and more!

See Tevm Beta project board for progress on the upcoming beta release

License 📄

1.0.0-next.22

2 years ago

1.0.0-next.21

2 years ago