Withdrawals

Create Withdrawal Fee

This endpoint allows the creation of a withdrawal fee. Withdrawal fees are "held fees" offered by Ripio to withdraw assets at a specific fee within a period of time - for example, the option to transfer out 0.25 ETH within the next 15 seconds for 0.001 ETH.

post/api/v1/withdrawal-fees

Request

  • Base URL: https://sandbox-b2b.ripio.com
  • URL: https://sandbox-b2b.ripio.com/api/v1/withdrawal-fees
  • Auth: OAuth 2 (client credentials, token URL https://sandbox-b2b.ripio.com/oauth2/token/)

Request body

currencystring

Currency to estimate the fee for. It needs to be the same currency as the once use later for the withdrawal. The fee in the reponse will be expressed in this currency.

networkstring

The blockchain network in which the withdrawal fee needs to be estimated. The later withdrawal must be performed in the same network.

amountnumber

Amount to be withdrawaled. It''s the amount that wants to be transfered, the fee depends on this amount.

external_refstring

An external identifier, usually a unique UUID

Response

Created

idstring uuid

UUID used as withdrawal identifier.

expires_atstring date-time

ISO DateTime indicating expiration date of the withdrawal fee. Fee will be invalid after that date.

amountnumber

It is the requested amount to withdrawal.

gas_pricenumber

Indicates de basic cost on a withdrawal fee, the network gas price. It is expressed in the requested currency.

feenumber

Indicates the basic fee that it is charged on the amount to be withdrawaled. It is expressed in the requested currency.

total_feenumber

Indicates the total fee that will be charged in order to perform a withdrawal. Tipically, equivalent to gas_price + fee. It is expressed in the requested currency.

total_amountnumber

Indicates the total amount needed to perform a withdrawal for the requested amount. It is the amount that will be decreased on the user balance. Tipically, amount + total_fee. It is expressed in the requested currency.

Changes

No recorded changes to this operation across all 1 revision of this API.