Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Moonyongjung/eth-test-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eth-test-tool

Introduction

EVM based chain test tool. There is a simple solidity contract to test(store and inquiry number).

Prerequisites

  • Go, Geth, Nodejs
  • Set config file
    • ./config/config.json
    {
      "targetUrl":"http://localhost:8545",
      "gasLimit":"58360"  
    }
    • targetUrl : Target chain information
    • gasLimit : Transaction gas limit
  • Set contract config file
    • ./config/configContract.json
    {
      "contractDir":"./rpc/contracts/",
      "contractAbiDir":"contractAbi.json",
      "contractBytecodeDir":"contractBytecode.json",
      "contractAddressDir":"contractAddress.json"
    }
    • contractDir : Default directory of contract
    • contractAbiDir, contractBytecodeDir : Solidity contract ABI and bytecode file to deploy (Default test solidity contract ABI & bytecode are set)
    • contractAddressDir : After deploying contract, contract address saved file directory automatically
  • Set key config file
    • ./config/configKey.json
    {
      "mnemonic":""       
    }
    • mnemonic : mnemonic words to crate eth test tool's address and private key

Usage

  1. Set config file
  2. ./start.sh
  3. If account has no coin, send coin to ETH account address in order to pay gas fee
  4. Test

Functionalities

  1. Contract deploy
  2. Send invoke transaction
  3. Call transaction
  4. Get transaction information (by hash)
  5. Get block information (by hash or height)
  6. Account info(eth-test-tool)
  7. Account info(retrieve account)
  8. Send coin(from eth-test-tool address to others)

About

Simple ethereum test tool

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published