Go back

AI builds it, Wallet Verifier proves it: wallet integrations done right

Connecting a casino’s wallet to a game platform is where money bugs live. We give operators two tools that work as a pair: a skill that teaches their AI coding agent to build the integration the right way, and Wallet Verifier, which tests it in depth. The agent runs Wallet Verifier against its own staging endpoint and keeps fixing until every check passes, and we run it once more before a single real bet is placed.

Why wallet integrations go wrong

In a seamless wallet integration the operator keeps the player’s balance, and our platform asks the wallet to take bets, pay wins and roll bets back. Retries are part of normal operation: when an answer does not arrive, the same request is sent again. Requests can also arrive late, or twice at the same moment. An integration that handles only the happy path can charge a player twice for one bet, take money for a round that was cancelled, or accept requests without checking who sent them. AI coding agents make this both better and worse. They write the endpoints quickly, but given only an API reference they can be confidently wrong about exactly these cases, because nothing in the reference tells them where the money is at risk.

Two tools, one definition of done

The skill and Wallet Verifier are built from the same list of checks. The agent writes its own tests against those checks while it builds. It then runs Wallet Verifier itself against the operator’s staging endpoint, fixes whatever fails and runs it again, until every check passes. We run the same tool once more at acceptance.

Build · Integration skill
The operator’s AI agent implements the API
A skill folder the operator drops into their coding agent.
  • Explores the operator’s codebase first and builds on the existing ledger
  • Asks the developer only what the code cannot answer
  • Follows the money rules for retries, cancels and amounts
  • Tests itself against every Wallet Verifier check
  • Runs Wallet Verifier on staging and fixes each failure until all checks pass
Prove · Wallet Verifier
Tequity tests the result, independently
A tool on our platform that runs against the real staging wallet, started from our Back Office or with one signed request.
  • Close to thirty scenarios with real signed requests
  • Compares every balance the wallet returns with the expected one
  • On failure, shows the request, the expected result and the actual answer
  • Run by the operator’s agent while building, and by us at acceptance
The point of the pair: the agent knows from the start what “correct” means, gets a precise answer every time it runs Wallet Verifier, and its work is still checked by a tool it did not write.

The build side: an integration skill for AI coding agents

The skill is a folder of instructions that works in Claude Code and other agents that support skills, or can be pasted into any AI chat. We fill in the operator’s integration values before sending it, and send the secret key separately. It covers the four endpoints the platform calls, request signing and game launch, and it tells the agent how to work: explore first, confirm open decisions with the developer, implement, test locally, run Wallet Verifier on staging until nothing fails, then hand off with a report. Most of it is about the rules that keep money right, written so an agent cannot miss them:

  • Idempotent by transaction id Every bet, win and refund carries a unique id and moves money at most once. Sending it again returns the current balance and changes nothing.
  • Duplicates in flight A retry can arrive while the original is still being processed. The second copy is treated as a repeat, never as a second charge.
  • Retries are always accepted Wins, refunds and their retries can arrive hours after the player has left. They are accepted even when the player’s session has expired; only new bets can be refused.
  • A cancel is final A bet is refunded once, and a bet that arrives after its own cancel is refused, so a late request can never undo a refund.
  • Flexible session management Operators can choose how player sessions work. The integration starts from the strictest setup, and can be adjusted for advanced gaming systems with their own session rules.
  • One balance only Every session draws on the operator’s existing wallet. The agent never creates a second balance next to it.

One integration for every game type. The standard integration does not depend on the kind of game behind it. The same wallet endpoints serve single-player games, multiplayer rooms, sessions that span several games, and advanced gaming systems connected through our RGS , so the operator builds and verifies it once.

Security is part of the instructions

The skill tells the agent to check each request’s signature first, before reading any field, on the exact bytes received, with a constant-time comparison. The signing secret is read from the environment only: it never goes into code, configuration files, tests, logs or the AI conversation. The agent signs its own Wallet Verifier requests from the same environment variable, so running the checks never exposes the key either.

The prove side: Wallet Verifier

Once the integration is on staging, Wallet Verifier sends real signed requests with the operator’s test players and checks every balance the wallet reports. Its scenarios fall into five groups.

Who is calling
  • Requests signed with the wrong secret are refused, for sign-in, balance, bets and cancels alike
  • Unknown launch keys are refused
Exactly once
  • A repeated bet or win with the same id changes nothing
  • Two copies of one bet sent at the same moment are charged once
  • Cancelling the same bet twice refunds it once
Order and timing
  • A bet that arrives after its own cancel is refused
  • A bet replayed after it took the whole balance is not charged again
  • A cancel for an unknown bet is answered safely
Balance integrity
  • Balances chain correctly across consecutive rounds
  • Bets over the balance are refused
  • Zero bets, side bets, free bets and promotional prizes each move the balance exactly as they should
Sessions
  • One player can play two games at once, and both charge the same balance correctly
One bet of €1.11, sent twice at the same moment balance before: €50.00
Integration without protection
bet tx-8f2a −1.11
bet tx-8f2a (retry) −1.11
balance €47.78
Integration that passes Wallet Verifier
bet tx-8f2a −1.11
bet tx-8f2a (retry) already done
balance €48.89
The same transaction must change the balance once, however many times it arrives.

Test, fix, run again: the agent closes the loop

The agent does not stop at its own tests. Once the integration is deployed to staging and we have added the operator’s staging wallet to our platform, the agent starts Wallet Verifier with one signed request. The answer lists every check with its result, together with the request the wallet received and the response it sent back. For each failure, the skill tells the agent to find the cause in the code, fix it, deploy the fix to staging and run Wallet Verifier again. The loop ends when nothing fails, and the developer can follow every step.

  1. Run Start Wallet Verifier One signed request runs every check against the staging wallet.
  2. Read Find what failed Each failed check shows the request, the expected result and the wallet’s answer.
  3. Fix Fix and deploy The agent fixes the cause in the code and deploys it to staging.
↺ run again, until nothing fails
failed: 0 The final run becomes the Wallet Verifier report.

The final run becomes the report. The agent saves the result and turns it into a PDF from a fixed template we supply, so every operator’s report has the same layout and lists every check. Wallet Verifier never runs on production: the platform refuses the request there, and also from any address the operator’s wallet does not allow.

Why an independent check still matters

An agent that writes both the code and its tests can share the same blind spot in both, which is why its own tests are not the last word. Wallet Verifier is written and maintained by us, runs on our platform against the deployed endpoint rather than the agent’s local server, and is the same tool we use for every wallet on the platform, AI-built or not. The agent can run it as often as it needs, but it cannot change what it checks.

From first prompt to go-live

  1. Receive the skill operator We send the skill with the integration values filled in, and the signing secret through a separate channel.
  2. Build with the agent operator The agent explores the codebase, asks the open questions, implements the endpoints and tests them locally against every Wallet Verifier check.
  3. Run Wallet Verifier until it passes operator Once we have added the staging wallet, the agent runs Wallet Verifier, fixes and redeploys whatever fails, and runs it again until every check passes.
  4. Hand-off report operator The agent lists the endpoint URLs, the configuration to send us, its test results, the final Wallet Verifier report and anything still open.
  5. Acceptance Tequity We run Wallet Verifier once more from our Back Office with fresh test keys, leave one round unfinished to confirm it is settled later, and check territory blocks and loss limits with the operator’s test players.
  6. Go live both Production gets its own endpoint and its own secret, with the configuration that passed on staging.

What operators get out of it

A faster integration
The agent does the bulk of the work, from the first endpoint to a passing Wallet Verifier run, guided by rules written for exactly this API.
Fewer disputes
Double charges and refunds undone by late requests are tested for on staging, before the first real bet.
Clean reconciliation
Every balance the wallet returns is checked against the expected one, so mismatches with the platform’s records are found on staging.
Secure by default
Signed requests, a secret that never leaves the environment, and proof that forged requests are refused.

FAQ

Which AI coding agents does the skill work with?

Claude Code and other agents that support skills. Agents without skill support can be given the skill as the first message of the conversation. To run Wallet Verifier itself, the agent needs to be able to run commands, as Claude Code can.

Who runs Wallet Verifier?

The operator’s agent runs it on staging while it builds, as often as it needs. We run it once more at acceptance, before go-live.

Does the AI ever see our secret key?

No. The secret is sent separately and set as an environment variable. The skill tells the agent never to put it into code, logs or the conversation, and the agent signs its Wallet Verifier requests from that variable.

Do we still need developers?

Yes. The agent asks a developer for the decisions only the operator can make, and a developer reviews the result and releases it to production. The skill makes their work faster and safer; it does not replace them.

Is there documentation for people as well?

Yes. The same API is described in our wallet integration guide, which comes with the skill.

Does Wallet Verifier touch real player money?

No. It runs only outside production, with test players the operator provides. The platform refuses Wallet Verifier on production.

What if we integrate without AI?

Wallet Verifier tests every wallet the same way, however it was built.

Tequity
Integrating a wallet with Tequity?
Our RGS comes with an AI-ready integration skill and Wallet Verifier, so your integration is built to the rules, tested against the hard cases and fixed until it passes, before launch.

23 November 2026_by TEQUITY

Share :

Related articles