Skip to content

What one sweep would cost now

GET
/v1/sweeps/fee
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.

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.

Done.

Media typeapplication/json
object
data
required
object
fee
required
Any of:
string
includes_vault_creation
required

Whether that price includes creating the vault’s Safe, which its first payment or sweep does; later sweeps cost less.

boolean
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
}

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
}