Documentation
¶
Index ¶
- Constants
- Variables
- func GenerateSignedTxAndValidate(cmd *cobra.Command, ops []interface{}, signers *wallet.PrivAccount) (*prototype.SignedTransaction, error)
- func GenerateSignedTxAndValidate2(client grpcpb.ApiServiceClient, ops []interface{}, signers *wallet.PrivAccount, ...) (*prototype.SignedTransaction, error)
- func GenerateSignedTxAndValidate3(client grpcpb.ApiServiceClient, ops []interface{}, ...) (*prototype.SignedTransaction, error)
- func GenerateSignedTxAndValidate4(dgp *prototype.DynamicProperties, expiration uint32, ops []interface{}, ...) (*prototype.SignedTransaction, error)
- func GenerateUUID(content string) uint64
- func GetChainState(client grpcpb.ApiServiceClient) (*grpcpb.ChainState, error)
- func GetPassphrase(reader PasswordReader) (string, error)
- func ParseAccountCreateFee(client grpcpb.ApiServiceClient, accountCreateFee string) (*prototype.Coin, error)
- func ParseCos(v string) (uint64, error)
- func ProcessEstimate(cmd *cobra.Command) bool
- type MyPasswordReader
- type PasswordReader
Constants ¶
View Source
const MinimumCos = "0.100000"
Variables ¶
View Source
var EstimateStamina bool
Functions ¶
func GenerateSignedTxAndValidate ¶
func GenerateSignedTxAndValidate(cmd *cobra.Command, ops []interface{}, signers *wallet.PrivAccount) (*prototype.SignedTransaction, error)
func GenerateSignedTxAndValidate2 ¶ added in v1.0.2
func GenerateSignedTxAndValidate2(client grpcpb.ApiServiceClient, ops []interface{}, signers *wallet.PrivAccount, chainId prototype.ChainId) (*prototype.SignedTransaction, error)
func GenerateSignedTxAndValidate3 ¶ added in v1.0.2
func GenerateSignedTxAndValidate3(client grpcpb.ApiServiceClient, ops []interface{}, privKey *prototype.PrivateKeyType, chainId prototype.ChainId) (*prototype.SignedTransaction, error)
func GenerateSignedTxAndValidate4 ¶ added in v1.0.2
func GenerateSignedTxAndValidate4(dgp *prototype.DynamicProperties, expiration uint32, ops []interface{}, privKey *prototype.PrivateKeyType, chainId prototype.ChainId) (*prototype.SignedTransaction, error)
func GenerateUUID ¶
func GetChainState ¶ added in v1.0.2
func GetChainState(client grpcpb.ApiServiceClient) (*grpcpb.ChainState, error)
func GetPassphrase ¶
func GetPassphrase(reader PasswordReader) (string, error)
func ParseAccountCreateFee ¶ added in v1.0.2
func ProcessEstimate ¶ added in v1.0.2
Types ¶
type MyPasswordReader ¶
type MyPasswordReader struct{}
func (MyPasswordReader) ReadPassword ¶
func (pr MyPasswordReader) ReadPassword(fd int) ([]byte, error)
type PasswordReader ¶
Click to show internal directories.
Click to hide internal directories.