README.md in nanook-2.3.0 vs README.md in nanook-2.4.0

- old
+ new

@@ -9,11 +9,11 @@ ## Installation Add this line to your application's Gemfile: ```ruby -gem 'nanook', "~> 2.3" +gem 'nanook' ``` And then execute: $ bundle @@ -118,15 +118,15 @@ wallet.receive(block_id, into: account_id) ``` ## All commands -Below is a quick reference list of commands. See the [full Nanook documentation](https://lukes.github.io/nanook/2.3.0/) for a searchable detailed description of every class and method, what the arguments mean, and example responses (Tip: the classes are listed under the "**Nanook** < Object" item in the sidebar). +Below is a quick reference list of commands. See the [full Nanook documentation](https://lukes.github.io/nanook/2.4.0/) for a searchable detailed description of every class and method, what the arguments mean, and example responses (Tip: the classes are listed under the "**Nanook** < Object" item in the sidebar). ### Wallets -See the [full documentation for Nanook::Wallet](https://lukes.github.io/nanook/2.3.0/Nanook/Wallet.html) for a detailed description of each method and example responses. +See the [full documentation for Nanook::Wallet](https://lukes.github.io/nanook/2.4.0/Nanook/Wallet.html) for a detailed description of each method and example responses. #### Create wallet: ```ruby Nanook.new.wallet.create @@ -187,11 +187,11 @@ Nanook.new.wallet(wallet_id).account.create(5) ``` #### Working with a single account: -See the [full documentation for Nanook::WalletAccount](https://lukes.github.io/nanook/2.3.0/Nanook/WalletAccount.html) for a detailed description of each method and example responses. +See the [full documentation for Nanook::WalletAccount](https://lukes.github.io/nanook/2.4.0/Nanook/WalletAccount.html) for a detailed description of each method and example responses. ```ruby account = Nanook.new.wallet(wallet_id).account(account_id) account.balance @@ -227,11 +227,11 @@ account.destroy ``` #### Working with any account (not necessarily in your wallet): -See the [full documentation for Nanook::Account](https://lukes.github.io/nanook/2.3.0/Nanook/Account.html) for a detailed description of each method and example responses. +See the [full documentation for Nanook::Account](https://lukes.github.io/nanook/2.4.0/Nanook/Account.html) for a detailed description of each method and example responses. ```ruby account = Nanook.new.account(account_id) account.balance @@ -260,20 +260,22 @@ account.weight ``` ### Blocks -See the [full documentation for Nanook::Block](https://lukes.github.io/nanook/2.3.0/Nanook/Block.html) for a detailed description of each method and example responses. +See the [full documentation for Nanook::Block](https://lukes.github.io/nanook/2.4.0/Nanook/Block.html) for a detailed description of each method and example responses. ```ruby block = Nanook.new.block(block_id) block.info # Verified blocks in the ledger block.info(allow_unchecked: true) # Verified blocks AND unchecked synchronizing blocks block.account block.chain block.chain(limit: 10) +block.confirm +block.confirmed_recently? block.history block.history(limit: 10) block.republish block.republish(sources: 2) block.republish(destinations: 2) @@ -281,25 +283,27 @@ block.publish block.successors block.successors(limit: 10) block.generate_work +block.generate_work(use_peers: true) block.cancel_work block.is_valid_work?(work_id) ``` ### Managing your nano node -See the [full documentation for Nanook::Node](https://lukes.github.io/nanook/2.3.0/Nanook/Node.html) for a detailed description of each method and example responses. +See the [full documentation for Nanook::Node](https://lukes.github.io/nanook/2.4.0/Nanook/Node.html) for a detailed description of each method and example responses. ```ruby node = Nanook.new.node node.account_count node.block_count node.block_count_by_type node.bootstrap_any node.bootstrap(address: "::ffff:138.201.94.249", port: 7075) +node.confirmation_history node.peers node.representatives node.representatives(unit: :raw) node.representatives_online node.synchronizing_blocks