Crates.io | sube |
lib.rs | sube |
version | 0.5.0 |
source | src |
created_at | 2021-10-18 14:32:43.554268 |
updated_at | 2021-10-26 10:36:51.448296 |
description | SUBmit Extrinsics to a Substrate node |
homepage | |
repository | https://github.com/valibre-org/sube |
max_upload_size | |
id | 466801 |
size | 118,757 |
A client library and CLI for Substrate chains, doing less by design than subxt with a big focus on size and portability so it can run in constrainted environments like the browser.
Making use of the type information in a chain's metadata(>= v14
) and powered by our Scales library, Sube allows automatic conversion between the SCALE binary format used by the blockchain with a human-readable representation like JSON without having to hardcode type information for each network.
When submitting extrinsics Sube only does that, it's your responsability to sign the payload with a different tool first(e.g. libwallet) before you feed the extrinsic data to the library.
Sube supports multiple backends under different feature flags like http
, http-web
or ws
/wss
, with future support for a smoldot
based light-node.
For convenience Sube is also a stand-alone cli.
🛠️ ⚠️ Upcoming feature
The true raison d'etre of Sube is not to create yet another Substrate client but to enable the Virto.Network and any project in the ecosystem to reach a broader audience of end-users and developers by lowering the technical entry barrier and drasticaly improving the overal user experience of interacting with blockchains. We call it progressive decentralization.
When paired with our plugin runtime Valor, Sube can be exposed as an HTTP API that runs both in the server and the browser and be composed with other plugins to create higher level APIs that a client aplication can use from any plattform thanks to the ubiquitousness of HTTP.
We imagine existing centralized projects easily integrating with Substrate blockchains in the server with the option to progressively migrate to a decentralized set-up with whole backends later running in the user device(web browser included).
But progressive decentralization goes beyond the migration of a centralized project, it's rather about giving users the the best experience by possibly combining the best of both worlds. A Sube powered application can start being served from a server to have an immediate response and 0 start-up time and since plugins can be hot-swapped, the blockchain backend can be switched from HTTP to lightnode transparently without the application code ever realizing, giving our users with bad connectivity and slower devices the opportunity to enjoy the best possible user experience without compromizing decentralization.