#tetcoin #framework #blockchain #crypto

node-rpc

Tetcore collection of node-specific RPC methods

Show the crate…

1 stable release

2.0.0 Apr 5, 2021
0.0.0 Mar 4, 2021

#77 in #tetcore

38 downloads per month
Used in 3 crates (via node-cli)

Apache-2.0 and GPL-3.0-or-later…

1.5MB
33K SLoC

node-rpc

Tetcore collection of node-specific RPC methods.

Since tetcore core functionality makes no assumptions about the modules used inside the runtime, so do RPC methods defined in tc-rpc crate. It means that client/rpc can't have any methods that need some strong assumptions about the particular runtime.

The RPCs available in this crate however can make some assumptions about how the runtime is constructed and what FABRIC nobles are part of it. Therefore all node-runtime-specific RPCs can be placed here or imported from corresponding FABRIC RPC definitions.


lib.rs:

A collection of node-specific RPC methods.

Since tetcore core functionality makes no assumptions about the modules used inside the runtime, so do RPC methods defined in tc-rpc crate. It means that client/rpc can't have any methods that need some strong assumptions about the particular runtime.

The RPCs available in this crate however can make some assumptions about how the runtime is constructed and what FABRIC nobles are part of it. Therefore all node-runtime-specific RPCs can be placed here or imported from corresponding FABRIC RPC definitions.

Dependencies

~39–58MB
~1M SLoC