Web9c is a JS/TS testbed repository for presenting how can we interact with Nine Chronicles from various JS runtime. (Browser / Node.js / Deno) using our latest JS/TS library support.
- Generate, Import private/public key pair, address from Web3 Secret Storage
- GENERATE ACTIONS WITHOUT ACTIONTX QUERY!
- You still have to query out the NextTxNonce, but action can be generated 100% locally with the help of lib9c-wasm.
- SIGN AND STAGE YOUR ACTION ON WEB BROWSER!
- Currently Supported Actions:
- Transfer NCG
- Staking
- Currently Supported Actions:
- Get data about your address.
- NCG Balance, Next Tx Nonce,
- Avatar Data: Nickname, Level, AP
- Inventories! : Equipment, Costumes, Consumable, Materials.
With a bit of exception, source code of our JS/TS Libraries are resides mostly in libplanet/@planetarium, so you can take a look about how these libraries are made, even contribute! if you need custom build for your needs, you can modify them and build just for you.
In case of installing dependancies for your project, you can search on npm with @planetarium
Used for Action Generation.
We interoped original C# lib9c source code into WASM. so we can call native action builder from JS/TS. with the right parameters (i.e. PlainValue) given, we can get same bencodex encoded action without handling C#.
Data Serialization/Deserialization
If you have ever interacted with our chain directly using GraphQL, you probably have encountered this format. we recently re-wrote bencodex javascript implementation, with much more robust and comprehensive code, less hassle for handling bencodex on JS/TS environment.
Warning
when you try to install bencodex library, we recommend '@planetarium/bencodex' instead of just 'bencodex'. 'bencodex' support has been deprecated.
WIP