Webhook Logs
curl --request GET \
--url https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks \
--header 'x-api-key: <api-key>'import requests
url = "https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"attempts": 1,
"createdAt": "2024-07-23T10:56:42.073Z",
"event": "deposit.success",
"id": "d6b0c629-2887-43f2-b812-f61e215c7ce8",
"payload": {
"address": {
"address": "0xd09693EbfDE205cDcDD830160f15BC8FdBf08654",
"configurations": {
"aml": {
"message": "Address is not sanctioned",
"provider": "ofac",
"status": "success"
}
},
"createdAt": "2024-07-23T09:10:50.267Z",
"derivationPath": "m/44'/60'/0'/0/48",
"id": "06823986-5f7d-42c3-9d10-f42cba7d95ea",
"isActive": true,
"metadata": {
"id": "slack3 0x0e01 0x0e01"
},
"name": "slack3 0x0e01",
"network": "testnet",
"type": "INTERNAL",
"updatedAt": "2024-07-23T09:10:50.267Z"
},
"amlScreening": {
"message": "Address is not sanctioned",
"provider": "ofac",
"status": "success"
},
"amount": "0.3",
"amountPaid": "0.3",
"asset": {
"address": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"createdAt": "2024-05-14T11:53:33.682Z",
"decimals": 6,
"id": "fe04a28c-c615-4e41-8eda-f84c862864f5",
"isActive": true,
"name": "USDC Coin",
"network": "testnet",
"standard": "ERC20",
"symbol": "USDC",
"updatedAt": "2024-06-14T22:32:12.589Z"
},
"assetSwept": null,
"assetSweptAmount": null,
"assetSweptAt": null,
"assetSweptGasFee": null,
"assetSweptHash": null,
"assetSweptRecipientAddress": null,
"assetSweptSenderAddress": null,
"blockHash": "0xee3dd3a7109190eb5b9cca683810f54ce29fa18495f6660341c2c3f318ae2260",
"blockNumber": 6361538,
"blockchain": {
"createdAt": "2024-05-14T11:53:33.095Z",
"derivationPath": "m/44'/60'/0'/0",
"id": "85ffc132-3972-4c9e-99a5-5cf0ccb688bf",
"isActive": true,
"isEvmCompatible": true,
"name": "ethereum",
"slug": "ethereum",
"symbol": "eth",
"tokenStandard": "ERC20",
"updatedAt": "2024-06-14T22:32:11.983Z"
},
"confirmations": 1,
"confirmed": true,
"createdAt": "2024-07-23T10:56:40.914Z",
"currency": "USD",
"gasFee": "0.001013543448643627",
"gasPrice": "16305658853",
"gasUsed": "62159",
"hash": "0xccc0b8f2e3fd99779c331fabb3421f12aa67765d2dc876eeda95e9e2456826c3",
"id": "21ecf6a9-4e41-4ec6-8c1a-958cec64bbe3",
"metadata": {
"id": "slack3 0x0e01 0x0e01"
},
"network": "testnet",
"note": null,
"reason": null,
"recipientAddress": "0xd09693EbfDE205cDcDD830160f15BC8FdBf08654",
"reference": "kihJcwTH9",
"senderAddress": "0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22",
"status": "SUCCESS",
"type": "DEPOSIT",
"updatedAt": "2024-07-23T10:56:40.914Z",
"wallet": {
"address": "0x49A204B430F6948847e20846A8d9Bbee5eE04D2A",
"business": {
"createdAt": "2024-05-15T06:01:53.045Z",
"id": "7c323cfb-c1b6-4a3e-b72d-7433870812ac",
"name": "Blockradar Inc",
"sector": "infrastructure",
"status": "ACTIVE",
"updatedAt": "2024-07-10T17:09:47.057Z"
},
"createdAt": "2024-05-15T06:09:24.777Z",
"derivationPath": "m/44'/60'/0'/0/1",
"description": "Yooooo",
"id": "3f9aca5c-38ee-4e1d-ab67-c084a2e37bb2",
"isActive": true,
"name": "updated wallet yeah",
"network": "testnet",
"updatedAt": "2024-06-07T09:45:35.631Z"
}
},
"reference": "21ecf6a9-4e41-4ec6-8c1a-958cec64bbe3",
"response": "Ok",
"status": "success",
"updatedAt": "2024-07-23T10:56:42.073Z",
"url": "https://webhook.site/016fd8b4-6eba-485d-8c83-8a18f0fa58b2"
}
],
"message": "Transaction webhook logs fetched successfully",
"statusCode": 200
}Transactions
Webhook Logs
This endpoint retrieves the webhooks associated with a specific transaction within a wallet
GET
/
v1
/
wallets
/
{walletId}
/
transactions
/
{transactionsId}
/
webhooks
Webhook Logs
curl --request GET \
--url https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks \
--header 'x-api-key: <api-key>'import requests
url = "https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockradar.co/v1/wallets/{walletId}/transactions/{transactionsId}/webhooks")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"attempts": 1,
"createdAt": "2024-07-23T10:56:42.073Z",
"event": "deposit.success",
"id": "d6b0c629-2887-43f2-b812-f61e215c7ce8",
"payload": {
"address": {
"address": "0xd09693EbfDE205cDcDD830160f15BC8FdBf08654",
"configurations": {
"aml": {
"message": "Address is not sanctioned",
"provider": "ofac",
"status": "success"
}
},
"createdAt": "2024-07-23T09:10:50.267Z",
"derivationPath": "m/44'/60'/0'/0/48",
"id": "06823986-5f7d-42c3-9d10-f42cba7d95ea",
"isActive": true,
"metadata": {
"id": "slack3 0x0e01 0x0e01"
},
"name": "slack3 0x0e01",
"network": "testnet",
"type": "INTERNAL",
"updatedAt": "2024-07-23T09:10:50.267Z"
},
"amlScreening": {
"message": "Address is not sanctioned",
"provider": "ofac",
"status": "success"
},
"amount": "0.3",
"amountPaid": "0.3",
"asset": {
"address": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"createdAt": "2024-05-14T11:53:33.682Z",
"decimals": 6,
"id": "fe04a28c-c615-4e41-8eda-f84c862864f5",
"isActive": true,
"name": "USDC Coin",
"network": "testnet",
"standard": "ERC20",
"symbol": "USDC",
"updatedAt": "2024-06-14T22:32:12.589Z"
},
"assetSwept": null,
"assetSweptAmount": null,
"assetSweptAt": null,
"assetSweptGasFee": null,
"assetSweptHash": null,
"assetSweptRecipientAddress": null,
"assetSweptSenderAddress": null,
"blockHash": "0xee3dd3a7109190eb5b9cca683810f54ce29fa18495f6660341c2c3f318ae2260",
"blockNumber": 6361538,
"blockchain": {
"createdAt": "2024-05-14T11:53:33.095Z",
"derivationPath": "m/44'/60'/0'/0",
"id": "85ffc132-3972-4c9e-99a5-5cf0ccb688bf",
"isActive": true,
"isEvmCompatible": true,
"name": "ethereum",
"slug": "ethereum",
"symbol": "eth",
"tokenStandard": "ERC20",
"updatedAt": "2024-06-14T22:32:11.983Z"
},
"confirmations": 1,
"confirmed": true,
"createdAt": "2024-07-23T10:56:40.914Z",
"currency": "USD",
"gasFee": "0.001013543448643627",
"gasPrice": "16305658853",
"gasUsed": "62159",
"hash": "0xccc0b8f2e3fd99779c331fabb3421f12aa67765d2dc876eeda95e9e2456826c3",
"id": "21ecf6a9-4e41-4ec6-8c1a-958cec64bbe3",
"metadata": {
"id": "slack3 0x0e01 0x0e01"
},
"network": "testnet",
"note": null,
"reason": null,
"recipientAddress": "0xd09693EbfDE205cDcDD830160f15BC8FdBf08654",
"reference": "kihJcwTH9",
"senderAddress": "0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22",
"status": "SUCCESS",
"type": "DEPOSIT",
"updatedAt": "2024-07-23T10:56:40.914Z",
"wallet": {
"address": "0x49A204B430F6948847e20846A8d9Bbee5eE04D2A",
"business": {
"createdAt": "2024-05-15T06:01:53.045Z",
"id": "7c323cfb-c1b6-4a3e-b72d-7433870812ac",
"name": "Blockradar Inc",
"sector": "infrastructure",
"status": "ACTIVE",
"updatedAt": "2024-07-10T17:09:47.057Z"
},
"createdAt": "2024-05-15T06:09:24.777Z",
"derivationPath": "m/44'/60'/0'/0/1",
"description": "Yooooo",
"id": "3f9aca5c-38ee-4e1d-ab67-c084a2e37bb2",
"isActive": true,
"name": "updated wallet yeah",
"network": "testnet",
"updatedAt": "2024-06-07T09:45:35.631Z"
}
},
"reference": "21ecf6a9-4e41-4ec6-8c1a-958cec64bbe3",
"response": "Ok",
"status": "success",
"updatedAt": "2024-07-23T10:56:42.073Z",
"url": "https://webhook.site/016fd8b4-6eba-485d-8c83-8a18f0fa58b2"
}
],
"message": "Transaction webhook logs fetched successfully",
"statusCode": 200
}Autorisations
Paramètres de chemin
Exemple:
"YOUR_WALLET_ID"
Exemple:
"TRANSACTION_ID"
Réponse
200 - application/json
200
Show child attributes
Show child attributes
Exemple:
[ { "attempts": 1, "createdAt": "2024-07-23T10:56:42.073Z", "event": "deposit.success", "id": "d6b0c629-2887-43f2-b812-f61e215c7ce8", "payload": { "address": { "address": "0xd09693EbfDE205cDcDD830160f15BC8FdBf08654", "configurations": { "aml": { "message": "Address is not sanctioned", "provider": "ofac", "status": "success" } }, "createdAt": "2024-07-23T09:10:50.267Z", "derivationPath": "m/44'/60'/0'/0/48", "id": "06823986-5f7d-42c3-9d10-f42cba7d95ea", "isActive": true, "metadata": { "id": "slack3 0x0e01 0x0e01" }, "name": "slack3 0x0e01", "network": "testnet", "type": "INTERNAL", "updatedAt": "2024-07-23T09:10:50.267Z" }, "amlScreening": { "message": "Address is not sanctioned", "provider": "ofac", "status": "success" }, "amount": "0.3", "amountPaid": "0.3", "asset": { "address": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238", "createdAt": "2024-05-14T11:53:33.682Z", "decimals": 6, "id": "fe04a28c-c615-4e41-8eda-f84c862864f5", "isActive": true, "name": "USDC Coin", "network": "testnet", "standard": "ERC20", "symbol": "USDC", "updatedAt": "2024-06-14T22:32:12.589Z" }, "assetSwept": null, "assetSweptAmount": null, "assetSweptAt": null, "assetSweptGasFee": null, "assetSweptHash": null, "assetSweptRecipientAddress": null, "assetSweptSenderAddress": null, "blockHash": "0xee3dd3a7109190eb5b9cca683810f54ce29fa18495f6660341c2c3f318ae2260", "blockNumber": 6361538, "blockchain": { "createdAt": "2024-05-14T11:53:33.095Z", "derivationPath": "m/44'/60'/0'/0", "id": "85ffc132-3972-4c9e-99a5-5cf0ccb688bf", "isActive": true, "isEvmCompatible": true, "name": "ethereum", "slug": "ethereum", "symbol": "eth", "tokenStandard": "ERC20", "updatedAt": "2024-06-14T22:32:11.983Z" }, "confirmations": 1, "confirmed": true, "createdAt": "2024-07-23T10:56:40.914Z", "currency": "USD", "gasFee": "0.001013543448643627", "gasPrice": "16305658853", "gasUsed": "62159", "hash": "0xccc0b8f2e3fd99779c331fabb3421f12aa67765d2dc876eeda95e9e2456826c3", "id": "21ecf6a9-4e41-4ec6-8c1a-958cec64bbe3", "metadata": { "id": "slack3 0x0e01 0x0e01" }, "network": "testnet", "note": null, "reason": null, "recipientAddress": "0xd09693EbfDE205cDcDD830160f15BC8FdBf08654", "reference": "kihJcwTH9", "senderAddress": "0x2455eC6700092991Ce0782365A89d5Cd89c8Fa22", "status": "SUCCESS", "type": "DEPOSIT", "updatedAt": "2024-07-23T10:56:40.914Z", "wallet": { "address": "0x49A204B430F6948847e20846A8d9Bbee5eE04D2A", "business": { "createdAt": "2024-05-15T06:01:53.045Z", "id": "7c323cfb-c1b6-4a3e-b72d-7433870812ac", "name": "Blockradar Inc", "sector": "infrastructure", "status": "ACTIVE", "updatedAt": "2024-07-10T17:09:47.057Z" }, "createdAt": "2024-05-15T06:09:24.777Z", "derivationPath": "m/44'/60'/0'/0/1", "description": "Yooooo", "id": "3f9aca5c-38ee-4e1d-ab67-c084a2e37bb2", "isActive": true, "name": "updated wallet yeah", "network": "testnet", "updatedAt": "2024-06-07T09:45:35.631Z" } }, "reference": "21ecf6a9-4e41-4ec6-8c1a-958cec64bbe3", "response": "Ok", "status": "success", "updatedAt": "2024-07-23T10:56:42.073Z", "url": "https://webhook.site/016fd8b4-6eba-485d-8c83-8a18f0fa58b2" } ]
Exemple:
"Transaction webhook logs fetched successfully"
Exemple:
200
⌘I

