class Blockio::Client
- Blockio::Client
- Reference
- Object
Defined in:
blockio/main.crConstructors
Instance Method Summary
-
#archive_addresses(addresses : Array(String), kind : AddressType = AddressType::Address)
Archives upto 100 addresses in a single API call.
-
#get_address_balance(addresses)
Returns the balance of the specified addresses, or labels.
-
#get_address_by_label(label : String)
Returns the address specified by a label.
-
#get_balance
Returns the balance of your entire Bitcoin, Litecoin, or Dogecoin account (i.e., the sum of balances of all addresses/users within it) as numbers to 8 decimal points, as strings.
-
#get_current_price(base_currency : String = "")
Returns the prices from the largest exchanges for Bitcoin, Dogecoin, or Litecoin, specified by the API Key.
-
#get_my_addresses
Returns the (unarchived) addresses, their labels, user ids, and balances on your account.
-
#get_my_addresses_without_balances
Returns all the (unarchived) addresses, their labels, and user ids on your account.
-
#get_my_archived_addresses
Returns all the archived addresses, their labels, and user ids on your account.
-
#get_network_fee_estimate
Estimates the Network Fee you will need to pay when you make a withdrawal request.
-
#get_new_address(label : String = "")
Returns a newly generated address, and its unique(!) label generated by Block.io.
-
#get_transactions(type_of_tx : String, before_tx : String | Nil = nil, addresses : String | Nil = nil)
Returns various data for the last 25 transactions spent or received.
-
#is_green_transaction(transactions : Array(String))
Returns an array of transactions that were sent by Block.io Green Addresses.
-
#unarchive_addresses(addresses : Array(String), kind : AddressType = AddressType::Address)
Unarchives upto 100 addresses in a single API call.
-
#withdraw(input : Hash(String, BigDecimal), estimate_fee : Bool = false)
Withdraws amount of coins from any addresses in your account to up to 2500 destination addresses.
- #withdraw(address : String, amount : BigDecimal)
-
#withdraw_from_addresses
Withdraws AMOUNT coins from upto 2500 addresses at a time, and deposits it to up to 2500 destination addresses.
-
#withdraw_from_labels
Withdraws AMOUNT coins from upto 2500 labels at a time, and deposits it to upto 2500 destination addresses, or labels.
Constructor Detail
Instance Method Detail
Archives upto 100 addresses in a single API call. Addresses can be specified by their labels.
Returns the balance of the specified addresses, or labels. (Can be used to query balances for external (non-account) addresses. If an external address' balance is returned, its user_id and label fields will be null.)
TODO implement allowance of labels
Returns the balance of your entire Bitcoin, Litecoin, or Dogecoin account (i.e., the sum of balances of all addresses/users within it) as numbers to 8 decimal points, as strings.
Returns the prices from the largest exchanges for Bitcoin, Dogecoin, or Litecoin, specified by the API Key. Specifying the base currency is optional.
Returns the (unarchived) addresses, their labels, user ids, and balances on your account. (Do not use this if you plan on having more than 2,500 addresses on your account. Use get_address_balance instead.)
Returns all the (unarchived) addresses, their labels, and user ids on your account.
Returns all the archived addresses, their labels, and user ids on your account.
Estimates the Network Fee you will need to pay when you make a withdrawal request. The Network Fee is required by the Bitcoin/Dogecoin/etc. networks, not Block.io.
Returns a newly generated address, and its unique(!) label generated by Block.io. You can optionally specify a custom label.
Returns various data for the last 25 transactions spent or received. You can optionally specify a before_tx parameter to get earlier transactions. (You can use this method to query for addresses that are not on your account.) Each result provides a confidence rating that shows the network's belief in the transaction's viability. We recommend waiting for confidence ratings to reach 0.90-0.99 for unconfirmed transactions if you need to validate it. If a double spend is detected for an unconfirmed transaction, its confidence rating falls to 0.0.
Returns an array of transactions that were sent by Block.io Green Addresses. Funds sent from Green Addresses are guaranteed by Block.io, and can be used immediately on receipt with zero network confirmations.
Unarchives upto 100 addresses in a single API call. Addresses can be specified by their labels.
Withdraws amount of coins from any addresses in your account to up to 2500 destination addresses.
Withdraws AMOUNT coins from upto 2500 addresses at a time, and deposits it to up to 2500 destination addresses.
Withdraws AMOUNT coins from upto 2500 labels at a time, and deposits it to upto 2500 destination addresses, or labels.