Module: Minter::Api::NonceResource
- Included in:
- Client
- Defined in:
- lib/minter/api/resources/nonce_resource.rb
Instance Method Summary collapse
Instance Method Details
#nonce(address:) ⇒ Object
6 7 8 9 10 |
# File 'lib/minter/api/resources/nonce_resource.rb', line 6 def nonce(address:) path = "/address/#{address}" response = get(path) response.body["transaction_count"].to_i + 1 end |