Documentation ¶
Index ¶
- type APIAccount
- type APIAccountBalance
- type APIBlock
- type APIPending
- type APIRepresentative
- type APISendBlockPara
- type APITokenMeta
- type AccountApi
- func (a *AccountApi) Create(seedStr string, i *uint32) (map[string]string, error)
- func (a *AccountApi) ForPublicKey(pubStr string) (types.Address, error)
- func (a *AccountApi) NewSeed() (string, error)
- func (a *AccountApi) PublicKey(addr types.Address) string
- func (a *AccountApi) Validate(addr string) bool
- type ApiTokenInfo
- type ContractApi
- type LedgerApi
- func (l *LedgerApi) AccountBlocksCount(addr types.Address) (int64, error)
- func (l *LedgerApi) AccountHistoryTopn(address types.Address, count int, offset *int) ([]*APIBlock, error)
- func (l *LedgerApi) AccountInfo(address types.Address) (*APIAccount, error)
- func (l *LedgerApi) AccountRepresentative(addr types.Address) (types.Address, error)
- func (l *LedgerApi) AccountVotingWeight(addr types.Address) (types.Balance, error)
- func (l *LedgerApi) Accounts(count int, offset *int) ([]*types.Address, error)
- func (l *LedgerApi) AccountsBalance(addresses []types.Address) (map[types.Address]map[string]map[string]types.Balance, error)
- func (l *LedgerApi) AccountsCount() (uint64, error)
- func (l *LedgerApi) AccountsFrontiers(addresses []types.Address) (map[types.Address]map[string]types.Hash, error)
- func (l *LedgerApi) AccountsPending(addresses []types.Address, n int) (map[types.Address][]*APIPending, error)
- func (l *LedgerApi) BlockAccount(hash types.Hash) (types.Address, error)
- func (l *LedgerApi) BlockHash(block types.StateBlock) types.Hash
- func (l *LedgerApi) Blocks(count int, offset *int) ([]*APIBlock, error)
- func (l *LedgerApi) BlocksCount() (map[string]uint64, error)
- func (l *LedgerApi) BlocksCount2() (map[string]uint64, error)
- func (l *LedgerApi) BlocksCountByType() (map[string]uint64, error)
- func (l *LedgerApi) BlocksInfo(hash []types.Hash) ([]*APIBlock, error)
- func (l *LedgerApi) Chain(hash types.Hash, n int) ([]types.Hash, error)
- func (l *LedgerApi) Delegators(hash types.Address) ([]*APIAccountBalance, error)
- func (l *LedgerApi) DelegatorsCount(hash types.Address) (int64, error)
- func (l *LedgerApi) GenerateChangeBlock(account types.Address, representative types.Address, prkStr *string) (*types.StateBlock, error)
- func (l *LedgerApi) GenerateReceiveBlock(sendBlock *types.StateBlock, prkStr *string) (*types.StateBlock, error)
- func (l *LedgerApi) GenerateSendBlock(para *APISendBlockPara, prkStr *string) (*types.StateBlock, error)
- func (l *LedgerApi) Pendings() ([]*APIPending, error)
- func (l *LedgerApi) Performance() ([]*types.PerformanceTime, error)
- func (l *LedgerApi) Process(block *types.StateBlock) (types.Hash, error)
- func (l *LedgerApi) Representatives(sorting *bool) ([]*APIRepresentative, error)
- func (l *LedgerApi) TokenInfoById(tokenId types.Hash) (*ApiTokenInfo, error)
- func (l *LedgerApi) TokenInfoByName(tokenName string) (*ApiTokenInfo, error)
- func (l *LedgerApi) Tokens() ([]*types.TokenInfo, error)
- func (l *LedgerApi) TransactionsCount() (map[string]uint64, error)
- type MintageApi
- func (m *MintageApi) GetMintageBlock(param *MintageParams) (*types.StateBlock, error)
- func (m *MintageApi) GetMintageData(param *MintageParams) ([]byte, error)
- func (m *MintageApi) GetRewardBlock(input *types.StateBlock) (*types.StateBlock, error)
- func (m *MintageApi) GetWithdrawMintageBlock(param *WithdrawParams) (*types.StateBlock, error)
- func (m *MintageApi) GetWithdrawMintageData(tokenId types.Hash) ([]byte, error)
- func (m *MintageApi) GetWithdrawRewardBlock(input *types.StateBlock) (*types.StateBlock, error)
- type MintageParams
- type NEP5PledgeApi
- func (p *NEP5PledgeApi) GetAllPledgeInfo() ([]*NEP5PledgeInfo, error)
- func (p *NEP5PledgeApi) GetBeneficialPledgeInfos(beneficial types.Address, pType string) (*PledgeInfos, error)
- func (p *NEP5PledgeApi) GetBeneficialPledgeInfosByAddress(beneficial types.Address) *PledgeInfos
- func (p *NEP5PledgeApi) GetPledgeBeneficialAmount(beneficial types.Address, pType string) (*big.Int, error)
- func (p *NEP5PledgeApi) GetPledgeBeneficialTotalAmount(addr types.Address) (*big.Int, error)
- func (p *NEP5PledgeApi) GetPledgeBlock(param *PledgeParam) (*types.StateBlock, error)
- func (p *NEP5PledgeApi) GetPledgeData(param *PledgeParam) ([]byte, error)
- func (p *NEP5PledgeApi) GetPledgeInfo(param *WithdrawPledgeParam) ([]*NEP5PledgeInfo, error)
- func (p *NEP5PledgeApi) GetPledgeInfoWithNEP5TxId(param *WithdrawPledgeParam) (*NEP5PledgeInfo, error)
- func (p *NEP5PledgeApi) GetPledgeInfoWithTimeExpired(param *WithdrawPledgeParam) ([]*NEP5PledgeInfo, error)
- func (p *NEP5PledgeApi) GetPledgeInfosByPledgeAddress(addr types.Address) *PledgeInfos
- func (p *NEP5PledgeApi) GetPledgeRewardBlock(input *types.StateBlock) (*types.StateBlock, error)
- func (p *NEP5PledgeApi) GetTotalPledgeAmount() (*big.Int, error)
- func (p *NEP5PledgeApi) GetWithdrawPledgeBlock(param *WithdrawPledgeParam) (*types.StateBlock, error)
- func (p *NEP5PledgeApi) GetWithdrawPledgeData(param *WithdrawPledgeParam) ([]byte, error)
- func (p *NEP5PledgeApi) GetWithdrawRewardBlock(input *types.StateBlock) (*types.StateBlock, error)
- type NEP5PledgeInfo
- type NetApi
- type PeersInfo
- type PledgeInfos
- type PledgeParam
- type QlcApi
- func (q *QlcApi) AccountHistoryTopn(address types.Address, n int) ([]*APIBlock, error)
- func (q *QlcApi) AccountInfo(addr types.Address) (*types.AccountMeta, error)
- func (q *QlcApi) AccountsBalances(addresses []types.Address) (map[types.Address]map[types.Hash][]types.Balance, error)
- func (q *QlcApi) AccountsFrontiers(addresses []types.Address) (map[types.Address]map[types.Hash]types.Hash, error)
- func (q *QlcApi) AccountsPending(addresses []types.Address, n int) (map[types.Address][]*TokenPending, error)
- func (q *QlcApi) BlocksInfo(hash []types.Hash) ([]*APIBlock, error)
- func (q *QlcApi) GetOnlineRepresentatives() []types.Address
- func (q *QlcApi) Process(block *types.StateBlock) (types.Hash, error)
- func (q *QlcApi) ValidateAccount(addr string) bool
- type RewardsApi
- func (r *RewardsApi) GetConfidantRewards(confidant types.Address) (map[string]*big.Int, error)
- func (r *RewardsApi) GetConfidantRewordsDetail(confidant types.Address) (map[string][]*cabi.RewardsInfo, error)
- func (r *RewardsApi) GetReceiveRewardBlock(send *types.Hash) (*types.StateBlock, error)
- func (r *RewardsApi) GetRewardsDetail(txId string) ([]*cabi.RewardsInfo, error)
- func (r *RewardsApi) GetSendConfidantBlock(param *RewardsParam, sign *types.Signature) (*types.StateBlock, error)
- func (r *RewardsApi) GetSendRewardBlock(param *RewardsParam, sign *types.Signature) (*types.StateBlock, error)
- func (r *RewardsApi) GetTotalRewards(txId string) (*big.Int, error)
- func (r *RewardsApi) GetUnsignedConfidantData(param *RewardsParam) (types.Hash, error)
- func (r *RewardsApi) GetUnsignedRewardData(param *RewardsParam) (types.Hash, error)
- func (r *RewardsApi) IsAirdropRewards(data []byte) bool
- type RewardsParam
- type SMSApi
- func (s *SMSApi) MessageBlocks(hash types.Hash) ([]*APIBlock, error)
- func (s *SMSApi) MessageHash(message string) (types.Hash, error)
- func (s *SMSApi) MessageInfo(mHash types.Hash) (string, error)
- func (s *SMSApi) MessageStore(message string) (types.Hash, error)
- func (s *SMSApi) PhoneBlocks(sender string) (map[string][]*APIBlock, error)
- type TokenPending
- type UtilApi
- func (u *UtilApi) BalanceToRaw(balance types.Balance, unit string, tokenName *string) (types.Balance, error)
- func (u *UtilApi) Decrypt(cryptograph string, passphrase string) (string, error)
- func (u *UtilApi) Encrypt(raw string, passphrase string) (string, error)
- func (u *UtilApi) RawToBalance(balance types.Balance, unit string, tokenName *string) (types.Balance, error)
- type WalletApi
- func (w *WalletApi) ChangePassword(addr types.Address, pwd string, newPwd string) error
- func (w *WalletApi) GetBalances(address types.Address, passphrase string) (map[string]types.Balance, error)
- func (w *WalletApi) GetRawKey(address types.Address, passphrase string) (map[string]string, error)
- func (w *WalletApi) List() ([]types.Address, error)
- func (w *WalletApi) NewSeed() (string, error)
- func (w *WalletApi) NewWallet(passphrase string, seed *string) (types.Address, error)
- func (w *WalletApi) Remove(addr types.Address) error
- type WithdrawParams
- type WithdrawPledgeParam
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIAccount ¶ added in v0.0.5
type APIAccount struct { Address types.Address `json:"account"` CoinBalance *types.Balance `json:"coinBalance,omitempty"` CoinVote *types.Balance `json:"vote,omitempty"` CoinNetwork *types.Balance `json:"network,omitempty"` CoinStorage *types.Balance `json:"storage,omitempty"` CoinOracle *types.Balance `json:"oracle,omitempty"` Representative *types.Address `json:"representative,omitempty"` Tokens []*APITokenMeta `json:"tokens"` }
type APIAccountBalance ¶ added in v0.0.9
type APIPending ¶ added in v0.0.5
type APIPending struct { *types.PendingKey *types.PendingInfo TokenName string `json:"tokenName"` Timestamp int64 `json:"timestamp"` }
type APIRepresentative ¶ added in v0.0.5
type APISendBlockPara ¶ added in v0.0.5
type APITokenMeta ¶ added in v0.0.5
type AccountApi ¶ added in v0.0.5
type AccountApi struct {
// contains filtered or unexported fields
}
func NewAccountApi ¶ added in v0.0.5
func NewAccountApi() *AccountApi
func (*AccountApi) ForPublicKey ¶ added in v0.0.5
func (a *AccountApi) ForPublicKey(pubStr string) (types.Address, error)
func (*AccountApi) NewSeed ¶ added in v1.1.0
func (a *AccountApi) NewSeed() (string, error)
func (*AccountApi) PublicKey ¶ added in v0.0.5
func (a *AccountApi) PublicKey(addr types.Address) string
func (*AccountApi) Validate ¶ added in v0.0.5
func (a *AccountApi) Validate(addr string) bool
type ApiTokenInfo ¶ added in v0.0.9
type ContractApi ¶ added in v0.0.9
type ContractApi struct {
// contains filtered or unexported fields
}
func NewContractApi ¶ added in v0.0.9
func NewContractApi(ledger *ledger.Ledger) *ContractApi
func (*ContractApi) ContractAddressList ¶ added in v1.2.0
func (c *ContractApi) ContractAddressList() []types.Address
func (*ContractApi) PackContractData ¶ added in v0.0.9
type LedgerApi ¶ added in v0.0.5
type LedgerApi struct {
// contains filtered or unexported fields
}
func NewLedgerApi ¶ added in v0.0.5
func (*LedgerApi) AccountBlocksCount ¶ added in v0.0.5
func (*LedgerApi) AccountHistoryTopn ¶ added in v0.0.5
func (l *LedgerApi) AccountHistoryTopn(address types.Address, count int, offset *int) ([]*APIBlock, error)
AccountHistoryTopn returns blocks of the account, blocks count of each token in the account up to n
func (*LedgerApi) AccountInfo ¶ added in v0.0.5
func (l *LedgerApi) AccountInfo(address types.Address) (*APIAccount, error)
func (*LedgerApi) AccountRepresentative ¶ added in v0.0.5
func (*LedgerApi) AccountVotingWeight ¶ added in v0.0.5
func (*LedgerApi) AccountsBalance ¶ added in v0.0.9
func (*LedgerApi) AccountsCount ¶ added in v0.0.5
func (*LedgerApi) AccountsFrontiers ¶ added in v0.0.5
func (*LedgerApi) AccountsPending ¶ added in v0.0.5
func (*LedgerApi) BlockAccount ¶ added in v0.0.5
func (*LedgerApi) BlockHash ¶ added in v0.0.5
func (l *LedgerApi) BlockHash(block types.StateBlock) types.Hash
func (*LedgerApi) BlocksCount ¶ added in v0.0.5
BlocksCount returns the number of blocks (include smartcontrant block) in the ctx and unchecked synchronizing blocks
func (*LedgerApi) BlocksCount2 ¶ added in v1.1.1
func (*LedgerApi) BlocksCountByType ¶ added in v0.0.5
BlocksCountByType reports the number of blocks in the ctx by type (send, receive, open, change)
func (*LedgerApi) BlocksInfo ¶ added in v0.0.5
func (*LedgerApi) Chain ¶ added in v0.0.5
Chain returns a consecutive list of block hashes in the account chain starting at block up to count
func (*LedgerApi) Delegators ¶ added in v0.0.5
func (l *LedgerApi) Delegators(hash types.Address) ([]*APIAccountBalance, error)
Delegators returns a list of pairs of delegator names given account a representative and its balance
func (*LedgerApi) DelegatorsCount ¶ added in v0.0.5
DelegatorsCount gets number of delegators for a specific representative account
func (*LedgerApi) GenerateChangeBlock ¶ added in v0.0.5
func (*LedgerApi) GenerateReceiveBlock ¶ added in v0.0.5
func (l *LedgerApi) GenerateReceiveBlock(sendBlock *types.StateBlock, prkStr *string) (*types.StateBlock, error)
func (*LedgerApi) GenerateSendBlock ¶ added in v0.0.5
func (l *LedgerApi) GenerateSendBlock(para *APISendBlockPara, prkStr *string) (*types.StateBlock, error)
func (*LedgerApi) Pendings ¶ added in v1.1.0
func (l *LedgerApi) Pendings() ([]*APIPending, error)
func (*LedgerApi) Performance ¶ added in v0.0.9
func (l *LedgerApi) Performance() ([]*types.PerformanceTime, error)
func (*LedgerApi) Representatives ¶ added in v0.0.5
func (l *LedgerApi) Representatives(sorting *bool) ([]*APIRepresentative, error)
Representatives returns a list of pairs of representative and its voting weight
func (*LedgerApi) TokenInfoById ¶ added in v1.0.0
func (l *LedgerApi) TokenInfoById(tokenId types.Hash) (*ApiTokenInfo, error)
func (*LedgerApi) TokenInfoByName ¶ added in v1.0.0
func (l *LedgerApi) TokenInfoByName(tokenName string) (*ApiTokenInfo, error)
type MintageApi ¶ added in v0.0.9
type MintageApi struct {
// contains filtered or unexported fields
}
func NewMintageApi ¶ added in v0.0.9
func NewMintageApi(ledger *ledger.Ledger) *MintageApi
func (*MintageApi) GetMintageBlock ¶ added in v0.0.9
func (m *MintageApi) GetMintageBlock(param *MintageParams) (*types.StateBlock, error)
func (*MintageApi) GetMintageData ¶ added in v0.0.9
func (m *MintageApi) GetMintageData(param *MintageParams) ([]byte, error)
func (*MintageApi) GetRewardBlock ¶ added in v0.0.9
func (m *MintageApi) GetRewardBlock(input *types.StateBlock) (*types.StateBlock, error)
func (*MintageApi) GetWithdrawMintageBlock ¶ added in v1.1.0
func (m *MintageApi) GetWithdrawMintageBlock(param *WithdrawParams) (*types.StateBlock, error)
func (*MintageApi) GetWithdrawMintageData ¶ added in v0.0.9
func (m *MintageApi) GetWithdrawMintageData(tokenId types.Hash) ([]byte, error)
func (*MintageApi) GetWithdrawRewardBlock ¶ added in v1.1.0
func (m *MintageApi) GetWithdrawRewardBlock(input *types.StateBlock) (*types.StateBlock, error)
type MintageParams ¶ added in v0.0.9
type MintageParams struct { SelfAddr types.Address `json:"selfAddr"` PrevHash types.Hash `json:"prevHash"` TokenName string `json:"tokenName"` TokenSymbol string `json:"tokenSymbol"` TotalSupply string `json:"totalSupply"` Decimals uint8 `json:"decimals"` Beneficial types.Address `json:"beneficial"` NEP5TxId string `json:"nep5TxId"` }
type NEP5PledgeApi ¶ added in v1.1.0
type NEP5PledgeApi struct {
// contains filtered or unexported fields
}
func NewNEP5PledgeApi ¶ added in v1.1.0
func NewNEP5PledgeApi(ledger *ledger.Ledger) *NEP5PledgeApi
func (*NEP5PledgeApi) GetAllPledgeInfo ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetAllPledgeInfo() ([]*NEP5PledgeInfo, error)
search all pledge info
func (*NEP5PledgeApi) GetBeneficialPledgeInfos ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetBeneficialPledgeInfos(beneficial types.Address, pType string) (*PledgeInfos, error)
get pledge info by beneficial,pType ,return PledgeInfos
func (*NEP5PledgeApi) GetBeneficialPledgeInfosByAddress ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetBeneficialPledgeInfosByAddress(beneficial types.Address) *PledgeInfos
get pledge info by beneficial,pType ,return PledgeInfos
func (*NEP5PledgeApi) GetPledgeBeneficialAmount ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetPledgeBeneficialAmount(beneficial types.Address, pType string) (*big.Int, error)
search pledge info by beneficial address,pType,return total amount
func (*NEP5PledgeApi) GetPledgeBeneficialTotalAmount ¶ added in v1.1.0
get pledge total amount by beneficial address ,return total amount
func (*NEP5PledgeApi) GetPledgeBlock ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetPledgeBlock(param *PledgeParam) (*types.StateBlock, error)
func (*NEP5PledgeApi) GetPledgeData ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetPledgeData(param *PledgeParam) ([]byte, error)
func (*NEP5PledgeApi) GetPledgeInfo ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetPledgeInfo(param *WithdrawPledgeParam) ([]*NEP5PledgeInfo, error)
search pledge info by Beneficial,amount pType
func (*NEP5PledgeApi) GetPledgeInfoWithNEP5TxId ¶ added in v1.1.2
func (p *NEP5PledgeApi) GetPledgeInfoWithNEP5TxId(param *WithdrawPledgeParam) (*NEP5PledgeInfo, error)
search pledge info by nep5Txid
func (*NEP5PledgeApi) GetPledgeInfoWithTimeExpired ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetPledgeInfoWithTimeExpired(param *WithdrawPledgeParam) ([]*NEP5PledgeInfo, error)
search pledge info by Beneficial,amount pType
func (*NEP5PledgeApi) GetPledgeInfosByPledgeAddress ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetPledgeInfosByPledgeAddress(addr types.Address) *PledgeInfos
get pledge info by pledge address ,return pledgeinfos
func (*NEP5PledgeApi) GetPledgeRewardBlock ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetPledgeRewardBlock(input *types.StateBlock) (*types.StateBlock, error)
func (*NEP5PledgeApi) GetTotalPledgeAmount ¶ added in v1.2.0
func (p *NEP5PledgeApi) GetTotalPledgeAmount() (*big.Int, error)
GetTotalPledgeAmount get all pledge amount
func (*NEP5PledgeApi) GetWithdrawPledgeBlock ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetWithdrawPledgeBlock(param *WithdrawPledgeParam) (*types.StateBlock, error)
func (*NEP5PledgeApi) GetWithdrawPledgeData ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetWithdrawPledgeData(param *WithdrawPledgeParam) ([]byte, error)
func (*NEP5PledgeApi) GetWithdrawRewardBlock ¶ added in v1.1.0
func (p *NEP5PledgeApi) GetWithdrawRewardBlock(input *types.StateBlock) (*types.StateBlock, error)
type NEP5PledgeInfo ¶ added in v1.1.0
type NetApi ¶ added in v0.0.5
type NetApi struct {
// contains filtered or unexported fields
}
func (*NetApi) ConnectPeersInfo ¶ added in v1.1.1
func (*NetApi) OnlineRepresentatives ¶ added in v0.0.5
type PledgeInfos ¶ added in v1.1.0
type PledgeInfos struct { PledgeInfo []*NEP5PledgeInfo TotalAmounts *big.Int }
type PledgeParam ¶ added in v1.1.0
type QlcApi ¶
type QlcApi struct {
// contains filtered or unexported fields
}
func (*QlcApi) AccountHistoryTopn ¶
func (*QlcApi) AccountInfo ¶
func (*QlcApi) AccountsBalances ¶
func (*QlcApi) AccountsFrontiers ¶
func (*QlcApi) AccountsPending ¶
func (*QlcApi) GetOnlineRepresentatives ¶
func (*QlcApi) ValidateAccount ¶
type RewardsApi ¶ added in v1.2.0
type RewardsApi struct {
// contains filtered or unexported fields
}
func NewRewardsApi ¶ added in v1.2.0
func NewRewardsApi(l *ledger.Ledger) *RewardsApi
func (*RewardsApi) GetConfidantRewards ¶ added in v1.2.0
func (*RewardsApi) GetConfidantRewordsDetail ¶ added in v1.2.1
func (r *RewardsApi) GetConfidantRewordsDetail(confidant types.Address) (map[string][]*cabi.RewardsInfo, error)
func (*RewardsApi) GetReceiveRewardBlock ¶ added in v1.2.0
func (r *RewardsApi) GetReceiveRewardBlock(send *types.Hash) (*types.StateBlock, error)
func (*RewardsApi) GetRewardsDetail ¶ added in v1.2.1
func (r *RewardsApi) GetRewardsDetail(txId string) ([]*cabi.RewardsInfo, error)
func (*RewardsApi) GetSendConfidantBlock ¶ added in v1.2.0
func (r *RewardsApi) GetSendConfidantBlock(param *RewardsParam, sign *types.Signature) (*types.StateBlock, error)
func (*RewardsApi) GetSendRewardBlock ¶ added in v1.2.0
func (r *RewardsApi) GetSendRewardBlock(param *RewardsParam, sign *types.Signature) (*types.StateBlock, error)
func (*RewardsApi) GetTotalRewards ¶ added in v1.2.0
func (r *RewardsApi) GetTotalRewards(txId string) (*big.Int, error)
func (*RewardsApi) GetUnsignedConfidantData ¶ added in v1.2.0
func (r *RewardsApi) GetUnsignedConfidantData(param *RewardsParam) (types.Hash, error)
func (*RewardsApi) GetUnsignedRewardData ¶ added in v1.2.0
func (r *RewardsApi) GetUnsignedRewardData(param *RewardsParam) (types.Hash, error)
func (*RewardsApi) IsAirdropRewards ¶ added in v1.2.0
func (r *RewardsApi) IsAirdropRewards(data []byte) bool
type RewardsParam ¶ added in v1.2.0
type SMSApi ¶ added in v0.0.9
type SMSApi struct {
// contains filtered or unexported fields
}
func (*SMSApi) MessageBlocks ¶ added in v1.0.1
func (*SMSApi) MessageHash ¶ added in v0.0.9
func (*SMSApi) MessageInfo ¶ added in v0.0.9
func (*SMSApi) MessageStore ¶ added in v0.0.9
type TokenPending ¶
type TokenPending struct { PendingInfo *types.PendingInfo `json:"pendingInfo"` TokenName string `json:"tokenName"` Hash types.Hash `json:"hash"` }
type UtilApi ¶ added in v0.0.5
type UtilApi struct {
// contains filtered or unexported fields
}
func NewUtilApi ¶ added in v0.0.5
func (*UtilApi) BalanceToRaw ¶ added in v0.0.5
type WalletApi ¶ added in v0.0.5
type WalletApi struct {
// contains filtered or unexported fields
}
func NewWalletApi ¶ added in v0.0.5
func NewWalletApi(ledger *ledger.Ledger, wallet *wallet.WalletStore) *WalletApi
func (*WalletApi) ChangePassword ¶ added in v0.0.9
func (*WalletApi) GetBalances ¶ added in v0.0.5
func (w *WalletApi) GetBalances(address types.Address, passphrase string) (map[string]types.Balance, error)
GetBalance returns balance for each token of the wallet