cURL
curl --request POST \
--url https://api.relay.link/transactions/index \
--header 'Content-Type: application/json' \
--data '
{
"chainId": "<string>",
"txHash": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({chainId: '<string>', txHash: '<string>'})
};
fetch('https://api.relay.link/transactions/index', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/transactions/index"
payload = {
"chainId": "<string>",
"txHash": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}API Reference
Transactions Index
Notify the backend in order to fetch the traces and detect any internal deposits
POST
/
transactions
/
index
cURL
curl --request POST \
--url https://api.relay.link/transactions/index \
--header 'Content-Type: application/json' \
--data '
{
"chainId": "<string>",
"txHash": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({chainId: '<string>', txHash: '<string>'})
};
fetch('https://api.relay.link/transactions/index', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.relay.link/transactions/index"
payload = {
"chainId": "<string>",
"txHash": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"message": "<string>"
}{
"message": "<string>"
}{
"message": "<string>"
}Was this page helpful?