Wallets
A wallet tells the gateway where a store receives payments on one network in watch-only processing: the gateway derives a fresh address per payment intent from your extended public key, so payments go straight to addresses you control and every transfer maps unambiguously to one intent.
Registering a watch-only wallet
Section titled “Registering a watch-only wallet”Register an extended public key (mode: "xpub") for a network that the registry
lists as usable in your environment. A network that is not usable is refused with network_unavailable.
{ "store_id": "store_01J…", "network_id": "bitcoin:mainnet", "label": "Treasury (watch-only)", "mode": "xpub", "xpub": "zpub…", "gap_limit": 20}- Bitcoin: a BIP84 account key (
xpub/zpub), giving native SegWit (p2wpkh) addresses. - EVM / TRON: the account-level key (
m/44'/60'/0'orm/44'/195'/0'), giving one address per intent.
One active wallet per store, network and environment keeps routing deterministic. The extended key is encrypted at rest and never returned by the API — responses show only its fingerprint and the derivation template.
Gap limit
Section titled “Gap limit”Wallet software stops scanning after a run of unused addresses (the gap limit, default 20 here). Each payment
intent reserves the next index, so many abandoned checkouts can exceed your wallet’s gap limit. The wallet object
exposes next_index, gap_limit and last_used_index; when the unused run approaches the limit you are alerted so
you can raise the gap limit in your wallet software. Addresses are never reused across intents.
Ownership proofs
Section titled “Ownership proofs”To show that you control a registered key, sign a challenge with the key at derivation index 0:
POST /v1/wallets/{id}/ownership-challengereturnsmessage,address,method(eip191for EVM,bip137for Bitcoin) andexpires_at.- Sign
messagein your wallet. POST /v1/wallets/{id}/ownership-proofwith{ "signature": "…" }.
Disabling
Section titled “Disabling”POST /v1/wallets/{id}/disable stops new derivations. Addresses already handed to customers stay watched until
their window closes, so late payments are still observed and reported.