Withdraw money
process withdraw request to orderbook and return its hash
Parameters:
maker
:Type: String
Description: Address of the user initiating the withdrawal.
token
:Type: String
Description: The address of the token to be withdrawn.
amount
:Type: Integer
Description: The quantity of tokens to withdraw.
Constraints: Must be a non-negative integer.
salt
:Type: Integer
Description: A random value used to ensure the uniqueness of the withdrawal request.
Constraints: Must be a non-negative integer.
receiver
:Type: String
Description: Address of the receiver of the withdrawn tokens.
sign
:Type: List
Description: Signature data required to authorize the withdrawal.
Constraints: Must be a list containing exactly 2 integer items, each of which should be non-negative.
gas_fee
:Type: Dictionary
Description: Information about the gas fee associated with the withdrawal.
Fields:
gas_per_action
: Integer, minimum 0, representing the gas cost per action.fee_token
: String, indicating the token used for the fee.max_gas_price
: Integer, minimum 0, the maximum price per gas unit.conversion_rate
: List of integers, with minimum size 2 and maximum size 2, each element being non-negative, representing the conversion rate.
Response example:
In case of a successful place, the order hash is returned
Success operation means the request successfully passed the validation phase and is now in the request processing queue.
Last updated