Class: BitcointradeSDK::Bitcoin::Withdraw
Constant Summary
BitcointradeSDK::Base::BASE_URL
Instance Method Summary
collapse
#send_request
Instance Method Details
#create!(destination:, amount:, fee:, fee_type:) ⇒ Object
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/bitcointrade_sdk/bitcoin/withdraw.rb', line 14
def create!(destination:, amount:, fee:, fee_type:)
params = {
'destination' => destination,
'amount' => amount,
'fee'=> fee,
'fee_type' => fee_type
}
send_request(:post, '/bitcoin/withdraw', params)['data']
end
|
#fee ⇒ Object
6
7
8
|
# File 'lib/bitcointrade_sdk/bitcoin/withdraw.rb', line 6
def fee
send_request(:get, '/bitcoin/withdraw/fee')['data']
end
|
#list ⇒ Object
10
11
12
|
# File 'lib/bitcointrade_sdk/bitcoin/withdraw.rb', line 10
def list
send_request(:get, '/bitcoin/withdraw/list')['data']
end
|