class Remitano::Client::CoinWithdrawals
Public Instance Methods
cancel(id)
click to toggle source
# File lib/remitano/client/coin_withdrawals.rb, line 9 def cancel(id) config.net.post("/coin_withdrawals/#{id}/cancel").execute end
my_withdrawals()
click to toggle source
# File lib/remitano/client/coin_withdrawals.rb, line 5 def my_withdrawals config.net.get("/coin_withdrawals?coin_currency=#{coin}").execute end
withdraw(coin_address:, coin_amount:, destination_tag: nil)
click to toggle source
# File lib/remitano/client/coin_withdrawals.rb, line 13 def withdraw(coin_address:, coin_amount:, destination_tag: nil) params = { coin_address: coin_address, coin_currency: coin, coin_amount: coin_amount, destination_tag: destination_tag, } response = config.net.post("/coin_withdrawals", coin_withdrawal: params).execute config.action_confirmations.confirm_if_neccessary!(response) end