bc

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 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 added in v1.9.0

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 added in v1.8.0

func JSONString(out interface{}) string

JSONString returns json string for message

func NewBCBlockCmd added in v1.1.0

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

NewBCBlockCmd represents the bc block command

func NewBCBucketCmd added in v1.8.2

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

NewBCBucketCmd represents the bc Bucket command

func NewBCBucketListCmd added in v1.9.0

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