0

I'm dealing with goLang on an go-ethereum fork. In order to query a contract endpoint I need to get a fresh EVM reference for properly call the contract. I've found there is a NewEVM function that could provide a EVM reference as needed:

func NewEVM(ctx Context, statedb StateDB, chainConfig *params.ChainConfig, vmConfig Config) *EVM {...

But I find difficult to get the current valid parameters of the function: ctx, statedb, etc.

Is there any simple piece of code to get a valid EVM reference or its NewEVM parameters? Thx!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.