README.md in libra_client-0.1.2 vs README.md in libra_client-0.1.3
- old
+ new
@@ -19,20 +19,29 @@
$ gem install libra_client
## Usage
+### Get Account state
+```ruby
+require 'libra_client'
+client = Libra::Client.new(:testnet)
+state = client.get_account_state("000000000000000000000000000000000000000000000000000000000a550c18")
+state.balance #the balance of the account
+state.sequence_number #the sequence_number of the account
+```
+### Get Transaction
```ruby
require 'libra_client'
client = Libra::Client.new(:testnet)
client.get_transaction(0) #get the genesis transaction
client.get_transaction(1) #get the first transaction
version = client.get_latest_transaction_version
client.get_transaction(version) #get the latest transaction
-
-client.get_account_state(ASSOCIATION_ADDRESS)
```
+
+
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.