Skip to content
Fourohtwo

Before sending a NEP-141 token on NEAR

402.com.tr/api/x402/near-transfer-preflight

Before sending a NEP-141 token on NEAR: is the token real and not paused, does the receiver exist, and is it registered on the token — the storage_deposit step whose absence fails a transfer. If not, says the exact fix and its NEAR cost. With from and amount, also checks the sender holds enough. Catches sending to the token contract itself. Live from the NEAR RPC.

BaseSolanaAnswering
GEThttps://402.com.tr/api/x402/near-transfer-preflight

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://402.com.tr/api/x402/near-transfer-preflight?amount=25&from=bob.near&to=tether.multisafe.near&token=usdt.tether-token.near");
console.log(await res.json());

Example input

{
  "amount": "25",
  "from": "bob.near",
  "to": "tether.multisafe.near",
  "token": "usdt.tether-token.near"
}