module EvmClient::ExplorerUrlHelper

Constants

CHAIN_PREFIX

Public Instance Methods

explorer_path(suffix, version = EvmClient::Singleton.instance.get_chain) click to toggle source
# File lib/evm_client/explorer_url_helper.rb, line 20
def explorer_path(suffix, version = EvmClient::Singleton.instance.get_chain)
  prefix = CHAIN_PREFIX.fetch(version, "")
  "https://#{prefix}etherscan.io/#{suffix}"
end