Skip to content

Latest commit

 

History

History
874 lines (585 loc) · 23.7 KB

wallet.rst

File metadata and controls

874 lines (585 loc) · 23.7 KB

Wallet

account_create

Creates a new account, insert next deterministic key in wallet :pynano.rpc.Client.account_create(wallet, work=True) <nano.rpc.Client.account_create>

account_list

Lists all the accounts inside wallet :pynano.rpc.Client.account_list(wallet) <nano.rpc.Client.account_list>

account_move

Moves accounts from source to wallet :pynano.rpc.Client.account_move(source, wallet, accounts) <nano.rpc.Client.account_move>

account_remove

Remove account from wallet :pynano.rpc.Client.account_remove(wallet, account) <nano.rpc.Client.account_remove>

account_representative_set

Sets the representative for account in wallet :pynano.rpc.Client.account_representative_set(wallet, account, representative, work=None) <nano.rpc.Client.account_representative_set>

accounts_create

Creates new accounts, insert next deterministic keys in wallet up to count :pynano.rpc.Client.accounts_create(wallet, count, work=True) <nano.rpc.Client.accounts_create>

password_change

Changes the password for wallet to password :pynano.rpc.Client.password_change(wallet, password) <nano.rpc.Client.password_change>

password_enter

Enters the password in to wallet :pynano.rpc.Client.password_enter(wallet, password) <nano.rpc.Client.password_enter>

password_valid

Checks whether the password entered for wallet is valid :pynano.rpc.Client.password_valid(wallet) <nano.rpc.Client.password_valid>

payment_begin

Begin a new payment session. Searches wallet for an account that's marked as available and has a 0 balance. If one is found, the account number is returned and is marked as unavailable. If no account is found, a new account is created, placed in the wallet, and returned. :pynano.rpc.Client.payment_begin(wallet) <nano.rpc.Client.payment_begin>

payment_end

End a payment session. Marks the account as available for use in a payment session. :pynano.rpc.Client.payment_end(account, wallet) <nano.rpc.Client.payment_end>

payment_init

Marks all accounts in wallet as available for being used as a payment session. :pynano.rpc.Client.payment_init(wallet) <nano.rpc.Client.payment_init>

receive

Receive pending block for account in wallet :pynano.rpc.Client.receive(wallet, account, block, work=None) <nano.rpc.Client.receive>

search_pending

Tells the node to look for pending blocks for any account in wallet :pynano.rpc.Client.search_pending(wallet) <nano.rpc.Client.search_pending>

send

Send amount from source in wallet to destination :pynano.rpc.Client.send(wallet, source, destination, amount, work=None) <nano.rpc.Client.send>

wallet_add

Add an adhoc private key key to wallet :pynano.rpc.Client.wallet_add(wallet, key, work=True) <nano.rpc.Client.wallet_add>

wallet_balance_total

Returns the sum of all accounts balances in wallet :pynano.rpc.Client.wallet_balance_total(wallet) <nano.rpc.Client.wallet_balance_total>

wallet_balances

Returns how many rai is owned and how many have not yet been received by all accounts in wallet :pynano.rpc.Client.wallet_balances(wallet) <nano.rpc.Client.wallet_balances>

wallet_change_seed

Changes seed for wallet to seed :pynano.rpc.Client.wallet_change_seed(wallet, seed) <nano.rpc.Client.wallet_change_seed>

wallet_contains

Check whether wallet contains account :pynano.rpc.Client.wallet_contains(wallet, account) <nano.rpc.Client.wallet_contains>

wallet_create

Creates a new random wallet id :pynano.rpc.Client.wallet_create() <nano.rpc.Client.wallet_create>

wallet_destroy

Destroys wallet and all contained accounts :pynano.rpc.Client.wallet_destroy(wallet) <nano.rpc.Client.wallet_destroy>

wallet_export

Return a json representation of wallet :pynano.rpc.Client.wallet_export(wallet) <nano.rpc.Client.wallet_export>

wallet_frontiers

Returns a list of pairs of account and block hash representing the head block starting for accounts from wallet :pynano.rpc.Client.wallet_frontiers(wallet) <nano.rpc.Client.wallet_frontiers>

wallet_key_valid

Returns if a wallet key is valid :pynano.rpc.Client.wallet_key_valid(wallet) <nano.rpc.Client.wallet_key_valid>

wallet_lock

Locks a wallet :pynano.rpc.Client.wallet_lock(wallet) <nano.rpc.Client.wallet_lock>

wallet_locked

Checks whether wallet is locked :pynano.rpc.Client.wallet_locked(wallet) <nano.rpc.Client.wallet_locked>

wallet_pending

Returns a list of block hashes which have not yet been received by accounts in this wallet :pynano.rpc.Client.wallet_pending(wallet, count=None, threshold=None, source=False) <nano.rpc.Client.wallet_pending>

wallet_representative

Returns the default representative for wallet :pynano.rpc.Client.wallet_representative(wallet) <nano.rpc.Client.wallet_representative>

wallet_representative_set

Sets the default representative for wallet :pynano.rpc.Client.wallet_representative_set(wallet, representative) <nano.rpc.Client.wallet_representative_set>

wallet_republish

Rebroadcast blocks for accounts from wallet starting at frontier down to count to the network :pynano.rpc.Client.wallet_republish(wallet, count) <nano.rpc.Client.wallet_republish>

wallet_unlock

Unlocks wallet using password :pynano.rpc.Client.wallet_unlock(wallet, password) <nano.rpc.Client.wallet_unlock>