Patch wallets within subscription
curl --request PATCH \
--url https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/wallets \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"add": [
"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"
],
"remove": [
"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"
]
}
'import requests
url = "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/wallets"
payload = {
"add": ["0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"],
"remove": ["0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
add: ['0x42b9df65b219b3dd36ff330a4dd8f327a6ada990'],
remove: ['0x42b9df65b219b3dd36ff330a4dd8f327a6ada990']
})
};
fetch('https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/wallets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/wallets"
payload := strings.NewReader("{\n \"add\": [\n \"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990\"\n ],\n \"remove\": [\n \"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"errors": [
{
"title": "Parameter is malformed",
"detail": "Some validation errors will be described here"
}
]
}{
"errors": [
{
"title": "Unauthorized Error",
"detail": "The API key is invalid, please, make sure that you are using a valid key"
}
]
}{
"errors": [
{
"title": "Too many requests",
"detail": "Your request had been throttled"
}
]
}subscriptions to transactions
Patch wallets within subscription
This endpoint works by subscription ID. It patches wallets list within specific subscription.
NOTE: Consider all IDs as abstract strings, without making any assumptions about their format or relying on such assumptions. There is a non-zero probability that IDs may change in the future, and this should not result in any breaking changes.
PATCH
/
v1
/
tx-subscriptions
/
{subscription_id}
/
wallets
Patch wallets within subscription
curl --request PATCH \
--url https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/wallets \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"add": [
"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"
],
"remove": [
"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"
]
}
'import requests
url = "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/wallets"
payload = {
"add": ["0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"],
"remove": ["0x42b9df65b219b3dd36ff330a4dd8f327a6ada990"]
}
headers = {
"Authorization": "Basic <encoded-value>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Basic <encoded-value>', 'Content-Type': 'application/json'},
body: JSON.stringify({
add: ['0x42b9df65b219b3dd36ff330a4dd8f327a6ada990'],
remove: ['0x42b9df65b219b3dd36ff330a4dd8f327a6ada990']
})
};
fetch('https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/wallets', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.zerion.io/v1/tx-subscriptions/{subscription_id}/wallets"
payload := strings.NewReader("{\n \"add\": [\n \"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990\"\n ],\n \"remove\": [\n \"0x42b9df65b219b3dd36ff330a4dd8f327a6ada990\"\n ]\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Basic <encoded-value>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"errors": [
{
"title": "Parameter is malformed",
"detail": "Some validation errors will be described here"
}
]
}{
"errors": [
{
"title": "Unauthorized Error",
"detail": "The API key is invalid, please, make sure that you are using a valid key"
}
]
}{
"errors": [
{
"title": "Too many requests",
"detail": "Your request had been throttled"
}
]
}Authorizations
Path Parameters
ID of the subscription
Example:
"77e77447-1586-40e8-a75b-467ef939a0b1"
Body
application/json
Response
Successful callback processing
Was this page helpful?