Submit a gentx for the Stateset Commerce Network Testnet
Network: stateset-1-testnet
Denom: ustst (micro‑STST)
Plan: This testnet simulates stateset v0.0.8.
Quick Start (Copy/Paste)
Replace<moniker-name>and<key-name>with your own values. Default home in this doc is~/.stateset. If your build uses~/.statesetd, adjust paths or pass--home ~/.statesetd.
“First!” — If you’re resetting from a previous run
-
Stop your node
-
Unsafe reset
-
Remove old genesis & gentxs
- Proceed with the gentx flow below.
Heads‑up: Some older builds default to~/.statesetdinstead of~/.stateset. If your setup uses~/.statesetd, swap the home path (or pass--home ~/.statesetdon each command).
Prerequisites
- Golang ≥ 1.17 installed and on your
PATH git,curl, and basic build tools- (Recommended) A configured GOPATH/GOBIN
Build the statesetd Binary
Option A — Build from Source (recommended for v0.0.8)
statesetd into $GOBIN (commonly ~/go/bin). Ensure it’s on your PATH.
Verify:
Option B — Starport/Ignite (alternative)
If you prefer Starport:
Note: Version parity matters for the testnet. If you use Starport, confirm statesetd version aligns with the testnet commit/tag.
Minimum Hardware
- RAM: 8–16 GB
- Disk: 100 GB (SSD recommended)
- CPU: 2 cores
Generate Your gentx
-
Init your node
-
Pull the testnet genesis
(Alternate earlier path used in some guides:
.../main/stateset-1-testnet/pregenesis.json) -
Create a key
-
Add a funded genesis account
-
Create the gentx
Minimal form:
Advanced (with metadata & commission):Success looks like:
-
Validate
Submit Your gentx
- Fork the networks repo: https://github.com/stateset/networks
-
Clone your fork:
-
Copy your gentx into the testnet folder:
-
Commit & push, then open a PR back to
stateset/networks.
Acceptance note: Only PRs from individuals/groups with a history of successfully running nodes may be accepted to ensure the network launches on time.
Tips & Troubleshooting
-
Home directory differences
Some environments use
~/.statesetdas the default. Either:- pass
--home ~/.statesetdto every command, or - symlink:
ln -s ~/.statesetd ~/.stateset(pick one path and stay consistent).
- pass
-
Keyring backend
Use
--keyring-backend osfor persistence with your OS keystore. Alternatives:file(plaintext on disk),test(ephemeral/in‑memory).
-
Denom & amounts
-
Denom is
ustate(micro‑units). - 1 STATE = 1,000,000 ustate
-
Examples:
- 10,000 STATE =
10000000000ustate - 9,000 STATE =
9000000000ustate
- 10,000 STATE =
-
Denom is
-
Commission fields
If you include commission params in your
gentx, typical values for testnets:--commission-rate "0.01"(1%)--commission-max-rate "0.20"(20%)--commission-max-change-rate "0.05"(5% per day)
-
Build issues (Go/GOPATH)
Ensure:
-
Sanity checks
Security Notes
- Back up your mnemonic offline. Anyone with it controls your validator funds.
- Never commit
~/.stateset*contents to any repository. - Double‑check addresses before submitting on‑chain transactions.
What Happens After PR Merge?
- The Stateset team publishes the final testnet genesis (with accepted gentxs) and launch time.
- You’ll be instructed to download the final genesis and start your node/validator for network launch.