src.rpc_client¶
The RPC functionality used by the wallet to talk to the miner application.
Classes
Iterator |
|
List |
|
RPCClient (miner_port) |
The RPC methods used by the wallet to talk to the miner application. |
Signing (byte_repr) |
Functionality for creating and verifying signatures, and their public/private keys. |
Transaction (inputs, targets[, signatures, iv]) |
A transaction as it was received from the network or a block. |
TransactionInput |
One transaction input (pointer to ‘coin’). |
TransactionTarget (recipient_pk, amount) |
The recipient of a transaction (‘coin’). |
Tuple |
Tuple type; Tuple[X, Y] is the cross-product type of X and Y. |
-
class
src.rpc_client.
RPCClient
(miner_port)¶ The RPC methods used by the wallet to talk to the miner application.
-
build_transaction
(source_keys, targets, change_key, transaction_fee)¶ Builds a transaction sending money from source_keys to targets, sending any change to the key change_key and a transaction fee transaction_fee to the miner.
Return type: Transaction
-
get_transactions
(pubkey)¶ Returns all transactions involving a certain public key.
Return type: List
-
network_info
()¶ Returns the peers connected to the miner.
Return type: List
-
send_transaction
(transaction)¶ Sends a transaction to the miner.
-
show_balance
(pubkeys)¶ Returns the balance of a number of public keys.
Return type: Iterator
-