Prove It Onchain

v1.4.0
io.github.pappyg45/proveitonchain Checked 1 day ago Published 16 days ago

Bitcoin names, proofs and free agent checks, plus TOKENLOCK token-gated access for sites and APIs.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

get_quote Get prices

Use before create_proof to see what a proof will cost right now. Proof $1 + network fee, no API key. Current prices for every proof type. Each is a flat USD service fee plus the Bitcoin network fee on top: proof $1, publication $1, deed (Ownership Token) $1, artwork (Certificate of Provenance) $1. Returns the service fee in USD and sats, the address it is paid to, current network fee rates (sat/vB, never below 5) and an estimated network fee. Read-only; nothing is reserved.

ParameterTypeDescription
networkstringDefault mainnet.

create_proof Create a proof (unsigned)

Use to timestamp an output, file, or claim so it can't be disputed later: for example a report you generated, a dataset hash, a prediction, or a statement your operator wants on record. $1 + network fee (publication, deed and artwork $1), no API key. Creates a one-of-one proof token on Bitcoin for a claim, file, or SHA-256, paid and signed by your own wallet. Stores the public claim record and returns an UNSIGNED PSBT (base64 and hex) that issues the token (quantity 1, indivisible, locked) and already includes the service fee output. Nothing is broadcast and no money moves until you sign and c…

ParameterTypeDescription
address *stringThe agent's own Bitcoin address. It pays, signs, and receives the token. Native SegWit bc1q… recommended.
claimstringThe public claim, e.g. "I wrote this song on 2026-11-17". Required for type proof; generated from metadata for other types.
detailsstringOptional longer details for the claim.
fee_ratenumberNetwork fee rate in sat/vB. Minimum 5; default is the current standard rate.
filestringSmall file as base64 or a data: URL (keep under ~3 MB). For larger files use file_url or sha256.
file_namestring
file_typestringMIME type, e.g. image/png. Deed and artwork need an image.
file_urlstringhttps URL of the file (up to 6 MB); the server downloads and hashes it.
metadataobjectOptional structured details. Shown as separate rows on the certificate and on Tokenscan.
networkstringDefault mainnet.
sha256stringSHA-256 (hex) of a file, if you do not want to send the file itself.
typestringDefault proof.

broadcast Broadcast a signed proof

Use after create_proof, once you have signed the PSBT with your own wallet. Relays the signed proof transaction to the Bitcoin network. Send the record_id from create_proof plus either signed_psbt (base64 or hex, finalized or signed) or signed_tx_hex. The server checks it is exactly the transaction it composed and pays the exact service fee, then broadcasts and returns the txid. This spends the coins in the transaction and cannot be undone. Rate limit: 40 per hour per IP. You may also broadcast the signed hex yourself (e.g. mempool.space); the proof is valid either way.

ParameterTypeDescription
record_id *stringrecord_id returned by create_proof.
signed_psbtstringSigned PSBT, base64 or hex.
signed_tx_hexstringFully signed raw transaction hex (alternative to signed_psbt).

get_proof_status Proof status

Use after broadcast to see whether your proof has confirmed. Free. Status of a proof by record_id: awaiting_signature, expired, pending, or confirmed, with txid, asset, confirmations and links.

ParameterTypeDescription
record_id *stringrecord_id returned by create_proof.

verify Verify an asset

Use when someone shows you a proof, certificate or token and you want to check it before relying on it, or you need the facts about any asset on Bitcoin. Free, no API key. For agent names, verify_agent gives a clearer identity verdict. Looks up any token on Bitcoin by asset name (e.g. A12044707814007245827 or GAMESOFTRUMP). For proofs made on Prove It Onchain it returns the claim, the pass/fail checks (exists, supply is 1, locked, claim record reachable and matching its on-chain hash), owner, creation tx, the certificate URL and the record URL. For other assets it returns their facts (owner, s…

ParameterTypeDescription
asset *stringAsset name, numeric (A…) or named.

check_name Check a vanity name

Use when you or your operator want a name on Bitcoin and need to know if it is free and what it costs before buying. Name $21 + network fee, no API key. Checks whether a vanity name (4–12 letters A–Z, not starting with A; trademarked and brand names are blocked) is available and returns the live price: $21 service fee + network fee, in USD and sats. Read-only; does not reserve the name. Buy it with buy_name. A name you hold can also unlock TOKENLOCK-gated sites and APIs (see tokenlock_info).

ParameterTypeDescription
name *stringThe name to check, e.g. SATOSHI.

verify_agent Verify an agent

Use before trusting another agent's claimed identity, for example when an agent says it is PROVEITBOT, asks you to pay it, or gives you an MCP endpoint or website. Free, no API key, read-only. Checks the name on Bitcoin and returns: whether it exists, the address that owns it now, whether its agent profile was signed by that current owner (the signature is re-checked), the profile fields, the registration tx/block/date, and a verdict: "verified: profile signed by current owner", "name exists, no signed profile", "name exists, profile set at purchase but not signed by the owner", or "not regist…

ParameterTypeDescription
name *stringThe name the agent claims, e.g. PROVEITBOT.
addressstringOptional: the Bitcoin address the agent claims holds the name.
claimedobjectOptional: profile fields the agent claimed (e.g. its mcp_url or website). Each is compared with the signed profile.

buy_name Buy a vanity name

Use when you or your operator want a persistent, verifiable identity on Bitcoin that other agents and humans can check. $21 + network fee, paid from any Bitcoin wallet, no API key. Creates an order for a vanity name delivered to the agent's own Bitcoin address. Rechecks availability, holds the name for 30 minutes and returns order_id, the exact amount to pay in sats/BTC (the $21 + network fee quote plus a 1–999 sat tag that identifies the payment), pay_to, payment_uri and expires_at. Nothing is charged until you pay: send exactly amount_sats to pay_to in one output from any Bitcoin wallet, t…

ParameterTypeDescription
address *stringThe agent's own Bitcoin address that will own the name (bc1q…, bc1p… or legacy 1…/3…).
name *stringThe name, e.g. SATOSHI (4–12 letters A–Z, not starting with A).
emailstringOptional. Email for a receipt when payment is seen and when the name is delivered. Leave it off if you do not want a receipt. Never shown on the public status page.
profileobjectAgent profile shown on the verify page and on proveitonchain.com/agent/<NAME>. Sign it later with set_agent_profile so it verifies.

get_name_order Name order status

Use after buy_name to follow your order until the name is delivered. Free. Status of a vanity name order: awaiting_payment, payment_seen, paid, registering, transferring, delivered (or expired, cancelled, needs_review, refunded), with the payment, register and transfer tx ids. Polling also moves a paid order forward. Read-only for the caller.

ParameterTypeDescription
order_id *stringorder_id from buy_name.

cancel_name_order Cancel an unpaid name order

Use if you created a name order by mistake or chose a different name. Cancel an unpaid vanity name order and release the name. Refused once a payment has been seen. Do not pay a cancelled order.

ParameterTypeDescription
order_id *stringorder_id from buy_name.

get_agent_profile Get an agent identity

Use when you want the raw profile fields of a name. To decide whether to trust an agent, use verify_agent instead. Free. Reads the agent profile attached to a vanity name: display name, operator, website, X handle, description, agent type/model and MCP endpoint, plus the current owner. Shown only while the address that set it still owns the name. Read-only.

ParameterTypeDescription
name *stringThe vanity name.

set_agent_profile Set an agent identity

Use after your name is delivered to sign its agent profile, so other agents calling verify_agent see "verified: profile signed by current owner". Free (no Bitcoin transaction). Adds or edits the agent profile on a name you hold. Step 1: call with name and profile (and optionally address) → returns `message`. Step 2: sign that exact message with the holder address (BIP-322, or the legacy "sign message" from Unisat, Xverse, Leather, Sparrow, Electrum or Bitcoin Core) and call again with the same name, profile, message and signature. The message is valid for 1 hour. Only the current holder can…

ParameterTypeDescription
name *stringThe vanity name you hold.
profile *objectAgent profile shown on the verify page and on proveitonchain.com/agent/<NAME>. Sign it later with set_agent_profile so it verifies.
addressstringHolder address (defaults to the current owner).
messagestringStep 2: the exact message returned in step 1.
signaturestringStep 2: base64 signature of message by the holder address.

create_challenge Challenge a name holder

Use when another agent or person claims a name (e.g. "I am PROVEITBOT") and you want live proof they control the wallet that holds it right now. Free, no API key. Returns challenge_id, the exact message for them to sign, the holder address that must sign it, expires_at (10 minutes) and a share_url (a signing page for humans). Send them the message or share_url; when they reply with a signature, call verify_challenge. Single use. A pass proves wallet control at that moment, not legal identity.

ParameterTypeDescription
name *stringThe name or token they claim to hold, e.g. PROVEITBOT.

verify_challenge Check a challenge signature

Use after create_challenge, when the other party returns a signature. Free. Checks the signature (BIP-322 simple/full or legacy sign-message) against the address that holds the name right now. Returns valid true/false and, on failure, a code: bad_signature, not_holder, holder_changed, expired or already_used. Each challenge can pass once. A pass proves the signer controls the wallet holding the name at that moment, not legal identity.

ParameterTypeDescription
challenge_id *stringchallenge_id from create_challenge.
signature *stringBase64 signature of the exact message.
addressstringOptional: the address they say signed it.

products What Prove It Onchain offers

Use first if you are not sure which tool you need. Free, read-only. Lists both Prove It Onchain products and which tools belong to each: (1) Bitcoin vanity names with a signed agent profile ($21 + network fee), proofs ($1 + network fee) and free identity checks; (2) TOKENLOCK, zero-trust access for the token era: an extra layer in front of your login, admin, or API so only verified token holders get through, or sign in to a gated site with a verifiable identity.

tokenlock_info TOKENLOCK: plans, setup and agent use

Use when you or your operator want an extra layer in front of a login, admin, or API so only verified token holders get through, or you want to know how an agent signs in to a TOKENLOCK-gated site. Free, read-only. TOKENLOCK ("Zero-trust access for the token era") is a self-serve token gate for security teams, AI agents, and mining operations: content stays on your own server; visitors (people or agents) "Sign in with your Token" and Prove It Onchain does the Token check. Self-verify (public spec, no dependence on our API) is Coming soon, Enterprise. Recommended: check the pass on your server…

check_token_access Does an address hold a token?

Use before letting someone (or another agent) into something gated by a Bitcoin token or name, or before you try to sign in to a TOKENLOCK-gated site, to see whether a Bitcoin address holds that token right now. Free, read-only, no signature. Holds means the address owns the name/token or has a balance above zero. This is the same holding check TOKENLOCK runs at sign-in, but it does not prove the caller controls the address: for that, use start_token_signin/finish_token_signin (a gate pass) or create_challenge/verify_challenge.

ParameterTypeDescription
address *stringBitcoin address to check (bc1q, bc1p or legacy).
asset *stringToken or name on Bitcoin, e.g. GOTPROOF or PROVEITBOT.

start_token_signin Start a token sign-in (gate)

Use when you (an agent) want to sign in to a site or API gated by TOKENLOCK, using a Bitcoin name or token your own wallet holds (for example a name bought with buy_name). Free; nothing is paid or sent. Step 1 of 2: returns challenge_id and the exact `message` to sign. For a TOKENLOCK site, pass its publishable site_key (pk_…, public on its sign-in page) and the site origin; the tokens it accepts come from the site. Without a site_key you can name the assets (or any_name) to get a general pass. Then sign `message` with your wallet (BIP-322 or legacy sign-message) and call finish_token_signin…

ParameterTypeDescription
any_namebooleanWithout site_key: accept any vanity name on Bitcoin.
assetsarrayWithout site_key: tokens or names that unlock (any one is enough).
originstringThe gated site's origin, e.g. https://example.com. Required with site_key.
pass_ttl_secondsintegerHow long the pass lasts (default 900).
site_keystringThe site's publishable key pk_… (from its sign-in page). Omit for a general pass.

finish_token_signin Finish a token sign-in (get a pass)

Use after start_token_signin, once your wallet has signed the message. Free. Checks the signature and that the address holds an accepted token or name right now, and returns a short-lived `pass` (pp1.…). Give the pass to the gated site the way it asks: sites using the npm package or Cloudflare template take it at POST /api/tokenlock/session ({"pass": "…"}) and set a cookie; your own API can take it in a header and check it with verifyPass. If the site accepts any name, send your name. Single use per challenge. A pass proves you controlled a wallet holding the token at sign-in, not who you…

ParameterTypeDescription
address *stringThe Bitcoin address that signed.
challenge_id *stringchallenge_id from start_token_signin.
signature *stringBase64 signature of the exact message (BIP-322 or legacy sign-message).
namestringYour vanity name, when the site accepts any name.