class Eth::Client

def is_mined_tx?(hash)

Returns:
  • (Boolean) - true if included in a block.

Parameters:
  • hash (String) -- the transaction hash.
def is_mined_tx?(hash)
  mined_tx = eth_get_transaction_by_hash hash
  !mined_tx.nil? && !mined_tx["result"].nil? && !mined_tx["result"]["blockNumber"].nil?
end