Documentation
¶
Index ¶
- Variables
- type ContractRequest
- type Iotx
- func (i *Iotx) DeployContract(req *ContractRequest, args ...interface{}) (string, error)
- func (i *Iotx) ExecuteContract(req *ContractRequest, args ...interface{}) (string, error)
- func (i *Iotx) ReadContractByHash(hash string) (string, error)
- func (i *Iotx) ReadContractByMethod(req *ContractRequest, args ...interface{}) (string, error)
- func (i *Iotx) SendTransfer(req *TransferRequest) (string, error)
- type TransferRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrAmount indicates error for error amount convert ErrAmount = fmt.Errorf("error amount") )
Error strings
Functions ¶
This section is empty.
Types ¶
type ContractRequest ¶
type ContractRequest struct { // contract address Address string From string Amount string // for execute method Method string // contract bytecode Data string Abi string GasLimit string GasPrice string }
ContractRequest defines contract request parameters
type Iotx ¶
Iotx service RPCMethod and Accounts
func (*Iotx) DeployContract ¶
func (i *Iotx) DeployContract(req *ContractRequest, args ...interface{}) (string, error)
DeployContract invoke execution action for deploy contract
func (*Iotx) ExecuteContract ¶
func (i *Iotx) ExecuteContract(req *ContractRequest, args ...interface{}) (string, error)
ExecuteContract returns execute contract method action hash
func (*Iotx) ReadContractByHash ¶
ReadContractByHash returns execute contract method result by action hash
func (*Iotx) ReadContractByMethod ¶
func (i *Iotx) ReadContractByMethod(req *ContractRequest, args ...interface{}) (string, error)
ReadContractByMethod returns execute contract view method result
func (*Iotx) SendTransfer ¶
func (i *Iotx) SendTransfer(req *TransferRequest) (string, error)
SendTransfer invoke send transfer action by rpc
Click to show internal directories.
Click to hide internal directories.