cURL
curl --request POST \ --url https://api.portalhq.io/api/v3/custodians/me/alerts/wallets/format \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "chain": "eip155", "rawAlert": "{\"...\"}" } '
{ "chainName": "sepolia", "chainId": "eip155:11155111", "from": "0xf428e1f82f18de15ef2861a4bdde42e755998ece", "to": "0xdfd8302f44727a6348f702ff7b594f127de3a902", "amount": "0.001", "tokenSymbol": "USDC", "assetType": "NON_NATIVE_TOKEN", "direction": "OUTBOUND", "metadata": { "confirmed": true, "rawAmount": "1000", "tokenDecimals": "6", "tokenAddress": "0x1c7d4b196cb0c7b01d743fbc6116a902379c7238", "tokenName": "USDC", "sentAt": "2024-09-06T20:30:24.000Z", "transactionHash": "0x229c1cc8ed898fae917e0ed90af94c624015e53a790eda1a7d30b1ca2ffd916c", "blockNumber": "6645168" } }
Deprecated. Use the alert webhooks endpoints instead.
Formats a raw webhook request body for a single wallet event.
Portal API Key (Custodian API Key). Pass as a Bearer token in the Authorization header.
The chain the raw webhook event is from (e.g. "eip155").
The stringified raw webhook event.
Alert formatted successfully
Show child attributes
Was this page helpful?