Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Receive status updates via webhooks
webhookUrl
const result = await bridge.transfer({ from: 'BASE', to: 'SOLANA', amount: '100.00', recipient: '5abc123...', permit: signedPermit, webhookUrl: 'https://your-server.com/webhook/sw4p' })
{ "intent_id": "int_abc123", "status": "complete", "source_chain": "BASE", "destination_chain": "SOLANA", "source_tx": "0x...", "destination_tx": "5a...", "amount": "100.00", "timestamp": "2024-01-01T00:01:05Z" }
detected
minted
complete
failed
X-Sw4p-Signature
import crypto from 'crypto' function verifyWebhook(payload: string, signature: string, secret: string) { const expected = crypto .createHmac('sha256', secret) .update(payload) .digest('hex') return signature === expected }