Documentation ¶
Index ¶
- Constants
- func BroadcastTransferTx(rootDir, node, chainID, txString, broadcastMode string) string
- func CreateAccount(rootDir, name, password, seed string) string
- func CreateSeed() string
- func CreateSeedWithMulLangs(lang string) string
- func Delegate(...) string
- func GetAccount(rootDir, node, chainID, addr string) string
- func GetAllDelegations(rootDir, node, chainID, delegatorAddr string) string
- func GetAllUnbondingDelegations(rootDir, node, chainID, delegatorAddr string) string
- func GetAllValidators(rootDir, node, chainID string) string
- func GetBondValidators(rootDir, node, chainID, delegatorAddr string) string
- func GetDelegationRewards(rootDir, node, chainID, delegatorAddr, validatorAddr string) string
- func GetDelegationShares(rootDir, node, chainID, delegatorAddr, validatorAddr string) string
- func GetDelegtorRewardsShares(rootDir, node, chainID, delegatorAddr string) string
- func GetValSelfBondShares(rootDir, node, chainID, validatorAddr string) string
- func LocalGenTx(rootDir, node, chainID, fromName, password, toStr, coinStr, feeStr string) string
- func QueryTx(rootDir, Node, chainID, Txhash string) string
- func QueryTxsWithTags(rootDir, Node, chainID, addr string, page, limit int) string
- func RecoverKey(rootDir, name, password, seed string) string
- func Transfer(rootDir, node, chainID, fromName, password, toStr, coinStr, feeStr, ... string) string
- func TransferB4send(rootDir, node, chainID, fromName, password, toStr, coinStr, feeStr string) string
- func UnbondingDelegation(...) string
- func UpdateKey(rootDir, name, oldpass, newpass string) string
- func WalletAddressCheck(addr string) string
- func WithdrawDelegationReward(...) string
- func WithdrawDelegatorAllRewards(...) string
- type Delrewards
- type KeyOutput
- type SeedOutput
- type UpdateKeyOutput
- type ValidPlus
Constants ¶
const (
DenomName = "uatom"
)
keybase is used to make GetKeyBase a singleton var keybase crkeys.Keybase
Variables ¶
This section is empty.
Functions ¶
func BroadcastTransferTx ¶
broadcast the tx
func CreateAccount ¶
func CreateSeedWithMulLangs ¶
func Delegate ¶
func Delegate(rootDir, node, chainID, delegatorName, password, delegatorAddr, validatorAddr, delegationCoinStr, feeStr, broadcastMode string) string
do Delegate operation
func GetAccount ¶
get account from /auth/accounts/{address}
func GetAllDelegations ¶
get all delegations from the delegator
func GetAllUnbondingDelegations ¶
get all unbonding delegations from a specific delegator
func GetAllValidators ¶
get all the validators
func GetBondValidators ¶
Get bonded validators
func GetDelegationRewards ¶
get a delegation reward between delegator and validator
func GetDelegationShares ¶
get the delegation share under a specific validator
func GetDelegtorRewardsShares ¶
get all the delegation awards list including delegation ties
func GetValSelfBondShares ¶
get validator self bond shares
func LocalGenTx ¶
func QueryTxsWithTags ¶
QueryTxsWithTags for query txs with tags for event parsing:Search for paginated transactions that match a set of tags
func RecoverKey ¶
for recover key with name, password and seed input
func Transfer ¶
func Transfer(rootDir, node, chainID, fromName, password, toStr, coinStr, feeStr, broadcastMode string) string
complete the whole process with following sequence {Send coins (build -> sign -> send)}
func TransferB4send ¶
func TransferB4send(rootDir, node, chainID, fromName, password, toStr, coinStr, feeStr string) string
Only partial process with following sequence {Send coins (build -> sign -> Not send)}
func UnbondingDelegation ¶
func UnbondingDelegation(rootDir, node, chainID, delegatorName, password, delegatorAddr, validatorAddr, Ubdshares, feeStr, broadcastMode string) string
for unbond some of delegation shares from specific validator
func WalletAddressCheck ¶
To differentiate the addresses from various wallets, e.g. cosmos,ETH,qos, .etc
func WithdrawDelegationReward ¶
func WithdrawDelegationReward(rootDir, node, chainID, delegatorName, password, delegatorAddr, validatorAddr, feeStr, broadcastMode string) string
Withdraw rewards from a specific validator
Types ¶
type Delrewards ¶
type Delrewards struct { RewardsCoins sdk.DecCoins `json:"rewards_coins"` ValidatorAddr sdk.ValAddress `json:"validator_addr"` }
rewardcoins type sdk.Coins
type SeedOutput ¶
type SeedOutput struct {
Seed string `json:"seed"`
}
type UpdateKeyOutput ¶
type UpdateKeyOutput struct {
PasswordUpdate string `json:"pass_update"`
}