Versions in this module Expand all Collapse all v0 v0.18.3 May 31, 2024 Changes in this version + const Collapse1d + const Collapse1h + const Collapse1m + const Collapse1w + const OpTypeActivation + const OpTypeAirdrop + const OpTypeBake + const OpTypeBallot + const OpTypeBatch + const OpTypeBonus + const OpTypeDelegation + const OpTypeDeposit + const OpTypeDepositsLimit + const OpTypeDoubleBaking + const OpTypeDoubleEndorsement + const OpTypeDoublePreendorsement + const OpTypeDrainDelegate + const OpTypeEndorsement + const OpTypeIncreasePaidStorage + const OpTypeInvalid + const OpTypeInvoice + const OpTypeMigration + const OpTypeNonceRevelation + const OpTypeOrigination + const OpTypePreendorsement + const OpTypeProposal + const OpTypeRegisterConstant + const OpTypeReveal + const OpTypeReward + const OpTypeRollupOrigination + const OpTypeRollupTransaction + const OpTypeSeedSlash + const OpTypeSubsidy + const OpTypeTransaction + const OpTypeTransferTicket + const OpTypeUnfreeze + const OpTypeUpdateConsensusKey + const OpTypeVdfRevelation + var DefaultClient = NewClient("https://api.tzpro.io", nil) + var ErrorStatus = client.ErrorStatus + var IsErrApi = client.IsErrApi + var IsErrHttp = client.IsErrHttp + var IsErrRateLimited = client.IsErrRateLimited + var NewAddress = tezos.MustParseAddress + var NewPoolAddres = defi.MustParsePoolAddress + var NewQuery = client.NewQuery + var NewToken = tezos.MustParseToken + var NoQuery = NewQuery() + var ParseAddress = tezos.ParseAddress + var ParsePoolAddress = defi.ParsePoolAddress + var SdkVersion = "0.17.1" + type Address = tezos.Address + type AddressType = tezos.AddressType + type Client struct + Account index.AccountAPI + Baker index.BakerAPI + Block index.BlockAPI + Contract index.ContractAPI + Dex defi.DexAPI + Domain identity.DomainAPI + Explorer index.ExplorerAPI + Farm defi.FarmAPI + Ipfs ipfs.IpfsAPI + Lend defi.LendingAPI + Market market.MarketAPI + Metadata index.MetadataAPI + Nft nft.NftAPI + Op index.OpAPI + Profile identity.ProfileAPI + Stats index.StatsAPI + Token token.TokenAPI + Wallet wallet.WalletAPI + func NewClient(url string, httpClient *http.Client) *Client + func (s *Client) UseScriptCache(cache *lru.TwoQueueCache[Address, any]) + func (s *Client) WithApiKey(key string) *Client + func (s *Client) WithCacheSize(sz int) *Client + func (s *Client) WithHeader(key, value string) *Client + func (s *Client) WithIpfsUrl(url string) *Client + func (s *Client) WithLogger(log log.Logger) *Client + func (s *Client) WithMarketUrl(url string) *Client + func (s *Client) WithRetry(num int, delay time.Duration) *Client + func (s *Client) WithTLS(tc *tls.Config) *Client + func (s *Client) WithTimeout(d time.Duration) *Client + func (s *Client) WithUserAgent(agent string) *Client + func (s Client) CacheAdd(key Address, val any) + func (s Client) CacheGet(key Address) (any, bool) + func (s Client) Retries() int + func (s Client) RetryDelay() time.Duration + type ErrApi = client.ErrApi + type ErrHttp = client.ErrHttp + type ErrRateLimited = client.ErrRateLimited + type FillMode = client.FillMode + const FillModeInvalid + const FillModeLast + const FillModeLinear + const FillModeNone + const FillModeNull + const FillModeZero + type FilterMode = client.FilterMode + const FilterModeEqual + const FilterModeGt + const FilterModeGte + const FilterModeIn + const FilterModeLt + const FilterModeLte + const FilterModeNotEqual + const FilterModeNotIn + const FilterModeRange + const FilterModeRegexp + type FormatType = client.FormatType + const FormatCSV + const FormatJSON + type Key = tezos.Key + type OrderType = client.OrderType + const OrderAsc + const OrderDesc + type PoolAddress = defi.PoolAddress + type Query = client.Query + func And(key string) Query + func Arg(key string, val ...any) Query + func Asc() Query + func Desc() Query + func Equal(key string, val any) Query + func Filter(key string, mode FilterMode, val ...any) Query + func Gt(key string, val any) Query + func Gte(key string, val any) Query + func In(key string, val ...any) Query + func Lt(key string, val any) Query + func Lte(key string, val any) Query + func Not(key string) Query + func NotEqual(key string, val any) Query + func NotIn(key string, val ...any) Query + func Range(key string, from, to any) Query + func Regexp(key string, re string) Query + func WithCursor(v uint64) Query + func WithFrom(t time.Time) Query + func WithLimit(v uint) Query + func WithMerge() Query + func WithMeta() Query + func WithOffset(v uint) Query + func WithOrder(o OrderType) Query + func WithPrim() Query + func WithRights() Query + func WithStorage() Query + func WithTags(t ...string) Query + func WithTimeRange(from, to time.Time) Query + func WithTo(t time.Time) Query + func WithUnpack() Query + type Token = tezos.Token + type Z = tezos.Z