Tidepooltestnet

Tidepool for agents

llms.txt, Markdown pages, AGENTS.md and rules for autonomous callers.

Tidepool is built to be read and used by coding agents and autonomous agents.

Files for agents

A full swap from a script

The repo ships examples/swap.mjs. It uses a fresh testnet account, so it needs no setup beyond Node 20:

git clone <your copy of the tidepool repo> && cd tidepool/examples && npm install
TIDEPOOL_URL=https://www.usetidepool.tech node swap.mjs            # quote → deposit → status → SUCCESS
TIDEPOOL_URL=https://www.usetidepool.tech node swap.mjs --refund   # deposit too little, wait for REFUNDED

What it does:

  1. Creates a throwaway testnet account through the public testnet helper.
  2. Calls POST /v0/faucet with mode: "intents".
  3. Calls POST /v0/quote with dry: false and depositType: "INTENTS".
  4. Deposits with a signed NEP-413 transfer intent to the deposit address. The script submits it with execute_intents from its own account, so it pays its own gas.
  5. Calls POST /v0/deposit/submit, then polls GET /v0/status until SUCCESS or REFUNDED.

Rules for agents

  • Always get a dry quote first and check amountOut and minAmountOut before going live.
  • Deposit exactly quote.amountIn. Under minAmountIn waits for more until the deadline, then refunds.
  • Poll /v0/status every 2 to 5 seconds. Stop on SUCCESS, REFUNDED or FAILED.
  • Faucet: one drip per account and mode per hour. Do not loop on it.
  • Never send real assets. Tidepool is testnet only.

Prompt snippet

Paste this into your agent's system prompt:

You can swap test tokens on NEAR testnet through Tidepool, a 1Click-compatible sandbox
(base URL https://www.usetidepool.tech). Read /llms-full.txt for the API.
Flow: POST /v0/faucet → POST /v0/quote (dry:true, then dry:false) → deposit quote.amountIn
to quote.depositAddress → POST /v0/deposit/submit → poll GET /v0/status until SUCCESS,
REFUNDED or FAILED. Amounts are strings in base units. Testnet only.

Every docs page also has Copy Markdown and Open in ChatGPT / Claude buttons at the top.

On this page