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 ¶
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 ¶
func GetWriteCommandFlag(cmd *cobra.Command) (gasPrice, signer, password string, nonce, gasLimit uint64, assumeYes bool, err error)
GetWriteCommandFlag returns action flags for command
func NewActionClaimCmd ¶
NewActionClaimCmd represents the action claim command
func NewActionCmd ¶
NewActionCmd represents the action command
func NewActionDepositCmd ¶
NewActionDepositCmd represents the action deposit command
func NewActionHashCmd ¶
NewActionHashCmd represents the action hash command
func NewActionReadCmd ¶
NewActionReadCmd represents the action Read command
func NewActionSendRawCmd ¶
NewActionSendRawCmd represents the action send raw transaction command
func NewActionTransferCmd ¶
NewActionTransferCmd represents the action transfer command
func NewStake2WithdrawCmd ¶
NewStake2WithdrawCmd represents the stake2 withdraw command
func NewXrc20Cmd ¶
NewXrc20Cmd represent xrc20 standard command-line
func NewXrc20TransferFromCmd ¶
NewXrc20TransferFromCmd represent xrc20TransferFrom command
func Read ¶
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 ¶
RegisterWriteCommand registers action flags for command
func SendAction ¶
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.