bc

package
v2.0.6-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodVoter     = "voter"
	MethodCandidate = "cand"
)

constants

Variables

This section is empty.

Functions

func GetBucketList

func GetBucketList(
	client ioctl.Client,
	methodName iotexapi.ReadStakingDataMethod_Name,
	readStakingDataRequest *iotexapi.ReadStakingDataRequest,
) (*iotextypes.VoteBucketList, error)

GetBucketList get bucket list

func GetChainMeta

func GetChainMeta(client ioctl.Client) (*iotextypes.ChainMeta, error)

GetChainMeta gets blockchain metadata

func GetEpochMeta

func GetEpochMeta(client ioctl.Client, epochNum uint64) (*iotexapi.GetEpochMetaResponse, error)

GetEpochMeta gets blockchain epoch meta

func GetProbationList

func GetProbationList(client ioctl.Client, epochNum uint64, epochStartHeight uint64) (*iotexapi.ReadStateResponse, error)

GetProbationList gets probation list

func JSONString

func JSONString(out interface{}) string

JSONString returns json string for message

func NewBCBlockCmd

func NewBCBlockCmd(c ioctl.Client) *cobra.Command

NewBCBlockCmd represents the bc block command

func NewBCBucketCmd

func NewBCBucketCmd(client ioctl.Client) *cobra.Command

NewBCBucketCmd represents the bc Bucket command

func NewBCBucketListCmd

func NewBCBucketListCmd(client ioctl.Client) *cobra.Command

NewBCBucketListCmd represents the bc bucketlist command

func NewBCCmd

func NewBCCmd(client ioctl.Client) *cobra.Command

NewBCCmd represents the bc(block chain) command

func NewBCInfoCmd

func NewBCInfoCmd(client ioctl.Client) *cobra.Command

NewBCInfoCmd represents the bc info command

Types

This section is empty.

Jump to

Keyboard shortcuts

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