Browse API groups
Explorer-compatible API API
/api/v1/compat/etherscanExplorer-compatible API (module/action) for QRL 2.0
Accepts the widely used ?module=…&action=…&apikey=… explorer API so existing client libraries and scripts work against QRL 2.0 by changing only the base URL (https://quantascan.io/api). An API key is required (apikey=qs_…).
Supported: account balance, balancemulti (100), balancehistory, txlist, txlistinternal, tokentx, tokennfttx, token1155tx, txsBeaconWithdrawal, tokenbalance, addresstokenbalance, addresstokennftbalance, addresstokennftinventory · contract getabi, getsourcecode, getcontractcreation, verifysourcecode (POST), checkverifystatus · transaction getstatus, gettxreceiptstatus · block getblocknobytime, getblockreward, getblockcountdown · logs getLogs · stats ethsupply, tokensupply · gastracker gasoracle · proxy eth_blockNumber, eth_getBlockByNumber, eth_getTransactionByHash, eth_getTransactionReceipt, eth_call, eth_getCode, eth_getStorageAt, eth_gasPrice, eth_estimateGas, eth_getTransactionCount, eth_sendRawTransaction, eth_getBlockTransactionCountByNumber, eth_getTransactionByBlockNumberAndIndex (translated to the node's qrl_* methods) · getapilimit.
Amounts are in planck (1 Quanta = 1e18 planck); gas prices in gastracker are in shor (1e9 planck). Addresses are Q + 40 or 128 hex; 0x + the same hex is accepted as input. Errors use real HTTP status codes with the {status, message, result} body.
Query parameters
moduleoptionalstring | nullaccount, contract, transaction, block, logs, stats, gastracker, proxy, getapilimit
actionoptionalstring | nullAction within the module, e.g. txlist.
chainidoptionalstring | nullOptional. Must be the QRL 2.0 chain id.
apikeyoptionalstring | nullYour API key (qs_…).
Response 200 · any
Variable shape. See the example response below.
Request examples
curl -s "https://quantascan.io/api/v1/compat/etherscan" \
-H "Authorization: Bearer qs_YOUR_API_KEY"/api/v1/compat/etherscanExplorer-compatible API, form-encoded POST (contract verification)
The same module/action endpoint as the GET route, for clients that send their fields as an application/x-www-form-urlencoded body. Required for module=contract&action=verifysourcecode (the source does not fit in a URL); any other action is answered as if it were a GET.
verifysourcecode form fields: contractaddress, sourceCode (the Hyperion standard JSON input you compiled with, or one source file), codeformat (solidity-standard-json-input | solidity-single-file), contractname (path/File.hy:ContractName), compilerversion (v0.0.2+commit.3e18e55d for VM32 testnet v2, v0.2.0+commit.e36a0aea for VM64), optional constructorArguements (ABI-encoded hex), licenseType, and for single-file optimizationUsed + runs. result is a guid: poll it with GET ?module=contract&action=checkverifystatus&guid=… until it reads Pass - Verified or starts with Fail - Unable to verify.
The apikey may be sent as a query parameter or a form field. At most 5 submissions per minute per client (shared with the web form).
Response 200 · any
Variable shape. See the example response below.
Request examples
curl -s -X POST "https://quantascan.io/api/v1/compat/etherscan" \
-H "Authorization: Bearer qs_YOUR_API_KEY"All endpoints verified against a live indexer. Need the raw spec? See openapi.json or the API overview.