What one sweep would cost now
GET
/v1/sweeps/fee
const url = 'https://api.sotirea.com/v1/sweeps/fee?network=example&destination_vault_id=1';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/sweeps/fee?network=example&destination_vault_id=1' \ --header 'Authorization: Bearer <token>'Priced as a sweep would be sent, on the first vault the sweep would take from, so a fee ceiling can be set beside it. Nothing is recorded.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”network
required
string
The network, like eip155:1.
asset
string
Native, the default, or a token’s contract.
destination_vault_id
required
integer
The vault sweeps go into.
source_vault_ids
string
The vaults to sweep, by id, separated by commas; leave it out for every vault opened with a reference.
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}