gold v0.16.3 Gold
Opinionated interface to Bitcoin core JSON-RPC API. Currently in MVP mode: architecture is ready and stable, doesn’t fully implement all of the RPC commands yet.
Link to this section Summary
Functions
Converts a float BTC amount to an Decimal
Call generic RPC command
Mine block immediately. Blocks are mined before RPC call returns
Mine block immediately. Blocks are mined before RPC call returns. Raises an exception on failure
Returns the account associated with the given address
Returns the account associated with the given address, raising an exception on failure
Returns wallet’s total available balance, raising an exception on failure
Returns server’s total available balance, raising an exception on failure
https://bitcoin.org/en/developer-reference#getblock
https://bitcoin.org/en/developer-reference#getblockchaininfo”
https://bitcoin.org/en/developer-reference#getblockchaininfo”
https://bitcoin.org/en/developer-reference#getblockcount
The header hash of a block at the given height in the local best block chain
https://bitcoin.org/en/developer-reference#getinfo”
https://bitcoin.org/en/developer-reference#getinfo”
https://bitcoin.org/en/developer-reference#getmemoryinfo”
https://bitcoin.org/en/developer-reference#getmemoryinfo”
https://bitcoin.org/en/developer-reference#getmempoolinfo”
https://bitcoin.org/en/developer-reference#getmempoolinfo”
https://bitcoin.org/en/developer-reference#getmininginfo”
https://bitcoin.org/en/developer-reference#getmininginfo”
https://bitcoin.org/en/developer-reference#getnetworkinfo”
https://bitcoin.org/en/developer-reference#getnetworkinfo”
Returns a new bitcoin address for receiving payments
Returns a new bitcoin address for receiving payments, raising an exception on failure
https://bitcoin.org/en/developer-reference#getpeerinfo”
https://bitcoin.org/en/developer-reference#getpeerinfo”
https://bitcoin.org/en/developer-reference#getrawtransaction
Get detailed information about in-wallet transaction
Get detailed information about in-wallet transaction, raising an exception on failure
https://bitcoin.org/en/developer-reference#gettxout
https://bitcoin.org/en/developer-reference#gettxoutsetinfo”
https://bitcoin.org/en/developer-reference#gettxoutsetinfo”
https://bitcoin.org/en/developer-reference#getwalletinfo”
https://bitcoin.org/en/developer-reference#getwalletinfo”
Add an address or pubkey script to the wallet without the associated private key
Add an address or pubkey script to the wallet without the associated private key, raising an exception on failure
Returns all transactions affecting the wallet which have occurred since a particular block
Returns all transactions affecting the wallet which have occurred since a particular block
Returns most recent transactions in wallet
Returns most recent transactions in wallet, raising an exception on failure
Send an amount to a given address
Send an amount to a given address, raising an exception on failure
Called when an application is started
Link to this section Functions
Converts a float BTC amount to an Decimal.
Call generic RPC command
Mine block immediately. Blocks are mined before RPC call returns.
Mine block immediately. Blocks are mined before RPC call returns. Raises an exception on failure.
Returns the account associated with the given address.
Returns the account associated with the given address, raising an exception on failure.
Returns wallet’s total available balance, raising an exception on failure.
Returns server’s total available balance, raising an exception on failure.
https://bitcoin.org/en/developer-reference#getblock
https://bitcoin.org/en/developer-reference#getblockchaininfo”
https://bitcoin.org/en/developer-reference#getblockchaininfo”
https://bitcoin.org/en/developer-reference#getblockcount
The header hash of a block at the given height in the local best block chain
https://bitcoin.org/en/developer-reference#getblockhash
https://bitcoin.org/en/developer-reference#getinfo”
https://bitcoin.org/en/developer-reference#getinfo”
https://bitcoin.org/en/developer-reference#getmemoryinfo”
https://bitcoin.org/en/developer-reference#getmemoryinfo”
https://bitcoin.org/en/developer-reference#getmempoolinfo”
https://bitcoin.org/en/developer-reference#getmempoolinfo”
https://bitcoin.org/en/developer-reference#getmininginfo”
https://bitcoin.org/en/developer-reference#getmininginfo”
https://bitcoin.org/en/developer-reference#getnetworkinfo”
https://bitcoin.org/en/developer-reference#getnetworkinfo”
Returns a new bitcoin address for receiving payments.
Returns a new bitcoin address for receiving payments, raising an exception on failure.
https://bitcoin.org/en/developer-reference#getpeerinfo”
https://bitcoin.org/en/developer-reference#getpeerinfo”
https://bitcoin.org/en/developer-reference#getrawtransaction
Get detailed information about in-wallet transaction.
Get detailed information about in-wallet transaction, raising an exception on failure.
https://bitcoin.org/en/developer-reference#gettxout
https://bitcoin.org/en/developer-reference#gettxoutsetinfo”
https://bitcoin.org/en/developer-reference#gettxoutsetinfo”
https://bitcoin.org/en/developer-reference#getwalletinfo”
https://bitcoin.org/en/developer-reference#getwalletinfo”
Add an address or pubkey script to the wallet without the associated private key.
Add an address or pubkey script to the wallet without the associated private key, raising an exception on failure.
Returns all transactions affecting the wallet which have occurred since a particular block
Returns all transactions affecting the wallet which have occurred since a particular block
Returns most recent transactions in wallet.
Returns most recent transactions in wallet, raising an exception on failure.
Send an amount to a given address.
Send an amount to a given address, raising an exception on failure.
Called when an application is started.
This function is called when an application is started using
Application.start/2 (and functions on top of that, such as
Application.ensure_started/2). This function should start the top-level
process of the application (which should be the top supervisor of the
application’s supervision tree if the application follows the OTP design
principles around supervision).
start_type defines how the application is started:
:normal- used if the startup is a normal startup or if the application is distributed and is started on the current node because of a failover from another node and the application specification key:start_phasesis:undefined.{:takeover, node}- used if the application is distributed and is started on the current node because of a failover on the nodenode.{:failover, node}- used if the application is distributed and is started on the current node because of a failover on nodenode, and the application specification key:start_phasesis not:undefined.
start_args are the arguments passed to the application in the :mod
specification key (e.g., mod: {MyApp, [:my_args]}).
This function should either return {:ok, pid} or {:ok, pid, state} if
startup is successful. pid should be the PID of the top supervisor. state
can be an arbitrary term, and if omitted will default to []; if the
application is later stopped, state is passed to the stop/1 callback (see
the documentation for the c:stop/1 callback for more information).
use Application provides no default implementation for the start/2
callback.
Callback implementation for Application.start/2.