contract

package
v0.1.91 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ArgRpcURL  = "rpc-url"
	ArgAddress = "address"
)

Variables

View Source
var Cmd = &cobra.Command{
	Use:   "contract",
	Short: "Interact with smart contracts and fetch contract information from the blockchain.",
	Long:  usage,
	PersistentPreRun: func(cmd *cobra.Command, args []string) {
		rpcURL := flag_loader.GetRpcUrlFlagValue(cmd)
		inputArgs.rpcURL = *rpcURL
	},
	RunE: func(cmd *cobra.Command, args []string) error {
		return contract(cmd)
	},
}

Functions

This section is empty.

Types

type ContractInfo

type ContractInfo struct {
	Address         string             `json:"address"`
	Balance         uint64             `json:"balance,omitempty"`
	CreationTx      *types.Transaction `json:"creation_tx,omitempty"`
	CreationReceipt *types.Receipt     `json:"creation_receipt,omitempty"`
}

Jump to

Keyboard shortcuts

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