-
-
Save greenbigfrog/62f3de6ab0b9cda161c2a2dad2851b02 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require "bitcoin_rpc" | |
class CoinApi | |
def initialize(@config, @log : Logger) | |
@log.debug("Initializing Coin Interaction API for #{@coin} with type #{@type}") | |
if @type == "rpc" | |
# For RPC communication we are using https://github.com/citizen428/bitcoin_rpc | |
@rpc = BitcoinRpc.new(@config.rpc_url, @config.rpc_username, @config.rpc_password) | |
elsif @type == "blockio" | |
@blockio = Blockio::Client.new(@config.blockio_api_key) | |
end | |
end | |
def withdraw | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment