Transfer Webhooks
How It Works
Webhook Response Format
{
id: string; // The ticket ID for this transaction
tx_id: string; // The blockchain transaction ID
tx_hex: string; // The raw transaction hex
action_requested: 'transfer'; // Always 'transfer' for MNEE transactions
callback_url: string; // Your webhook URL (for verification)
status: 'BROADCASTING' | 'SUCCESS' | 'MINED' | 'FAILED';
createdAt: string; // ISO timestamp when ticket was created
updatedAt: string; // ISO timestamp of this update
errors: string | null; // Error details if status is FAILED
}Status Flow
Usage Examples
Basic Transfer With Webhook
Submit Raw Transaction With Webhook
Implementing a Webhook Endpoint
Express.js Example
Best Practices
1. Always Return 200 OK
2. Implement Idempotency
3. Handle Timeouts Gracefully
4. Secure Your Endpoint
5. Queue For Processing
Testing Webhooks
Local Development with ngrok
Test Webhook Server
Error Handling
Webhook Delivery Failures
Handling Failed Transactions
Important Notes
See Also
Last updated