Documentation
¶
Index ¶
- func AllWalletAccounts(mctx libkb.MetaContext) ([]stellar1.WalletAccountLocal, error)
- func DeleteAccount(m libkb.MetaContext, accountID stellar1.AccountID) error
- func ExportSecretKey(mctx libkb.MetaContext, accountID stellar1.AccountID) (res stellar1.SecretKey, err error)
- func FormatAmount(mctx libkb.MetaContext, amount string, precisionTwo bool, ...) (string, error)
- func HasAcceptedDisclaimer(ctx context.Context, g *libkb.GlobalContext) (bool, error)
- type CreateWalletGatedResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllWalletAccounts ¶
func AllWalletAccounts(mctx libkb.MetaContext) ([]stellar1.WalletAccountLocal, error)
AllWalletAccounts lists the accounts in the user's bundle, with one balance read from the server per account.
func DeleteAccount ¶
func DeleteAccount(m libkb.MetaContext, accountID stellar1.AccountID) error
DeleteAccount removes a non-primary account from the user's bundle.
func ExportSecretKey ¶
func ExportSecretKey(mctx libkb.MetaContext, accountID stellar1.AccountID) (res stellar1.SecretKey, err error)
ExportSecretKey returns the secret key of an account in the user's bundle.
func FormatAmount ¶
func FormatAmount(mctx libkb.MetaContext, amount string, precisionTwo bool, rounding stellarnet.FmtRoundingBehavior) (string, error)
func HasAcceptedDisclaimer ¶
Types ¶
type CreateWalletGatedResult ¶
type CreateWalletGatedResult struct {
HasWallet bool // whether the user has a wallet on the server
AcceptedDisclaimer bool // whether the user has accepted the disclaimer
}
func CreateWalletGated ¶
func CreateWalletGated(mctx libkb.MetaContext) (res CreateWalletGatedResult, err error)
CreateWalletGated asks the server about the user's wallet. The client no longer creates wallets, so this never does.
Directories
¶
| Path | Synopsis |
|---|---|
|
this file is for the implementation of the frontend-requested service endpoints for wallets.
|
this file is for the implementation of the frontend-requested service endpoints for wallets. |