Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Commit

Permalink
feat: add get_current_epoch RPC
Browse files Browse the repository at this point in the history
  • Loading branch information
classicalliu committed May 7, 2019
1 parent 5ff573a commit 40d897d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/ckb/api.rb
Expand Up @@ -120,5 +120,9 @@ def trace_transaction(transaction)
def get_transaction_trace(hash)
rpc_request('get_transaction_trace', params: [hash])[:result]
end

def get_current_epoch
rpc_request('get_current_epoch')
end
end
end

0 comments on commit 40d897d

Please sign in to comment.