Versions in this module Expand all Collapse all v0 v0.0.2 Aug 26, 2022 v0.0.1 Aug 26, 2022 Changes in this version + const Endpoint + const EndpointDev + const ErrCodeAuthFailed + func UseEndpoint(endpoint string) + func ValidateToken(token string) error + type Asset struct + AssetID string + Balance decimal.Decimal + Chain *Asset + ChainID string + Change decimal.Decimal + ChangeBTC decimal.Decimal + ChangeUSD decimal.Decimal + Confirmations int + Destination string + Icon string + Name string + Price decimal.Decimal + PriceBTC decimal.Decimal + PriceUSD decimal.Decimal + Symbol string + Tag string + func ReadAsset(ctx context.Context, accessToken string, assetID string) (*Asset, error) + func ReadAssets(ctx context.Context, accessToken string) ([]*Asset, error) + func SearchAssets(ctx context.Context, symbol string, fuzzy bool) ([]*Asset, error) + type Opponent struct + Avatar string + FullName string + ID string + type PageSnapshots struct + Pagination *pagination.Pagination + Snapshots []*Snapshot + func ReadSnapshots(context context.Context, accessToken, assetID, cursor string, limit int) (*PageSnapshots, error) + type Snapshot struct + Amount decimal.Decimal + Asset *Asset + AssetID string + CreatedAt int64 + ExtraData map[string]interface{} + InsideMixin bool + Memo string + Opponent *Opponent + OpponentID string + Receiver string + Sender string + SnapshotID string + Source string + TraceID string + TransactionHash string + UserID string + func ReadSnapshot(context context.Context, accessToken, snapshotID string) (*Snapshot, error) + type Token struct + AccessToken string + ExpiresIn int64 + RefreshToken string + Scope string + TokenType string + func AuthorizeToken(ctx context.Context, clientID, clientSecret, code, verifier string) (*Token, error) + func RefreshToken(ctx context.Context, refreshToken string, transation int) (*Token, error) + type User struct + Avatar string + ID string + Language string + Name string + PhoneCode string + PhoneNumber string + func SearchWalletUser(ctx context.Context, walletID string) (*User, error) + func UserMe(ctx context.Context, accessToken string) (*User, error) Other modules containing this package github.com/fox-one/pkg