Validate Destination Address
curl --request POST \
--url https://api.anchorage-staging.com/v3/addresses/validate-destination \
--header 'Api-Access-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>",
"networkId": "<string>",
"memo": "<string>"
}
'import requests
url = "https://api.anchorage-staging.com/v3/addresses/validate-destination"
payload = {
"address": "<string>",
"networkId": "<string>",
"memo": "<string>"
}
headers = {
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Api-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>', networkId: '<string>', memo: '<string>'})
};
fetch('https://api.anchorage-staging.com/v3/addresses/validate-destination', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Validate Destination Address
Permissions required: None
Validate that a given address for a given networkId is valid as a transfer destination. Returns 200 if the address is valid, or an invalid request error if it is not.
POST
/
addresses
/
validate-destination
Validate Destination Address
curl --request POST \
--url https://api.anchorage-staging.com/v3/addresses/validate-destination \
--header 'Api-Access-Key: <api-key>' \
--header 'Content-Type: application/json' \
--data '
{
"address": "<string>",
"networkId": "<string>",
"memo": "<string>"
}
'import requests
url = "https://api.anchorage-staging.com/v3/addresses/validate-destination"
payload = {
"address": "<string>",
"networkId": "<string>",
"memo": "<string>"
}
headers = {
"Api-Access-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Api-Access-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '<string>', networkId: '<string>', memo: '<string>'})
};
fetch('https://api.anchorage-staging.com/v3/addresses/validate-destination', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}{
"message": "Missing required field 'amount'."
}Authorizations
An API key associated with a security role
Body
application/json
Destination address validation request
Request to validate an address as a transfer destination
A unique string identifying an account on a blockchain. This is sometimes dervied from a public key and sometimes decided by the blockchain.
A unique string identifying a combination of blockchain and environment (testnet, mainnet).
Optional memo/tag/destination tag (required by some blockchain networks)
Maximum string length:
256Response
Address is valid as a transfer destination
Was this page helpful?