ethscan

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QueryResult

func QueryResult() error

func VerifyContract

func VerifyContract(URL, apiKey, sourceCode, contractAddress, contractName, metadataJson string) (string, error)

Types

type VerifyContractReq

type VerifyContractReq struct {
	URL string
	// contains filtered or unexported fields
}

type VerifyContractResp

type VerifyContractResp struct {
	Result []struct {
		Address    string `json:"address,omitempty"`
		ChainId    string `json:"chainId,omitempty"`
		Status     string `json:"status,omitempty"`
		LibraryMap struct {
			Lib1 string `json:"lib1,omitempty"`
			Lib2 string `json:"lib2,omitempty"`
		} `json:"libraryMap"`
	} `json:"result,omitempty"`
	Error string `json:"error,omitempty"`
}

type VerifyResp

type VerifyResp struct {
	Status  string `json:"status"`
	Message string `json:"message"`
	Result  string `json:"result"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL