Block¶
block¶
Retrieves a json representation of block
nano.rpc.Client.block(hash)
block_account¶
Returns the account containing block
nano.rpc.Client.block_account(hash)
block_count¶
Reports the number of blocks in the ledger and unchecked synchronizing blocks
nano.rpc.Client.block_count()
block_count_type¶
Reports the number of blocks in the ledger by type (send, receive, open, change)
nano.rpc.Client.block_count_type()
block_create¶
Creates a json representations of new block based on input data & signed with private key or account in wallet for offline signing
nano.rpc.Client.block_create(type, account, wallet=None, representative=None, key=None, destination=None, amount=None, balance=None, previous=None, source=None, work=None)
blocks¶
Retrieves a json representations of blocks
nano.rpc.Client.blocks(hashes)
blocks_info¶
Retrieves a json representations of blocks with transaction amount & block account
nano.rpc.Client.blocks_info(hashes, pending=False, source=False)
chain¶
Returns a list of block hashes in the account chain starting at block up to count
nano.rpc.Client.chain(block, count)
history¶
Reports send/receive information for a chain of blocks
nano.rpc.Client.history(hash, count)
pending_exists¶
Check whether block is pending by hash
nano.rpc.Client.pending_exists(hash)
process¶
Publish block to the network
nano.rpc.Client.process(block)
receive¶
Receive pending block for account in wallet
nano.rpc.Client.receive(wallet, account, block, work=None)
republish¶
Rebroadcast blocks starting at hash to the network
nano.rpc.Client.republish(hash, count=None, sources=None, destinations=None)
successors¶
Returns a list of block hashes in the account chain ending at block up to count
nano.rpc.Client.successors(block, count)
unchecked¶
Returns a list of pairs of unchecked synchronizing block hash and its json representation up to count
nano.rpc.Client.unchecked(count=None)
unchecked_clear¶
Clear unchecked synchronizing blocks
nano.rpc.Client.unchecked_clear()
unchecked_get¶
Retrieves a json representation of unchecked synchronizing block by hash
nano.rpc.Client.unchecked_get(hash)
unchecked_keys¶
Retrieves unchecked database keys, blocks hashes & a json representations of unchecked pending blocks starting from key up to count
nano.rpc.Client.unchecked_keys(key=None, count=None)
work_validate¶
Check whether work is valid for block
nano.rpc.Client.work_validate(work, hash)