Awesome
SputnikVM Developer Environment
Development environment based on SputnikVM and etcommon.
Usage
You can either download svmdev
from the release page, or build it by yourself by installing Rust, and run cargo run
. We currently support Linux and MacOS, and Windows.
USAGE:
svmdev [OPTIONS]
FLAGS:
-h, --help Prints help information
-V, --version Prints version information
OPTIONS:
-a, --accounts <ACCOUNTS> Additional accounts to be generated, default to 9.
-b, --balance <BALANCE> Balance in Wei for the account to be generated, default is 0x10000000000000000000000000000.
-l, --listen <LISTEN> Listen address and port for the RPC, e.g. 127.0.0.1:8545.
-k, --private <PRIVATE_KEY> Private key for the account to be generated, if not provided, a random private key will be generated.
After started, svmdev
will print out the address and private key with balance for testing. It will then generate new blocks every ten seconds, and include all pending transactions that yet to be confirmed. You can then use the RPC endpoints below to test your blockchain application.
Supported RPC Endpoints
Below is a list of all the supported RPC endpoints by sputnikvm-dev
.
- web3_clientVersion
- web3_sha3
- net_version
- net_peerCount
- net_listening
- eth_protocolVersion
- eth_syncing
- eth_coinbase
- eth_mining
- eth_hashrate
- eth_gasPrice
- eth_accounts
- eth_blockNumber
- eth_getBalance
- eth_getStorageAt
- eth_getTransactionCount
- eth_getBlockTransactionCountByHash
- eth_getBlockTransactionCountByNumber
- eth_getUncleCountByBlockHash
- eth_getUncleCountByBlockNumber
- eth_getCode
- eth_sign
- eth_sendTransaction
- eth_sendRawTransaction
- eth_call
- eth_estimateGas
- eth_getBlockByHash
- eth_getBlockByNumber
- eth_getTransactionByHash
- eth_getTransactionByBlockHashAndIndex
- eth_getTransactionByBlockNumberAndIndex
- eth_getTransactionReceipt
- eth_getUncleByBlockHashAndIndex
- eth_getUncleByBlockNumberAndIndex
- eth_getCompilers
- eth_newFilter
- eth_newBlockFilter
- eth_newPendingTransactionFilter
- eth_uninstallFilter
- eth_getFilterChanges
- eth_getFilterLogs
- eth_getLogs
Supported Debug Endpoints
- debug_dumpBlock
- debug_getBlockRlp
- debug_traceBlock
- debug_traceBlockByNumber
- debug_traceBlockByHash
- debug_traceBlockFromFile
- debug_traceTransaction