Documentation ¶
Index ¶
- Constants
- func Execute(client ioctl.Client, cmd *cobra.Command, contract string, amount *big.Int, ...) error
- func GetWriteCommandFlag(cmd *cobra.Command) (gasPrice, signer, password string, nonce, gasLimit uint64, assumeYes bool, ...)
- func Match(client ioctl.Client, in string, matchType string) string
- func NewActionClaimCmd(client ioctl.Client) *cobra.Command
- func NewActionCmd(client ioctl.Client) *cobra.Command
- func NewActionDepositCmd(client ioctl.Client) *cobra.Command
- func NewActionHashCmd(client ioctl.Client) *cobra.Command
- func NewActionReadCmd(client ioctl.Client) *cobra.Command
- func NewActionSendRawCmd(client ioctl.Client) *cobra.Command
- func NewActionTransferCmd(client ioctl.Client) *cobra.Command
- func NewStake2WithdrawCmd(client ioctl.Client) *cobra.Command
- func NewXrc20Cmd(client ioctl.Client) *cobra.Command
- func NewXrc20TransferFromCmd(client ioctl.Client) *cobra.Command
- func Read(client ioctl.Client, contract address.Address, amount string, bytecode []byte, ...) (string, error)
- func RegisterWriteCommand(client ioctl.Client, cmd *cobra.Command)
- func SendAction(client ioctl.Client, cmd *cobra.Command, elp action.Envelope, ...) error
- func SendRaw(client ioctl.Client, cmd *cobra.Command, selp *iotextypes.Action) error
- func Signer(client ioctl.Client, signer string) (string, error)
Constants ¶
const ( GasLimitFlagDefault = uint64(20000000) SignerFlagDefault = "" )
Flag label, short label and defaults
const ( // Pending action is in the action pool but not executed by blockchain Pending actionState = iota // Executed action has been run and recorded on blockchain Executed )
Variables ¶
This section is empty.
Functions ¶
func Execute ¶ added in v1.9.0
func Execute(client ioctl.Client, cmd *cobra.Command, contract string, amount *big.Int, bytecode []byte, gasPrice, signer, password string, nonce, gasLimit uint64, assumeYes bool, ) error
Execute sends signed execution's transaction to blockchain
func GetWriteCommandFlag ¶ added in v1.9.0
func GetWriteCommandFlag(cmd *cobra.Command) (gasPrice, signer, password string, nonce, gasLimit uint64, assumeYes bool, err error)
GetWriteCommandFlag returns action flags for command
func NewActionClaimCmd ¶ added in v1.9.0
NewActionClaimCmd represents the action claim command
func NewActionCmd ¶ added in v1.9.0
NewActionCmd represents the action command
func NewActionDepositCmd ¶ added in v1.9.0
NewActionDepositCmd represents the action deposit command
func NewActionHashCmd ¶
NewActionHashCmd represents the action hash command
func NewActionReadCmd ¶ added in v1.9.0
NewActionReadCmd represents the action Read command
func NewActionSendRawCmd ¶ added in v1.9.0
NewActionSendRawCmd represents the action send raw transaction command
func NewActionTransferCmd ¶ added in v1.9.0
NewActionTransferCmd represents the action transfer command
func NewStake2WithdrawCmd ¶ added in v1.9.0
NewStake2WithdrawCmd represents the stake2 withdraw command
func NewXrc20Cmd ¶ added in v1.9.0
NewXrc20Cmd represent xrc20 standard command-line
func NewXrc20TransferFromCmd ¶ added in v1.9.0
NewXrc20TransferFromCmd represent xrc20TransferFrom command
func Read ¶ added in v1.9.0
func Read(client ioctl.Client, contract address.Address, amount string, bytecode []byte, signer string, gasLimit uint64, ) (string, error)
Read reads smart contract on IoTeX blockchain
func RegisterWriteCommand ¶ added in v1.9.0
RegisterWriteCommand registers action flags for command
func SendAction ¶ added in v1.9.0
func SendAction(client ioctl.Client, cmd *cobra.Command, elp action.Envelope, signer, password string, nonce uint64, assumeYes bool, ) error
SendAction sends signed action to blockchain
Types ¶
This section is empty.