Skip to content

Latest commit

 

History

History
670 lines (488 loc) · 21.6 KB

block.rst

File metadata and controls

670 lines (488 loc) · 21.6 KB

Block

block

Retrieves a json representation of block :pynano.rpc.Client.block(hash) <nano.rpc.Client.block>

block_account

Returns the account containing block :pynano.rpc.Client.block_account(hash) <nano.rpc.Client.block_account>

block_count

Reports the number of blocks in the ledger and unchecked synchronizing blocks :pynano.rpc.Client.block_count() <nano.rpc.Client.block_count>

block_count_type

Reports the number of blocks in the ledger by type (send, receive, open, change) :pynano.rpc.Client.block_count_type() <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 :pynano.rpc.Client.block_create(type, account, wallet=None, representative=None, key=None, destination=None, amount=None, balance=None, previous=None, source=None, work=None) <nano.rpc.Client.block_create>

blocks

Retrieves a json representations of blocks :pynano.rpc.Client.blocks(hashes) <nano.rpc.Client.blocks>

blocks_info

Retrieves a json representations of blocks with transaction amount & block account :pynano.rpc.Client.blocks_info(hashes, pending=False, source=False) <nano.rpc.Client.blocks_info>

chain

Returns a list of block hashes in the account chain starting at block up to count :pynano.rpc.Client.chain(block, count) <nano.rpc.Client.chain>

history

Reports send/receive information for a chain of blocks :pynano.rpc.Client.history(hash, count) <nano.rpc.Client.history>

pending_exists

Check whether block is pending by hash :pynano.rpc.Client.pending_exists(hash) <nano.rpc.Client.pending_exists>

process

Publish block to the network :pynano.rpc.Client.process(block) <nano.rpc.Client.process>

receive

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

republish

Rebroadcast blocks starting at hash to the network :pynano.rpc.Client.republish(hash, count=None, sources=None, destinations=None) <nano.rpc.Client.republish>

successors

Returns a list of block hashes in the account chain ending at block up to count :pynano.rpc.Client.successors(block, count) <nano.rpc.Client.successors>

unchecked

Returns a list of pairs of unchecked synchronizing block hash and its json representation up to count :pynano.rpc.Client.unchecked(count=None) <nano.rpc.Client.unchecked>

unchecked_clear

Clear unchecked synchronizing blocks :pynano.rpc.Client.unchecked_clear() <nano.rpc.Client.unchecked_clear>

unchecked_get

Retrieves a json representation of unchecked synchronizing block by hash :pynano.rpc.Client.unchecked_get(hash) <nano.rpc.Client.unchecked_get>

unchecked_keys

Retrieves unchecked database keys, blocks hashes & a json representations of unchecked pending blocks starting from key up to count :pynano.rpc.Client.unchecked_keys(key=None, count=None) <nano.rpc.Client.unchecked_keys>

work_validate

Check whether work is valid for block :pynano.rpc.Client.work_validate(work, hash) <nano.rpc.Client.work_validate>