litesvm是一个用于测试 Solana 程序的快速轻量级库。它的工作原理是创建一个针对程序开发人员优化的进程内 Solana VM。这使得它的运行和编译速度比solana-program-test和等替代方案快得多solana-test-validator。它进一步打破了传统,拥有符合人体工程学的 API,具有合理的默认值和广泛的可配置性,供需要的人使用。
2025年2月
litesvm是一个用于测试 Solana 程序的快速轻量级库。它的工作原理是创建一个针对程序开发人员优化的进程内 Solana VM。这使得它的运行和编译速度比solana-program-test和等替代方案快得多solana-test-validator。它进一步打破了传统,拥有符合人体工程学的 API,具有合理的默认值和广泛的可配置性,供需要的人使用。
$ sol --help
A command line explorer for the Solana blockchain! Inspect transactions and accounts with this explorer!
Usage: sol [OPTIONS] <COMMAND>
Commands:
transaction Provide a transaction signature to inspect status, accounts, logs
account Provide an account pubkey to inspect account contents
block Provide a block's slot to inspect its contents
help Print this message or the help of the given subcommand(s)
Options:
-u, --rpc-url <RPC_URL> The url/endpoint to use for any rpc requests [default: http://api.mainnet-beta.solana.com]
-h, --help Print help
-V, --version Print version