Add deposits and withdrawals to your wallet or app before you have a real anchor. ref1.monarank.xyz speaks the standard SEP path, so code you write against it moves to any production SEP anchor by changing the home domain and the asset. Every payment is real on the testnet ledger, and we measure the anchor every 20 minutes like any other.
The home domain and the asset. Your wallet or SDK reads everything else from the anchor's stellar.toml, read live below.
Standard endpoints any Stellar SDK or wallet can use
Paid on the testnet ledger; a withdrawal completes only when your payment is found there
The "Simulate incoming transfer" button on the transaction page
No SEP-12 or SEP-38; no fee
Sign in, deposit, withdraw. Signing the challenge and the payments is your wallet's or SDK's job; the rest is plain HTTP.
export BASE=https://ref1.monarank.xyz
export G=G... # your testnet account (fund it: https://friendbot.stellar.org/?addr=$G)
# 1) SEP-1: everything else is read from here
curl -s $BASE/.well-known/stellar.toml
# 2) Trustline from $G to MONAREF (issuer in the stellar.toml), from your wallet or SDK
# 3) SEP-10: get a challenge, sign it with your key, exchange it for a token
curl -s "$BASE/auth?account=$G"
curl -s -X POST $BASE/auth -H 'content-type: application/json' \
-d '{"transaction":"<signed challenge XDR>"}'
export JWT=...
# 4) SEP-6 deposit: no bank here, the sandbox button plays it
curl -s -H "Authorization: Bearer $JWT" \
"$BASE/sep6/deposit?asset_code=MONAREF&account=$G&amount=10"
curl -s -X POST $BASE/sep6/more_info -d id=<ID> # "Simulate incoming transfer"
curl -s -H "Authorization: Bearer $JWT" "$BASE/sep6/transaction?id=<ID>"
# -> status "completed", stellar_transaction_id
# 5) SEP-6 withdrawal: pay the amount to account_id with the text memo it gives
curl -s -H "Authorization: Bearer $JWT" \
"$BASE/sep6/withdraw?asset_code=MONAREF&type=bank_account&amount=10"
# -> {"id":"...","account_id":"G...","memo_type":"text","memo":"..."}
curl -s -H "Authorization: Bearer $JWT" "$BASE/sep6/transaction?id=<ID>"
# -> "completed" once your payment is on the ledgerOpen source: the anchor's code . Its availability and speed are on the live scores.
Copy the instructions and paste them into Claude Code, or any assistant that works in your project. It reads your code first, tells you its plan, then adds sign-in, deposit and withdrawal through the standard SEP calls, with the home domain and asset in configuration.
Add the Mona testnet anchor to my project as a Stellar deposit and withdrawal (on/off-ramp), through the standard SEP path, so that the same code later works with a production anchor by changing only the home domain, the asset and the network.
The anchor
- Home domain: ref1.monarank.xyz, on the Stellar testnet. Discover everything from https://ref1.monarank.xyz/.well-known/stellar.toml (SEP-1): WEB_AUTH_ENDPOINT, TRANSFER_SERVER, SIGNING_KEY and the asset (code MONAREF, its issuer in [[CURRENCIES]]). Read the endpoints from the stellar.toml instead of hard-coding them.
- Network passphrase "Test SDF Network ; September 2015"; Horizon https://horizon-testnet.stellar.org.
- MONAREF is a test asset with no value. Deposits and withdrawals of 1 to 100, no fee. There is no bank and no KYC: a deposit is paid when its sandbox button is pressed.
- Fair-use limits: 5 deposits per account and 20 per IP address a day, 3 transfers in flight per account, 120 requests a minute. Over a limit the anchor answers HTTP 429 (or 503 when busy) with {"error": "..."}; handle it and do not retry in a tight loop.
First look at my project: its language and framework, and how it already handles Stellar accounts (a browser wallet such as Varial (formerly Freighter) or Stellar Wallets Kit, or a server-side keypair). Use the official Stellar SDK for that language. Tell me your plan and the files you will change before you write code.
Implement
1. SEP-1: fetch and parse the stellar.toml.
2. Trustline: the user's account must trust MONAREF (code and issuer from the stellar.toml) before a deposit; this anchor does not pay accounts without one. Offer to add it with a changeTrust operation signed by the user.
3. SEP-10 sign-in: GET <WEB_AUTH_ENDPOINT>?account=<G...> returns {"transaction": ...}. Check it is a valid challenge signed by the stellar.toml SIGNING_KEY for home domain ref1.monarank.xyz (the SDK's WebAuth.readChallengeTx does this), have the user sign it, POST {"transaction": "<signed XDR>"} as JSON to the same endpoint, and keep the returned token. In a browser app the wallet signs: never ask for or touch the user's secret key.
4. SEP-6 deposit: GET <TRANSFER_SERVER>/deposit?asset_code=MONAREF&account=<G...>&amount=<1-100> with "Authorization: Bearer <token>". Keep the returned id. Then GET <TRANSFER_SERVER>/transaction?id=<id> (same header); its more_info_url is the sandbox page. The user presses "Simulate incoming transfer" there, or the app POSTs the form field id=<id> to <TRANSFER_SERVER>/more_info. Poll the transaction until its status is "completed" and show stellar_transaction_id.
5. SEP-6 withdrawal: GET <TRANSFER_SERVER>/withdraw?asset_code=MONAREF&type=bank_account&amount=<1-100> with the token. The answer has account_id, memo_type "text" and memo. Send a payment of exactly that amount of MONAREF to account_id with that text memo, signed by the user, then poll <TRANSFER_SERVER>/transaction?id=<id> until "completed".
6. Show the statuses (pending_user_transfer_start, pending_anchor, completed, error) and the anchor's errors, which come as {"error": "..."}.
Keep the home domain, the asset code and the network in configuration. Add a small script or test that runs the whole flow against ref1.monarank.xyz with a fresh testnet account funded by Friendbot (https://friendbot.stellar.org/?addr=<G...>). Testnet only: never use mainnet keys or real funds.