Documentation
¶
Index ¶
- func Balances(ctx context.Context, g *libkb.GlobalContext, accountID stellar1.AccountID) ([]stellar1.Balance, error)
- func FetchAccountBundle(mctx libkb.MetaContext, accountID stellar1.AccountID) (bundle *stellar1.Bundle, err error)
- func FetchSecretlessBundle(mctx libkb.MetaContext) (bundle *stellar1.Bundle, err error)
- func GetAcceptedDisclaimer(ctx context.Context, g *libkb.GlobalContext) (ret bool, err error)
- func Post(mctx libkb.MetaContext, clearBundle stellar1.Bundle) (err error)
- type ShouldCreateResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FetchAccountBundle ¶
func FetchAccountBundle(mctx libkb.MetaContext, accountID stellar1.AccountID) (bundle *stellar1.Bundle, err error)
FetchAccountBundle gets a bundle from the server with all of the accounts in it, but it will only have the secrets for the specified accountID. This method will bubble up an error if it's called by a Desktop device for an account that is mobile only. If you don't need the secrets, use FetchSecretlessBundle instead.
func FetchSecretlessBundle ¶
func FetchSecretlessBundle(mctx libkb.MetaContext) (bundle *stellar1.Bundle, err error)
FetchSecretlessBundle gets an account bundle from the server and decrypts it but without any specified AccountID and therefore no secrets (signers). This method is safe to be called by any of a user's devices even if one or more of the accounts is marked as mobile only.
func GetAcceptedDisclaimer ¶
Types ¶
type ShouldCreateResult ¶
type ShouldCreateResult struct {
ShouldCreate bool `json:"shouldcreate"`
HasWallet bool `json:"haswallet"`
AcceptedDisclaimer bool `json:"accepteddisclaimer"`
}
func ShouldCreate ¶
func ShouldCreate(ctx context.Context, g *libkb.GlobalContext) (res ShouldCreateResult, err error)
ShouldCreate asks the server whether to create this user's initial wallet.