testnet

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package testnet provides Neo N3 testnet contract deployment.

Index

Constants

View Source
const (
	DefaultTestnetRPC = "https://testnet1.neo.coz.io:443"
	DefaultTimeout    = 60 * time.Second
	TestnetMagic      = 894710606
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployer

type Deployer struct {
	// contains filtered or unexported fields
}

func NewDeployer

func NewDeployer(rpcURL string) (*Deployer, error)

func (*Deployer) DeployContract

func (d *Deployer) DeployContract(nefPath, manifestPath string) (*chain.DeployedContract, error)

DeployContract simulates deployment and returns estimated gas costs. For actual deployment, use neo-go CLI.

func (*Deployer) GetAccountHash

func (d *Deployer) GetAccountHash() util.Uint160

func (*Deployer) GetAddress

func (d *Deployer) GetAddress() string

func (*Deployer) GetBlockCount

func (d *Deployer) GetBlockCount() (int64, error)

func (*Deployer) GetContractState

func (d *Deployer) GetContractState(contractAddress string) (map[string]interface{}, error)

GetContractState gets the state of a deployed contract.

func (*Deployer) GetGASBalance

func (d *Deployer) GetGASBalance() (string, error)

func (*Deployer) GetGASBalanceFloat

func (d *Deployer) GetGASBalanceFloat() (float64, error)

func (*Deployer) GetScriptHash

func (d *Deployer) GetScriptHash() string

func (*Deployer) InvokeFunction

func (d *Deployer) InvokeFunction(contractAddress, method string, args []interface{}) (*chain.InvokeResult, error)

InvokeFunction invokes a contract function (read-only).

Jump to

Keyboard shortcuts

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