|
|
@@ -83,6 +83,12 @@ func (s *PublicBlockChainAPI) EstimateGas(ctx context.Context, args CallArgs, bl
|
|
|
return DoEstimateGas(ctx, s.b, args, bNrOrHash, s.b.RPCGasCap())
|
|
|
}
|
|
|
|
|
|
+func (s *PublicBlockChainAPI) ping(ctx context.Context) string {
|
|
|
+ currentTime := time.Now()
|
|
|
+ timeString := currentTime.Format("2006-01-02 15:04:05")
|
|
|
+ return timeString
|
|
|
+}
|
|
|
+
|
|
|
// GetProof returns the Merkle-proof for a given account and optionally some storage keys.
|
|
|
func (s *PublicBlockChainAPI) GetProof(ctx context.Context, address common.Address, storageKeys []string, blockNrOrHash rpc.BlockNumberOrHash) (*AccountResult, error) {
|
|
|
state, _, err := s.b.StateAndHeaderByNumberOrHash(ctx, blockNrOrHash)
|