testnet

Throw a job into the pit

Schedule a call on your own contract. Keepers compete to run it, and you only pay for runs that succeed.

1Your contract

The method Mashpit calls for you on a schedule. Mashpit attaches no deposit.

No contract at hand? Try a real testnet call that needs a keeper:

2Is it keeper-ready?

Check your method before you post. A call that always fails never pays anyone.

  • Anyone may call it. The caller will be the Mashpit contract (contract.mashpit.testnet), not your own bot account.
  • No attached deposit. Mashpit always calls with 0 NEAR attached.
  • Safe to call again. A failed run stays due and may be retried, so a repeated call must do no harm.
  • Fits the gas limit. At most — Tgas for your method; Mashpit keeps the rest for the callback that checks the result.

3Gas

Gas for your method alone. Unused gas is refunded to the keeper that runs it.

With callback — + overhead —

4When it runs, and when it pays

An auction runs before every execution, so every-N-blocks needs at least — blocks (≈ 0 min).

Schedule
About every 7 h on testnet, paid at most once per epoch. Good for staking and reward bookkeeping.
Pay when
Pays when the call does not fail. Use it for methods that return nothing.

5Money

Max reward is your ceiling per run: keepers bid at or below it and the lowest bid wins. Fee is —% of what is paid. Close the job any time to get the balance back.

Review

Deposit
1 NEAR
Storage (estimate)
− 0.0036 NEAR
Job balance
≈ 0.996 NEAR

Covers about 19 runs even if every run pays the full max reward.

After you sign

  1. 1Round #1 opens right away: — blocks to commit, — to reveal.
  2. 2The lowest bid wins and runs the call when it’s due.
  3. 3You pay only if the callback succeeds. Top up or close any time.

You sign one transaction with the deposit attached.