The sui-test-validator starts a local network that includes a Sui Full node, a Sui validator, a Sui faucet and (optionally) an indexer.
Refer to sui-local-network.md
Note Similar to the fullnode db, all state will be wiped upon restart
- Follow the Prerequisites section in the
sui-indexer
README to set up the postgresdb on your local machine - Make sure the
Posgresdb
starts on your local machine - run
RUST_LOG="consensus=off" ./target/debug/sui-test-validator --with-indexer
- To check your local db, if you use the default db url
postgres://postgres:postgres@localhost:5432/sui_indexer
, you can login to thepostgres
database and run\dt
to show all tables.