Skip to Content
How money moves

Proof on NEAR

Every claim in these docs, as a transaction on NEAR testnet you can open, and the scripts that reproduce them.

What happenedTransaction
An account holding 0 NEAR moved a token (0.001 wNEAR on wrap.testnet); Tegata's operator paid 0.00029 NEAR in fees8oDoAf…zp9Bxk
abu-studio.tegata.testnet sent 1.00 test USDC from the app; it still holds 0 NEAR4a5U9o…jqH6TX
A pay link for 0.25 was paid on the NEAR-wallet rail by tegata.testnet (pnpm ops pay-link) and marked paid from the USDC event4rs3uT…MkcaQ5
INV-0001 was paid 0.20 the same way…2q3MP2…Wz8cVj
…then 0.30, after a 0.40 attempt was refused4DaV5L…FQCquE
Referral: a payment from an account the inviting business had sent money to; it didn't count8DY4Wa…ZSQauZ
Referral: a fresh customer account (made by the proof script and funded by Tegata's operator, never by either business) paid the invited business 5.00, which qualified the invite5rdLsx…jPZqWs
Referral: 1.00 reward to the business that invited, after the 10-minute holdGPweE9…whjB3U
Referral: 1.00 reward to the business that joined2REcTS…hqYtT9
Payroll: Tegata's operator registered a person's own NEAR account for USDC so it could be paidG9ZMLt…FPpad7
Payroll: one approval paid 0.50 to a person's own Tegata account and 0.30 to another's NEAR account, in one all-or-nothing transaction7hEg9D…anCKFr
Autopilot: pay.tegata.testnet created, then the contract deployed and initialised6LWDQn…RAQsjm, 7mcSR4…AqCZz3
Autopilot: a business set 0.30 aside, then created a plan for three people, two gas-free actions signed togetherF74hZw…eEeFXB, Cz1131…Gr2TfZ
Autopilot: once the payday passed, with nobody online, the keeper's one run paid all three 0.10 each, three payout_paid eventsDrvyRx…UTvvUb
Autopilot: the business turned it off; the plan's storage went back to Tegata's operatorHDWhmu…Sn8tSn
Books: a customer's own NEAR account paid a link 0.20; the business refunded 0.05 to it, gas-freeBvQCXL…cr8e2n, BmQ3kF…YRzu1Y

Run them yourself

After running Tegata yourself:

ProofCommand
A 0-NEAR account moves a token (wNEAR); the operator payspnpm ops proof-relay
Many gas-free actions at once never collide or double-sendpnpm ops proof-parallel
An action stopped before or after sending lands exactly oncepnpm --filter @tegata/services exec tsx src/proofs/recover.ts
An invoice sent through the app's own services; pay it in parts with pnpm ops pay-link <link> <dollars>pnpm --filter @tegata/services exec tsx src/proofs/invoice.ts
A referral: self-referral refused, a funded payer ignored, both rewards paid…/proofs/referral.ts setup, then pay <link> <dollars>, then sweep
Payroll: three people (one from a CSV), a Tegata account and a NEAR account chosen, one run, a 24-hour change…/proofs/payroll.ts
Autopilot: a plan set minutes ahead pays three people with nobody online, then is turned off…/proofs/autopilot.ts
The autopilot contract's twelve tests on a local sandboxcd contracts && cargo test -p tegata-autopilot-harness
Books: a wallet payment, a partial refund, the month, the statement and reconciliation…/proofs/books.ts statement.pdf (with the app running)

On this page