Free play · NEAR testnet

Try to break it

Each button below signs an attack with your guest key and sends it to the dish as a real transaction. The contract should refuse every one, and you get NEAR’s own error text and the failed transaction to check. Same code as mainnet: the two dishes run one build.

Attempts refused
—
3 sent from the team's wallet, each listed below with its transaction; press any Try it to add yours
Attempts that got through
0
a success would show here as a transaction that changed the dish
Your guest
—

Mint PETRI to yourself

There is no mint: all 1,000,000 PETRI were made once, into the agar. Calls ft_mint.

Change the rules

No method changes a dish's rules once it starts. Calls set_rules with a feed a thousand times richer.

Relaunch the dish

relaunch is private: only the contract account's own key could run it, at a deploy.

Initialise it again

new runs once. A second call would wipe every balance; the SDK refuses it.

Send your free PETRI to a wallet

Free play never reaches NEAR: a guest cannot send PETRI. Its key cannot even attach the 1 yoctoNEAR every transfer needs, so the contract refuses at that check first.

Take another sponsor's credit

Only the sponsor who gave credit can take back what is left of it. Calls unsponsor on a strain the relayer sponsored.

Sell more PETRI than you hold

The agar buys back only what a colony holds (and a guest is paid in credit). Tries to sell 1,000,000 PETRI.

Plant twice in one generation

One planting per colony per generation. Plants a blinker, then a second one straight after, within the same 15-second generation: the second is refused.

Plant on a rival's living cells

A planting may only bring dead cells to life. Tries to plant a single cell on top of another colony's living one.

Mint a slide of a rival's cells

A slide captures only the minter's own living cells (at least 5). Tries a rectangle around another colony.

Pay for a pact with free PETRI

Only PETRI a colony could sell pays for a pact; a guest's is kept in the dish. Offers a strain 1 PETRI.

Accept a pact made to someone else

Only the colony a pact was offered to can accept it (and take its PETRI). Tries the most recent pact.

End a binding pact early

An accepted pact binds until its generation; nobody, not even its two colonies, can end it sooner.

What a guest key cannot even ask, from a wallet

A guest’s key cannot attach NEAR, so these were sent with near-cli from a team test account that plays exactly like a guest. Run any of them yourself from your own testnet account.

A free-play colony sends its PETRI to a wallet

lab-kept.petri-lab.testnet joined on sponsored credit only, as a guest does, but with a full-access key, so it can attach the 1 yoctoNEAR a transfer needs.

Refused on chain: free play's PETRI stays in the dish: a colony that has never attached NEAR cannot send PETRI (it can plant it, or sell it back for credit) The failed transaction
near contract call-function as-transaction petri-v6.testnet ft_transfer json-args '{"receiver_id":"petri-bench-a.testnet","amount":"1000000","memo":null}' prepaid-gas '30 Tgas' attached-deposit '1 yoctoNEAR' sign-as <your account> network-config testnet sign-with-keychain send

A colony grown on credit brings its own NEAR (v6.5)

The same colony, with a block it planted on credit still alive, attaches 0.02 NEAR to buy PETRI, which would turn its free-play cells into NEAR-earning ones.

Refused on chain: a colony that grew on sponsored credit must let its cells die (or start a new colony) before it brings its own NEAR The failed transaction
near contract call-function as-transaction petri-v6.testnet buy json-args '{}' prepaid-gas '150 Tgas' attached-deposit '0.02 NEAR' sign-as <your account> network-config testnet sign-with-keychain send

Relaunch from an ordinary account

relaunch would wipe the dish; only the contract account's own key can run it, at a deploy, and mainnet has had no such key since 10 November (DeleteKey Dsn8Bx…).

Refused on chain: Method relaunch is private The failed transaction
near contract call-function as-transaction petri-v6.testnet relaunch json-args '{"rules":{},"accounts":[]}' prepaid-gas '30 Tgas' attached-deposit '0 NEAR' sign-as <your account> network-config testnet sign-with-keychain send

Every attempt is a real transaction on petri-v6.testnet, signed by your guest key and relayed for free; the relayer allows at most a few dozen lab attempts a guest a day. The lab’s code is Break.tsx; what the relayer accepts is in the relay route.