What is known about an address before you pay it
const url = 'https://api.sotirea.com/v1/addresses/example?network=example';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.sotirea.com/v1/addresses/example?network=example' \ --header 'Authorization: Bearer <token>'Reads what your payment rules will read about an address on one network, without sending anything: whether it is a valid address, whether your organisation has paid it before, whether it is approved and from when it may be paid, whether it looks like an address you have paid or approved without being it, and whether it is a contract. Show it to the person about to pay.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The address, as it was given to you.
Query Parameters
Section titled “Query Parameters”The network, by its CAIP-2 id, like eip155:1.
Responses
Section titled “Responses”Done.
object
object
The address, in lower case when it is valid.
Whether it is on your organisation’s approved list.
Whether the address is a contract on this network.
Whether a sanctions list or Sotirea’s blocked list names it: a payment to it is refused.
Whether your organisation has completed a payment to it on this network.
Why it is not valid, in words; absent when it is.
Whether it is an address: 0x and 40 hexadecimal characters, with a correct EIP-55 checksum when its letters are mixed in case.
object
Quote it when asking about a request; it is in the X-Request-Id header too.
Example
{ "success": true}default
Section titled “default”Refused or failed, in words a person can act on.
object
object
object
object
Quote it when asking about a request.
Example
{ "success": false}