VSC Mainnet API
With the recent launch of VSC mainnet earlier this month, I'm announcing my new public VSC API endpoints for general use along with other related developments.
GraphQL Endpoint
This is the standard API endpoint that is part of go-vsc-node. There is an Apollo sandbox (pictured above) that anyone may experiment with, however take note that around half of the query methods are still WIP.
This endpoint was formerly known as vsc-graphql.techcoderx.com during the previous testnet.
Endpoint: https://vsc.techcoderx.com/api/v1/graphql
Sandbox UI: https://vsc.techcoderx.com/sandbox
VSC Blocks Backend
A new backend specific to VSC Blocks has been developed which provides the following services:
Contract Verifier
This verifies VSC contracts by compiling the uploaded contract source code and comparing the resulting output bytecode against the deployed contract bytecode. It supports AssemblyScript contracts at this moment with more languages to come.
Indexer and REST API
The backend also indexes additional information on top of the VSC node database mostly for analytical purposes. This currently provides election/block participation rates, witness/bridge stats and sequential block numbers.
The API lives in https://vsc.techcoderx.com/be-api/v1 namespace, documentation to be made available here.
Contributions
Below are my contributions to go-vsc-node made in the last few weeks:
Enchancements
- Hive API node config using
HIVE_APIenvironment variable (#15) - Added CORS to GraphQL endpoint and listen to 0.0.0.0 to allow port forwarding in docker (#17)
- Indexed transaction ID of election results and node announcements (#19)
withdraw_idrenamed toaction_idinledger_actionscollection to record transaction ID of action fulfilment (#21)
Bug fixes
- Fixed wrong asset in ledger oplogs for
consensus_stakeandconsensus_unstaketransactions (#16) - Fixed incorrect retrieval of account RC usage by adding the missing sorting option (#21)
New GraphQL query methods
Leave VSC Mainnet API to:
Read more #vsc posts
Best Posts From TechCoderX
We have not curated any of techcoderx's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From TechCoderX
- HiveFest 10 Appendix: thebeedevs workshop
- Yet another HiveFest 10 post
- @techcoderx Hive witness update log #36: 100M Blocks
- KYC everywhere, what could possibly go wrong
- Simple stats dashboard for curators and witnesses
- Play Integrity API rant
- Thoughts on krampus ratio, stake shaming and accountability
- Aioha v1.6: Multi-User Authentication, Account Discovery and more!
- @techcoderx Hive witness update log #35: Dev updates for 1H 2025
- VSC Mainnet API
- I am now @vibecoderx
- Recent wave of draconian online censorship laws in Malaysia
- 24 November 2024 Incident Post-Mortem
- @techcoderx Hive witness update log #33: Dev updates for 2H 2024
- Yet another HiveFest 9 post.
- See you in HiveFest 9
- @techcoderx Hive witness update log #32: HAF node updated to v1.27.5rc7
- Metrics exporter for hived nodes
- Thoughts on "Reward Pool"
- Quiet LineageOS 20 Installation