erigon-pulse/cmd/devnet/commands/all.go
Leonard Chinonso 726ed8462d
Setup calls for rpc testing (#5661)
Setup calls for rpc testing
- Added call requests for testing rpc calls
- Added new methods getBalance and txPool content
2022-10-11 13:34:32 +01:00

22 lines
481 B
Go

package commands
import (
"fmt"
"github.com/ledgerwatch/erigon/cmd/devnet/models"
)
// ExecuteAllMethods runs all the simulation tests for erigon devnet
func ExecuteAllMethods() {
// test connection to JSON RPC
fmt.Println("Mocking get requests to JSON RPC...")
pingErigonRpc()
fmt.Println()
// get balance of the receiver's account
callGetBalance(addr, models.BlockNumLatest, 0)
fmt.Println()
fmt.Println("Confirming the tx pool is empty...")
callTxPoolContent()
}