Monitor & Manage Multi-Chain Wallets with FluxRail

Learn how to watch wallets across 36+ chains with FluxRail's signed webhooks, bulk subscriptions, and stateless wallet helpers — then move funds gas-free with one REST API.

If you run anything that touches more than one chain — an exchange treasury, a payroll processor, a marketplace with buyer and seller wallets, a remittance desk — you already know the problem: your monitoring lives in one place, your transfers in another, and your reconciliation in a spreadsheet. FluxRail collapses that into a single REST API across 36+ chains. This post walks through the two products that make that possible for wallet operations: Core (real-time blockchain event monitoring with signed webhooks) and Wallet (stateless key and address helpers), plus the Pay product for moving funds without gas headaches.

Step 0: Authenticate

Everything below hits https://api.fluxrail.io/api/v1 with an API key header. Sandbox keys (flux_test_…) are fully simulated — full lifecycle and webhooks, no real money, no external calls.

export FLUXRAIL_API_KEY="flux_test_your_key_here"
export FLUXRAIL_BASE="https://api.fluxrail.io/api/v1"

Step 1: See what chains you can watch

Before subscribing to anything, confirm the chain slugs you plan to use. The chains endpoint is the source of truth — do not hardcode guesses.

curl -s "$FLUXRAIL_BASE/chains" \
  -H "X-API-Key: $FLUXRAIL_API_KEY"

Fetch a single chain's detail with GET /chains/{slug} when you need to know exactly what it supports.

Step 2: Register a signed webhook first

Monitoring is only useful if events reach you. Create a webhook endpoint before creating subscriptions — this is where every matched event is delivered. Deliveries are signed with HMAC SHA-256 in the X-FluxRail-Signature header and carry a livemode flag so you can reject test traffic in production.

curl -s -X POST "$FLUXRAIL_BASE/webhooks" \
  -H "X-API-Key: $FLUXRAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "url": "https://yourapp.example.com/hooks/fluxrail",
    "description": "Treasury wallet monitor"
  }'

Verify the signature on every request before trusting the payload, and use POST /webhooks/{id}/test to confirm your endpoint responds correctly. If deliveries fail, GET /webhooks/{id}/deliveries shows the history, and GET /events/{id}/retry's sibling endpoint POST /events/{id}/retry lets you replay an event.

Step 3: Subscribe your wallets

A subscription watches an address or a contract. Create one per wallet per chain. If you are onboarding a batch of treasury addresses, use the bulk endpoint instead of looping.

curl -s -X POST "$FLUXRAIL_BASE/subscriptions" \
  -H "X-API-Key: $FLUXRAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "chain": "ethereum",
    "address": "0xYourTreasuryAddress",
    "webhook_id": "wh_abc123"
  }'

For many addresses at once:

curl -s -X POST "$FLUXRAIL_BASE/subscriptions/bulk" \
  -H "X-API-Key: $FLUXRAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "webhook_id": "wh_abc123",
    "subscriptions": [
      { "chain": "ethereum", "address": "0xAddrOne" },
      { "chain": "polygon",  "address": "0xAddrTwo" },
      { "chain": "tron",     "address": "TAddrThree" }
    ]
  }'

Lifecycle management is all there: GET /subscriptions to list, PUT/PATCH to update, POST /subscriptions/{id}/toggle to pause without deleting, POST /subscriptions/{id}/duplicate to clone a config, and GET /subscriptions/{id}/webhook-logs to debug one subscription in isolation. GET /subscriptions/stats gives you counts for dashboards.

Step 4: Query events and stats

Webhooks are the live path, but you still need to backfill and audit. GET /events lists matched events, GET /events/{id} returns one, and GET /events/stats gives aggregate numbers for your ops dashboard.

curl -s "$FLUXRAIL_BASE/events/stats" \
  -H "X-API-Key: $FLUXRAIL_API_KEY"

Step 5: Derive and validate addresses without storing keys

The Wallet product is stateless — FluxRail helps you generate mnemonics, derive addresses, and validate input, but never custodies your keys.

# List supported coins
curl -s "$FLUXRAIL_BASE/wallet/coins" \
  -H "X-API-Key: $FLUXRAIL_API_KEY"

# Validate a user-supplied address before subscribing to it
curl -s -X POST "$FLUXRAIL_BASE/wallet/validate" \
  -H "X-API-Key: $FLUXRAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"chain": "ethereum", "address": "0xUserSuppliedAddress"}'

Generate a mnemonic and derive accounts with POST /wallet/mnemonic and POST /wallet/derive. Always validate addresses before creating subscriptions — a typo silently monitors nothing.

Step 6: Move funds without gas friction

Monitoring tells you money arrived; Pay lets you move it out. FluxRail sponsors gas on every supported chain, so you never check for gas — but the value itself still has to be there. Check the balance first:

curl -s "$FLUXRAIL_BASE/transfer/balance?chain=tron&address=TYourAddress&token=USDT" \
  -H "X-API-Key: $FLUXRAIL_API_KEY"

Then send. Note that Pay requires an active webhook already registered — the same one you created in Step 2 works. Without it, /transfer returns 400.

curl -s -X POST "$FLUXRAIL_BASE/transfer" \
  -H "X-API-Key: $FLUXRAIL_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "chain": "tron",
    "to": "TRecipientAddress",
    "amount": "250.00",
    "token": "USDT",
    "from_private_key": "your_key",
    "client_reference_id": "payout-batch-2024-07"
  }'

Every status change — transfer.completed, transfer.partial, transfer.failed — is delivered to your webhook. There is no polling substitute; treat the webhook as the completion signal and use GET /transfer/{id} (UUID or your client_reference_id) for reconciliation.

Putting it together

  • Register one webhook and verify X-FluxRail-Signature on every delivery.
  • Validate addresses via /wallet/validate before subscribing.
  • Bulk-subscribe treasury wallets across chains with a shared webhook.
  • Reconcile from /events and /events/stats; replay failures with /events/{id}/retry.
  • Move funds with /transfer after checking /transfer/balance.

One API key, one webhook, one signature scheme, 36+ chains. Read the full reference at fluxrail.io/docs and start in sandbox today.