Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 949 Bytes

File metadata and controls

27 lines (22 loc) · 949 Bytes

JavaScript examples (qweb3.js)

Runnable samples using the official JavaScript client. Point them at any endpoint:

npm install qweb3.js
export QUANTOVA_RPC=http://127.0.0.1:9933   # or https://testnet.quantova.io
File What it shows
connect.js Connect and read chain state (block, runtime version, balance)
transfer.js Native QTOV transfer
contract_call.js QRC20 read + write on the QVM (Solidity ABI)
qns_resolve.js Resolve a .qtov name to an address
node connect.js
node transfer.js
node contract_call.js
node qns_resolve.js

Each file's header shows the idiomatic qweb3.js API for that task. The runnable body uses a small raw JSON-RPC helper (_common.js) so the samples run without the native @quantova packages installed; keccak selectors are shown as constants (qweb3.js computes them via AbiCodec).