FAQs About the Sandbox

Edited

Is there a sandbox for testing?

Yes. The sandbox let's you test integrations without moving real funds. Create an account at app.bitnob.com and generate sandbox credentials under Settings > API Keys. You do not need KYB to start testing.

What is the sandbox base URL?

Sandbox and production use the same base URL: https://api.bitnob.com. The Client Secret used to sign a request determines the environment.

How do sandbox and production keys differ?

Your Client ID stays the same, but each environment has a different Client Secret. Requests signed with the sandbox secret use the test environment. Keep sandbox and production secrets in separate configurations.

How do I confirm which environment I'm in?

Call GET /api/whoami. A request signed with the sandbox secret returns "environment": "sandbox".

What can I test in the sandbox?

  • Bitcoin and USDT quotes.

  • On-chain, Lightning and stablecoin deposits.

  • Payouts, including failure and underpayment scenarios.

  • Quote expiry and timeouts.

  • Webhook delivery and retries.

  • NGN virtual account deposits.

  • Virtual card events.

How do I test stablecoins?

Use a sandbox API key to test stablecoins. To get test USDC, open Circle’s testnet faucet, select a network supported by the Bitnob sandbox, and enter your sandbox deposit address for that network. Test USDC has no monetary value and is for testing only. Circle’s testnet faucet

Tron, BSC, Arbitrum, and Plasma are available only in production. Supported networks

Which test networks does the sandbox support?

Network

Test network

Stablecoins

Avalanche

Fuji

USDT, USDC

Base

Base Sepolia

USDC

Ethereum

Sepolia

USDT, USDC

Polygon

Amoy

USDT, USDC

Solana

Devnet

USDT, USDC

Stellar

Testnet

USDC

Arbitrum, BNB Smart Chain, Plasma and Tron are available in production only.

How do I test card events?

Use the virtual cards Simulate Webhook endpoint to trigger authorisation, settlement, reversal and decline events. This endpoint works only in the sandbox.

How long do trading quotes last in the sandbox?

NGN trading quotes last 30 seconds, while crypto trading quotes last approximately five minutes. Submitting an expired trading quote returns 422 with “Quote has expired”.

Trading quote durations are separate from payout quote durations.

How do I test webhooks on my local machine?

Expose your local server through a tunnel, such as ngrok or localtunnel, and configure the tunnel URL as your sandbox webhook endpoint.

To test retries, return a 500 response from your test handler. For successful delivery testing, return 200 OK after accepting the event.

What are the sandbox's limitations?

  • Data may reset periodically, so the sandbox is not suitable for long-term records.

  • Fewer networks are available than in production.

  • Default transaction limits apply.

  • Simulation endpoints cannot be used in production.

How do I go live?

  1. Complete the KYB verification required for your intended products and limits.

  2. Test your integration, including failure scenarios.

  3. Replace the sandbox Client Secret with the production Client Secret. Your Client ID and base URL stay the same.

  4. Whitelist your production server IPs.

  5. Configure your production webhook URL and verify your environment before sending live transactions.

Why am I getting authentication errors after going live?

Check for mixed credentials: a sandbox secret used in production configuration, or a production secret used in your test configuration. Confirm the secret your application actually loads and the environment returned by GET /api/whoami once authentication succeeds.

RELATED ARTICLES.

Was this article helpful?

Sorry about that! Care to tell us more?

Thanks for the feedback!

There was an issue submitting your feedback
Please check your connection and try again.