Add an address to the approved list
POST
/v1/approved-addresses
const url = 'https://api.sotirea.com/v1/approved-addresses';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"address":"example","chain_id":"example","label":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.sotirea.com/v1/approved-addresses \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "address": "example", "chain_id": "example", "label": "example" }'As in the console: a newly approved address may be paid only after the wait your rules set, and the people who manage your rules are emailed. Answers the whole list.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
address
required
string
chain_id
The network, or empty for every network.
string
label
Who or what it is, as people will read it.
string
Example generated
{ "address": "example", "chain_id": "example", "label": "example"}Responses
Section titled “Responses”Done.
Media typeapplication/json
object
data
required
meta
object
request_id
Quote it when asking about a request; it is in the X-Request-Id header too.
string
success
required
Example
{ "success": true}default
Section titled “default”Refused or failed, in words a person can act on.
Media typeapplication/json
object
error
required
object
code
required
string
fields
object
key
additional properties
string
message
required
string
meta
object
request_id
Quote it when asking about a request.
string
success
required
Example
{ "success": false}