Implementation Guides
Step-by-step guides for common use cases and integrations.
Exchange Integration
Connect Verex with cryptocurrency exchanges to automate trading and portfolio management.
Setup Steps:
- 1. Create API keys on your exchange (Binance, Coinbase, etc.)
- 2. Store exchange credentials securely in a Verex vault
- 3. Create webhook endpoints to receive order notifications
- 4. Configure security policies for trade limits and approvals
Example: Automated withdrawal after successful trade
curl -X POST https://api.verexbase.com/api/v1/transactions/transactions/transfer_native/ \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"vault_id": "your-vault-id",
"to_address": "0xRecipientAddress",
"amount": "10.5",
"idempotency_key": "trade-withdrawal-12345"
}'Payment Processor Integration
Integrate Verex as your cryptocurrency payment processing layer.
Integration Flow:
- 1. Customer requests crypto payment
- 2. Generate unique wallet address from Verex vault
- 3. Create payment record with webhook subscription
- 4. Monitor deposits to that address
- 5. Trigger fulfillment on confirmed deposit
Example: Generate payment address
curl -X POST https://api.verexbase.com/api/v1/vaults/accounts/ \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"vault_id": "your-vault-id",
"chain_id": 1,
"name": "Payment for Order #12345"
}'Your webhook endpoint will receive deposit notifications:
// Webhook payload when deposit is confirmed
{
"event": "deposit.confirmed",
"timestamp": "2026-01-09T10:30:00Z",
"data": {
"id": "dep_789",
"account_id": "account_456",
"amount": "0.5",
"asset_symbol": "ETH",
"tx_hash": "0x...",
"confirmations": 12
}
}Treasury Management
Manage your organization's cryptocurrency treasury with Verex.
Best Practices:
- • Use separate vaults for hot wallet (immediate liquidity) and cold storage (security)
- • Set transaction limits and approval thresholds based on amount
- • Enable 2-factor authentication on all admin operations
- • Use webhooks to monitor all transactions in real-time
- • Periodically sweep to cold storage vaults
Example: Set up transaction approval policy
curl -X POST https://api.verexbase.com/api/v1/policies/ \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Large Transaction Approval",
"policy_type": "transaction_limit",
"rules": {
"max_amount": "10.0",
"requires_approval": true,
"approvers_required": 2
}
}'Webhook Setup
Subscribe to real-time events for transactions, deposits, and security events.
Available Events:
- •
transaction.created- Transaction initiated - •
transaction.confirmed- Blockchain confirmation - •
deposit.received- Funds deposited - •
deposit.confirmed- Deposit confirmed - •
security.alert- Suspicious activity
Create a webhook endpoint:
curl -X POST https://api.verexbase.com/api/v1/webhooks/ \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://yourapp.com/webhooks/verex",
"events": [
"transaction.completed",
"deposit.confirmed"
],
"secret": "your-webhook-secret"
}'Your webhook endpoint will receive events:
// Webhook event payload
POST https://yourapp.com/webhooks/verex HTTP/1.1
Content-Type: application/json
X-Verex-Signature: sha256=...
{
"id": "webhook_event_123",
"event": "transaction.completed",
"timestamp": "2026-01-09T10:30:00Z",
"data": {
"transaction_id": "tx_456",
"status": "completed",
"tx_hash": "0x...",
"confirmations": 12
}
}