LogoLogo
  • Learn About Signet
    • Simplifying the Rollup
    • No Proofs or State Roots
    • Simple sequencing
    • Cross-chain transfers on Signet
  • Build on Signet
    • Smart Contracts
      • Passage
      • Transactor
      • Orders
        • Order Processing
        • Working with Orders
        • Market Participants
        • Bundles and Orders
        • Application Use Cases
      • Zenith
      • Permit2
    • EVM Behavior
    • Signet SDK
      • signet-zenith
      • signet-types
      • signet-extract
      • signet-evm
      • signet-bundle
      • signet-rpc
  • More info
  • FAQ
  • Glossary
  • Twitter
  • Github
Powered by GitBook
On this page
  1. Build on Signet
  2. Signet SDK

signet-rpc

The RPC server is a JSON-RPC server that listens for incoming requests and processes them. The server is built on top of the `ajj` crate, and uses the `tokio` runtime.

Previoussignet-bundleNextFAQ

Last updated 19 days ago

What's in this crate?

  • RpcCtx a struct managing the DB handle, subscriptions, filters, etc.

  • The router() function will create a complete .

  • serve_* family of methods allow quick setup of the RPC server.

This is a work in progress. The RPC server is fully functional, but a few things are missing.

  • The following namespaces are not well-supported yet:

    • admin_

    • debug_

    • trace_

    • signet_

This crate is intended to be used as part of a complete [reth] node. It is incredibly difficult to use this crate without a full reth node, as it requires a database handle and access to host configuration. If you are interested in doing that, let us know we think it'd be cool.

Signet's RPC server draws heavily on 's data types, and borrows code from reth's RPC handler logic. However, we make a few design decisions that are unique to Signet:

  • The following endpoints are disabled

    • wallet-related endpoints like eth_sign. Good Riddance.

    • p2p-related endpoints like eth_listening. Signet has no peer.

    • mining-related endpoints like eth_mining. Signet needs no miners.

    • txpool-related endpoints like txpool_content. Signet wants no txpool.

    • uncle-related endpoints like eth_getUncleByBlockHashAndIndex. Signet knows no family.

    • trie-related endpoints like eth_getProof. Signet grows no tries.

  • Filters and subscriptions have been rewritten from the ground up.

  • Bundle-related endpoints (WIP) use signet bundles from the signet-bundle crate.

See the for more information.

ajj::Router
reth
Signet Docs