gold v0.16.0 Gold

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#getblockcount

https://bitcoin.org/en/developer-reference#getblockhash

https://bitcoin.org/en/developer-reference#getinfo”

https://bitcoin.org/en/developer-reference#getmemoryinfo”

https://bitcoin.org/en/developer-reference#getmempoolinfo”

https://bitcoin.org/en/developer-reference#getmininginfo”

https://bitcoin.org/en/developer-reference#getnetworkinfo”

Returns a new bitcoin address for receiving payments

Returns a new bitcoin address for receiving payments

Returns a new bitcoin address for receiving payments, raising an exception on failure

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#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#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

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

Add an address or pubkey script to the wallet without the associated private key, raising an exception on failure

Add an address or pubkey script to the wallet without the associated private key, raising an exception on failure

Returns most recent transactions in wallet

Returns most recent transactions in wallet

Returns most recent transactions in wallet

Returns most recent transactions in wallet

Returns most recent transactions in wallet, raising an exception on failure

Returns most recent transactions in wallet, raising an exception on failure

Returns most recent transactions in wallet, raising an exception on failure

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

Callback implementation for Application.start/2

Functions

btc_to_decimal(btc)

Converts a float BTC amount to an Decimal.

call(name, method)

Call generic RPC command

generate(name, amount)

Mine block immediately. Blocks are mined before RPC call returns.

generate!(name, amount)

Mine block immediately. Blocks are mined before RPC call returns. Raises an exception on failure.

getaccount(name, address)

Returns the account associated with the given address.

getaccount!(name, address)

Returns the account associated with the given address, raising an exception on failure.

getbalance(name)

Returns wallet’s total available balance, raising an exception on failure.

getbalance(name, account)
getbalance!(name, account \\ nil)

Returns server’s total available balance, raising an exception on failure.

getblock(name, hash)

https://bitcoin.org/en/developer-reference#getblock

getblock!(name, hash)
getblockchaininfo(name)

https://bitcoin.org/en/developer-reference#getblockchaininfo”

getblockchaininfo!(name)
getblockcount(name)

https://bitcoin.org/en/developer-reference#getblockcount

getblockcount!(name)
getblockhash(name, index)

https://bitcoin.org/en/developer-reference#getblockhash

getblockhash!(name, index)
getinfo(name)

https://bitcoin.org/en/developer-reference#getinfo”

getinfo!(name)
getmemoryinfo(name)

https://bitcoin.org/en/developer-reference#getmemoryinfo”

getmemoryinfo!(name)
getmempoolinfo(name)

https://bitcoin.org/en/developer-reference#getmempoolinfo”

getmempoolinfo!(name)
getmininginfo(name)

https://bitcoin.org/en/developer-reference#getmininginfo”

getmininginfo!(name)
getnetworkinfo(name)

https://bitcoin.org/en/developer-reference#getnetworkinfo”

getnetworkinfo!(name)
getnewaddress(name)

Returns a new bitcoin address for receiving payments.

getnewaddress(name, account)

Returns a new bitcoin address for receiving payments.

getnewaddress!(name)

Returns a new bitcoin address for receiving payments, raising an exception on failure.

getnewaddress!(name, account)

Returns a new bitcoin address for receiving payments, raising an exception on failure.

getpeerinfo(name)

https://bitcoin.org/en/developer-reference#getpeerinfo”

getpeerinfo!(name)
getrawtransaction!(name, txid, verbose \\ 1)
getrawtrasaction(name, txid, verbose \\ 1)

https://bitcoin.org/en/developer-reference#getrawtransaction

gettransaction(name, txid)

Get detailed information about in-wallet transaction.

gettransaction!(name, txid)

Get detailed information about in-wallet transaction, raising an exception on failure.

gettxout(name, txid, n \\ 1)

https://bitcoin.org/en/developer-reference#gettxout

gettxout!(name, txid, n \\ 1)
gettxoutsetinfo(name)

https://bitcoin.org/en/developer-reference#gettxoutsetinfo”

gettxoutsetinfo!(name)
getwalletinfo(name)

https://bitcoin.org/en/developer-reference#getwalletinfo”

getwalletinfo!(name)
handle_call(request, from, config)
importaddress(name, address)

Add an address or pubkey script to the wallet without the associated private key.

importaddress(name, address, account)

Add an address or pubkey script to the wallet without the associated private key.

importaddress(name, address, account, rescan)

Add an address or pubkey script to the wallet without the associated private key.

importaddress!(name, address)

Add an address or pubkey script to the wallet without the associated private key, raising an exception on failure.

importaddress!(name, address, account)

Add an address or pubkey script to the wallet without the associated private key, raising an exception on failure.

importaddress!(name, address, account, rescan)

Add an address or pubkey script to the wallet without the associated private key, raising an exception on failure.

listtransactions(name)

Returns most recent transactions in wallet.

listtransactions(name, account)

Returns most recent transactions in wallet.

listtransactions(name, account, limit)

Returns most recent transactions in wallet.

listtransactions(name, account, limit, offset)

Returns most recent transactions in wallet.

listtransactions!(name)

Returns most recent transactions in wallet, raising an exception on failure.

listtransactions!(name, account)

Returns most recent transactions in wallet, raising an exception on failure.

listtransactions!(name, account, limit)

Returns most recent transactions in wallet, raising an exception on failure.

listtransactions!(name, account, limit, offset)

Returns most recent transactions in wallet, raising an exception on failure.

sendtoaddress(name, address, amount)

Send an amount to a given address.

sendtoaddress!(name, address, amount)

Send an amount to a given address, raising an exception on failure.

start(type, args)

Callback implementation for Application.start/2.