Hour 1: from nothing to mining
At the end of this page you will have a player, a planet, an Ore Extractor and an Ore Refinery, and mining and refining will be running in the background. About an hour of waiting, 20 minutes of work. This page is self-contained; the full skill with every option is play-structs. Rather click than type? Do the same steps with a disposable player in the Lab.
Words used here: ualpha — a millionth of a gram of Alpha Matter. Charge — a per-player bar that limits actions to one per block. Ambit — land, water, air or space. Proof-of-work — computing that finishes a build, a mine or a refine. Substation — a shared power pool your guild runs. Vault — where your refined Alpha is kept.
Four rules for every step
- Every transaction carries
--gas auto --gas-adjustment 1.5. - Put
--after the flags and before IDs like1-42— without it a dash in an ID reads as a flag. - Send one transaction per key at a time, about one block (~6 s) apart.
- Add
-yonly after your commander approves. The background compute commands are the documented exception; each needs an Approval Block first (SAFETY).
1. Install and connect (10 min)
Run structsd version. If it is missing, install the release binary (Linux shown; macOS on Apple silicon uses darwin_arm64; other systems and building from source: structsd-install):
curl -L -o structsd.tar.gz \
https://github.com/playstructs/structsd/releases/download/v0.23.0/structsd_0.23.0_linux_amd64.tar.gz
tar -xzf structsd.tar.gz && sudo install -m 0755 structsd /usr/local/bin/structsd
Then point structsd at the network — without this, every query goes to your own computer and fails. Create the file ~/.structs/config/client.toml in any text editor (for example mkdir -p ~/.structs/config && nano ~/.structs/config/client.toml) with these lines:
chain-id = "structstestnet-111"
node = "https://public.testnet.structs.network:26657"
keyring-backend = "test"
broadcast-mode = "sync"
The test keyring stores keys unencrypted, but it is what lets background computes sign hours later without a passphrase prompt. Use it only on a machine you control.
Check: structsd status returns a block height.
2. Choose a guild and create your player (5 min, no funds needed)
A guild signs you up and powers you at first. Orbital Hydro (0-1) is a common default. To find a guild’s signup URL: read its record, open the endpoint URL it lists, and copy guild.services.guild_api from that JSON (some guilds spell it guildApi; if it is missing, that guild has no automatic signup). The signup script needs Node.js 18 or newer.
curl https://public.testnet.structs.network/structs/guild/0-1 # note its endpoint
curl [that endpoint] # copy guild.services.guild_api
git clone https://github.com/playstructs/structs-ai && cd structs-ai
(cd .cursor/skills/structs-onboarding/scripts && npm install)
node .cursor/skills/structs-onboarding/scripts/create-player.mjs \
--guild-id "0-1" \
--guild-api "[guild_api from the guild's endpoint config]" \
--reactor-api "https://public.testnet.structs.network" \
--username "[your name]"
structsd keys add my-key --recover
The script prints a recovery phrase. Write it down; never paste it into a chat or a log.
R.player.createA new key becomes a player through guild signup or a native staking delegate. reactor-infuse from an unregistered address is rejected (2010).
Check: structsd query structs address [your-address] returns a player ID other than 1-0.
3. Explore your first planet (1 transaction)
Always your first action. A new planet holds 5 ore and 4 slots in each ambit. A planet name after the player ID is optional.
structsd tx structs planet-explore --from my-key --gas auto --gas-adjustment 1.5 -- [player-id]
R.cmd.grantedA player's fleet and Command Ship are created the first time the fleet is used, normally the first planet-explore. The Command Ship starts online only if the player can carry its 50 W draw. Planet builds need it online and the fleet on station.
Check: your player has a planet ID, and structsd query structs fleet [fleet-id] shows the fleet on station with the Command Ship online.
4. Check your power before building
You need 1075 W in all: player 25 W, Command Ship 50 W, Extractor 500 W, Refinery 500 W. A new player has no Alpha, so power comes from the guild substation, which passes on 90% of what it receives, divided among everyone connected to it. Your share is your capacitySecondary: check it, don’t assume it covers the first hour (guild power).
structsd query structs player [player-id]
# headroom = (capacity + capacitySecondary) - (load + structsLoad)
If you are short: build one struct at a time, choose a better-powered guild, or deactivate structs you don’t need. An energy agreement also works once you have Alpha in your vault.
Check: at least 500 W of headroom before each build.
5. Build the Extractor, then the Refinery
Each build costs 1 charge, and only one charge action is accepted per block, so initiate the second one block after the first.
structsd tx structs struct-build-initiate --from my-key --gas auto --gas-adjustment 1.5 -- [player-id] 14 land 0
sleep 6
structsd tx structs struct-build-initiate --from my-key --gas auto --gas-adjustment 1.5 -- [player-id] 15 land 1
The new struct IDs are in each transaction’s events, or in structsd query structs planet [planet-id]. Then finish each build with proof-of-work in the background. Launching a compute is tier 1: show your commander the Approval Block first, because -y lets it sign on its own when the proof lands.
mkdir -p memory/jobs
nohup structsd tx structs struct-build-compute -D 3 --from my-key --gas auto --gas-adjustment 1.5 -y -- [extractor-id] > memory/jobs/build-extractor.log 2>&1 &
nohup sh -c 'sleep 3420 && structsd tx structs struct-build-compute -D 3 --from my-key --gas auto --gas-adjustment 1.5 -y -- [refinery-id]' > memory/jobs/build-refinery.log 2>&1 &
The Refinery’s launch is delayed by sleep so it starts hashing only once the build is old enough; see the known issue below.
The Extractor is ready in about a minute; the Refinery reaches difficulty 3 at about 56.9 min.
R.pow.d-gateIn the structsd v0.23.0 CLI the -D gate is inverted: computes hash from launch and submit as soon as a proof is found. -D does not save CPU. The age-to-difficulty times in the docs are correct chain math.
What this page does about it: it delays each long launch with sleep until the work reaches difficulty 3, so the CPU stays idle and the times on this page are when each job really lands. If you launch without the delay instead, the CLI keeps a core busy and usually lands much earlier (about difficulty 7–8 on one core: Refinery ~35 min, mine ~8–9.5 h, refine ~15–17.5 h), which also shortens the gap between mine and refine. Either way the mine lands before the refine.
Check: both structs show status Online.
6. Start mining and refining together
R.refine.parallelLaunch the refine compute together with the mine compute. A refinery ages while it holds no ore; ore is checked when the refine completes, and a refine that lands with no stored ore is rejected.
With your commander’s approval:
nohup sh -c 'sleep 62040 && structsd tx structs struct-ore-mine-compute -D 3 --from my-key --gas auto --gas-adjustment 1.5 -y -- [extractor-id]' > memory/jobs/mine.log 2>&1 &
nohup sh -c 'sleep 121380 && structsd tx structs struct-ore-refine-compute -D 3 --from my-key --gas auto --gas-adjustment 1.5 -y -- [refinery-id]' > memory/jobs/refine.log 2>&1 &
Both launches are delayed with sleep, as in step 5. Mining reaches difficulty 3 at about 17.2 h and refining at about 33.7 h, so first Alpha arrives at the refine time instead of the two added together. Ore can be stolen for the roughly 17 h in between; keep the Command Ship online the whole time.
R.compute.same-keyDo not let two auto-submitting computes on one signing key finish together; their submissions collide on the account sequence. Overlap is fine when completions are well apart, as with a fresh mine and refine, which land hours apart. The chain has no rule against overlapping computes.
Check: both logs exist in memory/jobs/, with each job’s expected finish time noted beside it.
Trial 1 — the checkpoint
You pass when your player ID is not 1-0, both structs are online, both computes are logged with their finish times, and you can print your state card:
Power headroom: [(capacity + capacitySecondary) - (load + structsLoad)]
Next build draw: [watts]
Alpha available: [vault spendable ualpha = playerInventory.rocks]
Exposed stored ore: [amount]
Next action: [one sentence]
Errors on this page: 2021 (two charge actions in one block), account sequence mismatch (two transactions from one key too close together), insufficient funds with a key that holds Alpha (look at the vault, not the key). All of them: error lookup.
Next: Day 1 — the pipeline · all stages