[−][src]Struct komodo_rpc_client::Client
Implementations
impl Client
[src]
pub fn new_komodo_client() -> Result<Client, ApiError>
[src]
Constructs a new Client
that talks to the Komodo main chain. It assumes Komodo has
been installed and run at least once, since it fetches the needed RPC authentication parameters
from the config file which is created upon initialisation.
pub fn new_assetchain_client(ac: &Chain) -> Result<Self, ApiError>
[src]
Constructs a new Client
that talks to the specified assetchain. It assumes Komodo has
been installed and the assetchain has been started at least once, in order to be able to fetch
the needed RPC authentication parameters from the assetchain config file.
If Custom(String)
is used as parameter, this function will throw a std::io::Error::NotFound if
the defined config folder does not exist.
Trait Implementations
impl Debug for Client
[src]
impl KomodoRpcApi for Client
[src]
fn get_address_balance(
&self,
addresses: &AddressList
) -> Result<AddressBalance, ApiError>
[src]
&self,
addresses: &AddressList
) -> Result<AddressBalance, ApiError>
fn get_address_deltas(
&self,
addresses: &AddressList
) -> Result<AddressDeltas, ApiError>
[src]
&self,
addresses: &AddressList
) -> Result<AddressDeltas, ApiError>
fn get_address_mempool(
&self,
addresses: &AddressList
) -> Result<AddressMempool, ApiError>
[src]
&self,
addresses: &AddressList
) -> Result<AddressMempool, ApiError>
fn get_address_tx_ids(
&self,
addresses: &AddressList
) -> Result<AddressTxIDs, ApiError>
[src]
&self,
addresses: &AddressList
) -> Result<AddressTxIDs, ApiError>
fn get_address_utxos(
&self,
addresses: &AddressList
) -> Result<AddressUtxos, ApiError>
[src]
&self,
addresses: &AddressList
) -> Result<AddressUtxos, ApiError>
fn get_snapshot_max(&self, n: u32) -> Result<Snapshot, ApiError>
[src]
fn get_snapshot(&self) -> Result<Snapshot, ApiError>
[src]
fn coinsupply(&self, n: u32) -> Result<Coinsupply, ApiError>
[src]
fn get_best_block_hash(&self) -> Result<BlockHash, ApiError>
[src]
fn get_block(&self, hashorheight: String) -> Result<Block, ApiError>
[src]
fn get_blockchain_info(&self) -> Result<BlockchainInfo, ApiError>
[src]
fn get_block_count(&self) -> Result<Blockcount, ApiError>
[src]
fn get_block_hash(&self, n: u32) -> Result<BlockHash, ApiError>
[src]
fn get_block_header(&self, hash: String) -> Result<BlockHeader, ApiError>
[src]
fn get_chaintips(&self) -> Result<ChainTips, ApiError>
[src]
fn get_difficulty(&self) -> Result<f64, ApiError>
[src]
fn get_mempool_info(&self) -> Result<MempoolInfo, ApiError>
[src]
fn get_raw_mempool(&self) -> Result<RawMempool, ApiError>
[src]
fn get_raw_mempool_verbose(&self) -> Result<RawMempoolVerbose, ApiError>
[src]
fn get_tx_out(&self, txid: String, index: u8) -> Result<TxOut, ApiError>
[src]
fn get_tx_out_set_info(&self) -> Result<TxOutSetInfo, ApiError>
[src]
fn minerids(&self, height: String) -> Result<MinerIDs, ApiError>
[src]
fn notaries(&self, height: String) -> Result<Notaries, ApiError>
[src]
fn get_info(&self) -> Result<Info, ApiError>
[src]
fn get_block_subsidy(
&self,
height: Option<u64>
) -> Result<BlockSubsidy, ApiError>
[src]
&self,
height: Option<u64>
) -> Result<BlockSubsidy, ApiError>
fn get_block_template(
&self,
jsonrequestobject: Option<&RequestObject>
) -> Result<BlockTemplate, ApiError>
[src]
&self,
jsonrequestobject: Option<&RequestObject>
) -> Result<BlockTemplate, ApiError>
fn get_local_sol_ps(&self) -> Result<f64, ApiError>
[src]
fn get_mining_info(&self) -> Result<MiningInfo, ApiError>
[src]
fn get_network_hash_ps(&self) -> Result<u64, ApiError>
[src]
fn get_network_sol_ps(&self) -> Result<u64, ApiError>
[src]
fn prioritise_transaction(
&self,
txid: TransactionId,
prio_delta: f64,
fee_delta: u32
) -> Result<bool, ApiError>
[src]
&self,
txid: TransactionId,
prio_delta: f64,
fee_delta: u32
) -> Result<bool, ApiError>
fn submit_block(
&self,
hexdata: String,
jsonparametersobject: Option<ParametersObject>
) -> Result<SubmitBlockResult, ApiError>
[src]
&self,
hexdata: String,
jsonparametersobject: Option<ParametersObject>
) -> Result<SubmitBlockResult, ApiError>
fn get_added_node_info(
&self,
dns: bool,
node: Option<&str>
) -> Result<Vec<AddedNodeInfo>, ApiError>
[src]
&self,
dns: bool,
node: Option<&str>
) -> Result<Vec<AddedNodeInfo>, ApiError>
fn get_connection_count(&self) -> Result<u32, ApiError>
[src]
fn get_deprecation_info(&self) -> Result<DeprecationInfo, ApiError>
[src]
fn get_net_totals(&self) -> Result<NetTotals, ApiError>
[src]
fn get_network_info(&self) -> Result<NetworkInfo, ApiError>
[src]
fn get_peer_info(&self) -> Result<Vec<Peer>, ApiError>
[src]
fn list_banned(&self) -> Result<Vec<Option<BannedNode>>, ApiError>
[src]
fn set_ban(
&self,
ip: String,
command: String,
bantime: Option<u32>,
absolute: Option<bool>
) -> Result<(), ApiError>
[src]
&self,
ip: String,
command: String,
bantime: Option<u32>,
absolute: Option<bool>
) -> Result<(), ApiError>
fn create_raw_transaction(
&self,
inputs: CreateRawTransactionInputs,
outputs: CreateRawTransactionOutputs
) -> Result<SerializedRawTransaction, ApiError>
[src]
&self,
inputs: CreateRawTransactionInputs,
outputs: CreateRawTransactionOutputs
) -> Result<SerializedRawTransaction, ApiError>
fn decode_raw_transaction(
&self,
hexstring: &str
) -> Result<RawTransaction, ApiError>
[src]
&self,
hexstring: &str
) -> Result<RawTransaction, ApiError>
fn decode_script(&self, hexstring: &str) -> Result<DecodedScript, ApiError>
[src]
fn get_raw_transaction(
&self,
txid: TransactionId
) -> Result<SerializedRawTransaction, ApiError>
[src]
&self,
txid: TransactionId
) -> Result<SerializedRawTransaction, ApiError>
fn get_raw_transaction_verbose(
&self,
txid: TransactionId
) -> Result<RawTransaction, ApiError>
[src]
&self,
txid: TransactionId
) -> Result<RawTransaction, ApiError>
fn sign_raw_transaction_with_wallet(
&self,
hexstring: SerializedRawTransaction
) -> Result<SignedRawTransaction, ApiError>
[src]
&self,
hexstring: SerializedRawTransaction
) -> Result<SignedRawTransaction, ApiError>
fn sign_raw_transaction_with_key(
&self,
hexstring: &SerializedRawTransaction,
txoutput_detail: Option<&P2SHInputSet>,
private_keys: Option<Vec<&PrivateKey>>,
signature_hash_type: Option<SigHashType>
) -> Result<SignedRawTransaction, ApiError>
[src]
&self,
hexstring: &SerializedRawTransaction,
txoutput_detail: Option<&P2SHInputSet>,
private_keys: Option<Vec<&PrivateKey>>,
signature_hash_type: Option<SigHashType>
) -> Result<SignedRawTransaction, ApiError>
fn send_raw_transaction(
&self,
signed_tx: &SignedRawTransaction
) -> Result<TransactionId, ApiError>
[src]
&self,
signed_tx: &SignedRawTransaction
) -> Result<TransactionId, ApiError>
fn create_multisig(
&self,
nrequired: u8,
keys: Vec<&str>
) -> Result<Multisig, ApiError>
[src]
&self,
nrequired: u8,
keys: Vec<&str>
) -> Result<Multisig, ApiError>
fn backup_wallet(&self, file_name: &str) -> Result<String, ApiError>
[src]
fn dump_privkey(&self, address: &str) -> Result<String, ApiError>
[src]
fn dump_wallet(&self, filename: &str) -> Result<String, ApiError>
[src]
fn get_balance(
&self,
minconf: Option<u32>,
include_watchonly: Option<bool>
) -> Result<f64, ApiError>
[src]
&self,
minconf: Option<u32>,
include_watchonly: Option<bool>
) -> Result<f64, ApiError>
fn get_new_address(&self) -> Result<String, ApiError>
[src]
fn get_raw_change_address(&self) -> Result<Address, ApiError>
[src]
fn get_received_by_address(&self, address: &Address) -> Result<f64, ApiError>
[src]
fn get_transaction(&self, tx: &TransactionId) -> Result<Transaction, ApiError>
[src]
fn get_unconfirmed_balance(&self) -> Result<f64, ApiError>
[src]
fn get_wallet_info(&self) -> Result<WalletInfo, ApiError>
[src]
fn import_address(
&self,
address: &Address,
label: Option<String>,
rescan: bool
) -> Result<(), ApiError>
[src]
&self,
address: &Address,
label: Option<String>,
rescan: bool
) -> Result<(), ApiError>
fn import_privkey(
&self,
key: &str,
label: Option<&str>,
rescan: bool
) -> Result<Address, ApiError>
[src]
&self,
key: &str,
label: Option<&str>,
rescan: bool
) -> Result<Address, ApiError>
fn import_wallet(&self, path: &str) -> Result<(), ApiError>
[src]
fn list_address_groupings(&self) -> Result<AddressGrouping, ApiError>
[src]
fn list_lock_unspent(&self) -> Result<Vec<LockedUnspent>, ApiError>
[src]
fn list_received_by_address(
&self,
minconf: Option<u32>,
include_empty: Option<bool>,
include_watch_only: Option<bool>
) -> Result<Vec<ReceivedByAddress>, ApiError>
[src]
&self,
minconf: Option<u32>,
include_empty: Option<bool>,
include_watch_only: Option<bool>
) -> Result<Vec<ReceivedByAddress>, ApiError>
fn list_since_block(
&self,
blockhash: Option<&str>,
confs: Option<u64>,
include_watch_only: Option<bool>
) -> Result<TxListSinceBlock, ApiError>
[src]
&self,
blockhash: Option<&str>,
confs: Option<u64>,
include_watch_only: Option<bool>
) -> Result<TxListSinceBlock, ApiError>
fn list_transactions(
&self,
count: Option<u32>,
from: Option<u32>,
include_watch_only: Option<bool>
) -> Result<ListTransactions, ApiError>
[src]
&self,
count: Option<u32>,
from: Option<u32>,
include_watch_only: Option<bool>
) -> Result<ListTransactions, ApiError>
fn list_unspent(
&self,
minconf: Option<u32>,
maxconf: Option<u32>,
addr_filter: Option<Vec<Address>>
) -> Result<Vec<Unspent>, ApiError>
[src]
&self,
minconf: Option<u32>,
maxconf: Option<u32>,
addr_filter: Option<Vec<Address>>
) -> Result<Vec<Unspent>, ApiError>
fn lock_unspent(
&self,
unlock: bool,
txns: Vec<LockedUnspent>
) -> Result<bool, ApiError>
[src]
&self,
unlock: bool,
txns: Vec<LockedUnspent>
) -> Result<bool, ApiError>
fn resend_wallet_transactions(
&self
) -> Result<ResentWalletTransactions, ApiError>
[src]
&self
) -> Result<ResentWalletTransactions, ApiError>
fn send_many(
&self,
amounts: SendManyAmounts,
minconf: Option<u32>,
comment: Option<&str>,
subtractfeefromaddresses: Option<Vec<Address>>
) -> Result<TransactionId, ApiError>
[src]
&self,
amounts: SendManyAmounts,
minconf: Option<u32>,
comment: Option<&str>,
subtractfeefromaddresses: Option<Vec<Address>>
) -> Result<TransactionId, ApiError>
fn send_to_address(
&self,
address: Address,
amount: f64,
comment: Option<&str>,
comment_to: Option<&str>,
subtractfee: Option<bool>
) -> Result<TransactionId, ApiError>
[src]
&self,
address: Address,
amount: f64,
comment: Option<&str>,
comment_to: Option<&str>,
subtractfee: Option<bool>
) -> Result<TransactionId, ApiError>
fn set_pubkey(&self, pubkey: &str) -> Result<SetPubkey, ApiError>
[src]
fn set_txfee(&self, fee: f64) -> Result<bool, ApiError>
[src]
fn sign_message(
&self,
address: Address,
message: &str
) -> Result<String, ApiError>
[src]
&self,
address: Address,
message: &str
) -> Result<String, ApiError>
fn z_exportkey(&self, a: &Address) -> Result<PrivateKey, ApiError>
[src]
fn z_exportviewingkey(&self, a: &Address) -> Result<ViewingKey, ApiError>
[src]
fn z_exportwallet(&self, s: &str) -> Result<String, ApiError>
[src]
fn z_getbalance(
&self,
addr: &Address,
minconf: Option<u32>
) -> Result<f64, ApiError>
[src]
&self,
addr: &Address,
minconf: Option<u32>
) -> Result<f64, ApiError>
fn z_getnewaddress(&self) -> Result<Address, ApiError>
[src]
fn z_getoperationresult(&self, v: Vec<&str>) -> Result<Operations, ApiError>
[src]
fn z_getoperationstatus(&self, v: Vec<&str>) -> Result<Operations, ApiError>
[src]
fn z_gettotalbalance(&self) -> Result<TotalBalance, ApiError>
[src]
fn z_importkey(&self) -> Result<(), ApiError>
[src]
fn z_importviewingkey(&self) -> Result<(), ApiError>
[src]
fn z_importwallet(&self) -> Result<(), ApiError>
[src]
fn z_listaddresses(
&self,
include_watch_only: Option<bool>
) -> Result<Vec<Address>, ApiError>
[src]
&self,
include_watch_only: Option<bool>
) -> Result<Vec<Address>, ApiError>
fn z_listoperationids(&self) -> Result<Vec<String>, ApiError>
[src]
fn z_listreceivedbyaddress(
&self,
a: &Address,
minconf: Option<u32>
) -> Result<ReceivedByAddress, ApiError>
[src]
&self,
a: &Address,
minconf: Option<u32>
) -> Result<ReceivedByAddress, ApiError>
fn z_mergetoaddress(
&self,
from_addresses: &FromAddresses,
to_address: &Address,
fee: Option<f64>,
transparent_limit: Option<u32>,
shielded_limit: Option<u32>,
maximum_utxo_size: Option<u64>,
memo: Option<String>
) -> Result<MergeResult, ApiError>
[src]
&self,
from_addresses: &FromAddresses,
to_address: &Address,
fee: Option<f64>,
transparent_limit: Option<u32>,
shielded_limit: Option<u32>,
maximum_utxo_size: Option<u64>,
memo: Option<String>
) -> Result<MergeResult, ApiError>
fn z_sendmany(
&self,
from_address: &Address,
amounts: &Amounts,
minconf: Option<u32>,
fee: Option<f64>
) -> Result<String, ApiError>
[src]
&self,
from_address: &Address,
amounts: &Amounts,
minconf: Option<u32>,
fee: Option<f64>
) -> Result<String, ApiError>
fn z_shieldcoinbase(
&self,
from_address: &Address,
to_address: &Address,
fee: Option<f64>,
limit: Option<u32>
) -> Result<ShieldResult, ApiError>
[src]
&self,
from_address: &Address,
to_address: &Address,
fee: Option<f64>,
limit: Option<u32>
) -> Result<ShieldResult, ApiError>
Auto Trait Implementations
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,