README.md in nanook-3.1.0 vs README.md in nanook-4.0.0

- old
+ new

@@ -122,15 +122,15 @@ Read the [Using Nanook](https://github.com/lukes/nanook/wiki/Using-nanook) page for some example uses of Nanook to query the network. ## All commands -Below is a quick reference list of commands. See the [full Nanook documentation](https://lukes.github.io/nanook/3.1.0/) for a searchable detailed description of every class and method, what the arguments mean, and example responses. +Below is a quick reference list of commands. See the [full Nanook documentation](https://lukes.github.io/nanook/4.0.0/) for a searchable detailed description of every class and method, what the arguments mean, and example responses. ### Wallets -See the [full documentation for Nanook::Wallet](https://lukes.github.io/nanook/3.1.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/4.0.0/Nanook/Wallet.html) for a detailed description of each method and example responses. #### Create wallet: ```ruby nanook.wallet.create @@ -156,10 +156,11 @@ wallet.pay(from: your_account_id, to: recipient_account_id, amount: 2, id: unique_id) wallet.pay(from: your_account_id, to: recipient_account_id, amount: 2, id: unique_id, unit: :raw) wallet.pending wallet.pending(limit: 1) wallet.pending(detailed: true) +wallet.pending(allow_unconfirmed: true) wallet.pending(unit: :raw) wallet.receive(into: account_id) wallet.receive(pending_block_id, into: account_id) wallet.search_pending @@ -210,18 +211,21 @@ ```ruby account = nanook.account(account_id) ``` -See the [full documentation for Nanook::Account](https://lukes.github.io/nanook/3.1.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/4.0.0/Nanook/Account.html) for a detailed description of each method and example responses. ```ruby account.balance +account.balance(allow_unconfirmed: true) account.balance(unit: :raw) account.pending account.pending(limit: 1) +account.pending(allow_unconfirmed: true) account.pending(detailed: true) +account.pending(sorted: true) account.pending(unit: :raw) account.blocks account.blocks(limit: 1) account.blocks(sort: :desc) @@ -232,10 +236,11 @@ account.history account.history(limit: 1) account.history(unit: :raw) account.history(sort: :desc) account.info +account.info(allow_unconfirmed: true) account.info(unit: :raw) account.last_modified_at account.ledger account.ledger(limit: 10) account.ledger(modified_since: Time.now) @@ -258,11 +263,11 @@ account = wallet.account(account_id) ``` As well as the following methods, all methods of [regular accounts](#working-with-any-account) can also be called. -See the [full documentation for Nanook::WalletAccount](https://lukes.github.io/nanook/3.1.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/4.0.0/Nanook/WalletAccount.html) for a detailed description of each method and example responses. ```ruby account.pay(to: recipient_account_id, amount: 2, id: unique_id) account.pay(to: recipient_account_id, amount: 2, id: unique_id, unit: :raw) account.receive @@ -273,11 +278,11 @@ account.destroy ``` ### Blocks -See the [full documentation for Nanook::Block](https://lukes.github.io/nanook/3.1.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/4.0.0/Nanook/Block.html) for a detailed description of each method and example responses. ```ruby block = nanook.block(block_id) block.account @@ -301,10 +306,11 @@ block.info(allow_unchecked: true) # Verified blocks AND unchecked synchronizing blocks block.info(unit: :raw) block.next block.open? block.pending? +block.pending?(allow_unconfirmed: true) block.previous block.receive? block.representative block.republish block.republish(sources: 2) @@ -322,18 +328,19 @@ block.valid_work?(work) ``` ### Managing your nano node -See the [full documentation for Nanook::Node](https://lukes.github.io/nanook/3.1.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/4.0.0/Nanook/Node.html) for a detailed description of each method and example responses. ```ruby node = nanook.node node.account_count node.block_count node.bootstrap(address: "::ffff:138.201.94.249", port: 7075) node.bootstrap_any +node.bootstrap_any(account: account_id) node.bootstrap_lazy(block_id) node.bootstrap_lazy(block_id, force: true) node.confirmation_quorum node.difficulty node.difficulty(include_trend: true)