indexer

package
v1.5.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 7 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client common.Client

func MakeClient

func MakeClient(address string, apiToken string) (c *Client, err error)

MakeClient is the factory for constructing an IndexerClient for a given endpoint.

func (*Client) HealthCheck

func (c *Client) HealthCheck() *HealthCheck

func (*Client) LookupAccountByID

func (c *Client) LookupAccountByID(account string) *LookupAccountByID

func (*Client) LookupAccountTransactions

func (c *Client) LookupAccountTransactions(account string) *LookupAccountTransactions

func (*Client) LookupApplicationByID added in v1.5.0

func (c *Client) LookupApplicationByID(applicationId uint64) *LookupApplicationByID

/v2/applications/{application-id} Lookup application.

func (*Client) LookupAssetBalances

func (c *Client) LookupAssetBalances(index uint64) *LookupAssetBalances

func (*Client) LookupAssetByID

func (c *Client) LookupAssetByID(index uint64) *LookupAssetByID

func (*Client) LookupAssetTransactions

func (c *Client) LookupAssetTransactions(index uint64) *LookupAssetTransactions

func (*Client) LookupBlock

func (c *Client) LookupBlock(round uint64) *LookupBlock

func (*Client) SearchAccounts

func (c *Client) SearchAccounts() *SearchAccounts

func (*Client) SearchForApplications added in v1.5.0

func (c *Client) SearchForApplications() *SearchForApplications

/v2/applications Search for applications

func (*Client) SearchForAssets

func (c *Client) SearchForAssets() *SearchForAssets

func (*Client) SearchForTransactions

func (c *Client) SearchForTransactions() *SearchForTransactions

type HealthCheck

type HealthCheck struct {
	// contains filtered or unexported fields
}

func (*HealthCheck) Do

func (s *HealthCheck) Do(ctx context.Context, headers ...*common.Header) (healthCheck models.HealthCheckResponse, err error)

type LookupAccountByID

type LookupAccountByID struct {
	// contains filtered or unexported fields
}

func (*LookupAccountByID) Do

func (s *LookupAccountByID) Do(ctx context.Context, headers ...*common.Header) (validRound uint64, result models.Account, err error)

func (*LookupAccountByID) Round

func (s *LookupAccountByID) Round(round uint64) *LookupAccountByID

type LookupAccountTransactions

type LookupAccountTransactions struct {
	// contains filtered or unexported fields
}

func (*LookupAccountTransactions) AfterTime

func (*LookupAccountTransactions) AfterTimeString

func (s *LookupAccountTransactions) AfterTimeString(after string) *LookupAccountTransactions

func (*LookupAccountTransactions) AssetID

func (*LookupAccountTransactions) BeforeTime

func (*LookupAccountTransactions) BeforeTimeString

func (s *LookupAccountTransactions) BeforeTimeString(before string) *LookupAccountTransactions

func (*LookupAccountTransactions) CurrencyGreaterThan

func (s *LookupAccountTransactions) CurrencyGreaterThan(greaterThan uint64) *LookupAccountTransactions

func (*LookupAccountTransactions) CurrencyLessThan

func (s *LookupAccountTransactions) CurrencyLessThan(lessThan uint64) *LookupAccountTransactions

func (*LookupAccountTransactions) Do

func (s *LookupAccountTransactions) Do(ctx context.Context, headers ...*common.Header) (response models.TransactionsResponse, err error)

func (*LookupAccountTransactions) Limit

func (*LookupAccountTransactions) MaxRound

func (*LookupAccountTransactions) MinRound

func (*LookupAccountTransactions) NextToken

func (*LookupAccountTransactions) NotePrefix

func (s *LookupAccountTransactions) NotePrefix(prefix []byte) *LookupAccountTransactions

func (*LookupAccountTransactions) RekeyTo added in v1.5.0

func (*LookupAccountTransactions) Round

func (*LookupAccountTransactions) SigType

func (*LookupAccountTransactions) TXID

func (*LookupAccountTransactions) TxType

type LookupApplicationByID added in v1.5.0

type LookupApplicationByID struct {
	// contains filtered or unexported fields
}

LookupApplicationByID /v2/applications/{application-id} Lookup application.

func (*LookupApplicationByID) Do added in v1.5.0

func (s *LookupApplicationByID) Do(ctx context.Context,
	headers ...*common.Header) (response models.ApplicationResponse, err error)

Do performs HTTP request

type LookupAssetBalances

type LookupAssetBalances struct {
	// contains filtered or unexported fields
}

LookupAssetBalances is used to lookup asset balances

func (*LookupAssetBalances) CurrencyGreaterThan

func (s *LookupAssetBalances) CurrencyGreaterThan(greaterThan uint64) *LookupAssetBalances

func (*LookupAssetBalances) CurrencyLessThan

func (s *LookupAssetBalances) CurrencyLessThan(lessThan uint64) *LookupAssetBalances

func (*LookupAssetBalances) Do

func (s *LookupAssetBalances) Do(ctx context.Context, headers ...*common.Header) (response models.AssetBalancesResponse, err error)

func (*LookupAssetBalances) Limit

func (*LookupAssetBalances) NextToken

func (s *LookupAssetBalances) NextToken(nextToken string) *LookupAssetBalances

func (*LookupAssetBalances) Round

type LookupAssetByID

type LookupAssetByID struct {
	// contains filtered or unexported fields
}

func (*LookupAssetByID) Do

func (s *LookupAssetByID) Do(ctx context.Context, headers ...*common.Header) (validRound uint64, result models.Asset, err error)

type LookupAssetTransactions

type LookupAssetTransactions struct {
	// contains filtered or unexported fields
}

func (*LookupAssetTransactions) Address

func (*LookupAssetTransactions) AddressRole

func (*LookupAssetTransactions) AddressString

func (s *LookupAssetTransactions) AddressString(address string) *LookupAssetTransactions

func (*LookupAssetTransactions) AfterTime

func (*LookupAssetTransactions) AfterTimeString

func (s *LookupAssetTransactions) AfterTimeString(after string) *LookupAssetTransactions

func (*LookupAssetTransactions) BeforeTime

func (*LookupAssetTransactions) BeforeTimeString

func (s *LookupAssetTransactions) BeforeTimeString(before string) *LookupAssetTransactions

func (*LookupAssetTransactions) CurrencyGreaterThan

func (s *LookupAssetTransactions) CurrencyGreaterThan(greaterThan uint64) *LookupAssetTransactions

func (*LookupAssetTransactions) CurrencyLessThan

func (s *LookupAssetTransactions) CurrencyLessThan(lessThan uint64) *LookupAssetTransactions

func (*LookupAssetTransactions) Do

func (s *LookupAssetTransactions) Do(ctx context.Context, headers ...*common.Header) (response models.TransactionsResponse, err error)

func (*LookupAssetTransactions) ExcludeCloseTo

func (s *LookupAssetTransactions) ExcludeCloseTo(exclude bool) *LookupAssetTransactions

func (*LookupAssetTransactions) Limit

func (*LookupAssetTransactions) MaxRound

func (*LookupAssetTransactions) MinRound

func (*LookupAssetTransactions) NextToken

func (s *LookupAssetTransactions) NextToken(nextToken string) *LookupAssetTransactions

func (*LookupAssetTransactions) NotePrefix

func (s *LookupAssetTransactions) NotePrefix(prefix []byte) *LookupAssetTransactions

func (*LookupAssetTransactions) RekeyTo added in v1.5.0

func (*LookupAssetTransactions) Round

func (*LookupAssetTransactions) SigType

func (*LookupAssetTransactions) TXID

func (*LookupAssetTransactions) TxType

type LookupBlock

type LookupBlock struct {
	// contains filtered or unexported fields
}

func (*LookupBlock) Do

func (s *LookupBlock) Do(ctx context.Context, headers ...*common.Header) (block models.Block, err error)

type MakeHealthCheck added in v1.5.0

type MakeHealthCheck struct {
	// contains filtered or unexported fields
}

*

  • /health *

func (*MakeHealthCheck) Do added in v1.5.0

func (s *MakeHealthCheck) Do(ctx context.Context,
	headers ...*common.Header) (response models.HealthCheckResponse, err error)

type SearchAccounts

type SearchAccounts struct {
	// contains filtered or unexported fields
}

func (*SearchAccounts) AfterAddress

func (s *SearchAccounts) AfterAddress(after string) *SearchAccounts

func (*SearchAccounts) ApplicationId added in v1.5.0

func (s *SearchAccounts) ApplicationId(applicationId uint64) *SearchAccounts

ApplicationId application ID

func (*SearchAccounts) AssetID

func (s *SearchAccounts) AssetID(assetID uint64) *SearchAccounts

func (*SearchAccounts) AuthAddress added in v1.5.0

func (s *SearchAccounts) AuthAddress(authAddr string) *SearchAccounts

func (*SearchAccounts) CurrencyGreaterThan

func (s *SearchAccounts) CurrencyGreaterThan(greaterThan uint64) *SearchAccounts

CurrencyGreaterThan results should have an amount greater than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used.

func (*SearchAccounts) CurrencyLessThan

func (s *SearchAccounts) CurrencyLessThan(lessThan uint64) *SearchAccounts

CurrencyLessThan results should have an amount less than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used.

func (*SearchAccounts) Do

func (s *SearchAccounts) Do(ctx context.Context, headers ...*common.Header) (response models.AccountsResponse, err error)

func (*SearchAccounts) Limit

func (s *SearchAccounts) Limit(limit uint64) *SearchAccounts

Limit maximum number of results to return.

func (*SearchAccounts) NextToken

func (s *SearchAccounts) NextToken(nextToken string) *SearchAccounts

NextToken the next page of results. Use the next token provided by the previous results.

func (*SearchAccounts) Round

func (s *SearchAccounts) Round(round uint64) *SearchAccounts

type SearchForApplications added in v1.5.0

type SearchForApplications struct {
	// contains filtered or unexported fields
}

SearchForApplications /v2/applications Search for applications

func (*SearchForApplications) ApplicationId added in v1.5.0

func (s *SearchForApplications) ApplicationId(applicationId uint64) *SearchForApplications

ApplicationId application ID

func (*SearchForApplications) Do added in v1.5.0

func (s *SearchForApplications) Do(ctx context.Context,
	headers ...*common.Header) (response models.ApplicationsResponse, err error)

Do performs HTTP request

func (*SearchForApplications) Limit added in v1.5.0

Limit maximum number of results to return.

func (*SearchForApplications) Next added in v1.5.0

Next the next page of results. Use the next token provided by the previous results.

type SearchForAssets

type SearchForAssets struct {
	// contains filtered or unexported fields
}

SearchForAssets /v2/assets Search for assets.

func (*SearchForAssets) AssetID

func (s *SearchForAssets) AssetID(id uint64) *SearchForAssets

AssetID asset ID

func (*SearchForAssets) Creator

func (s *SearchForAssets) Creator(creator string) *SearchForAssets

Creator filter just assets with the given creator address.

func (*SearchForAssets) Do

func (s *SearchForAssets) Do(ctx context.Context,
	headers ...*common.Header) (response models.AssetsResponse, err error)

Do performs HTTP request

func (*SearchForAssets) Limit

func (s *SearchForAssets) Limit(lim uint64) *SearchForAssets

Limit maximum number of results to return.

func (*SearchForAssets) Name

func (s *SearchForAssets) Name(name string) *SearchForAssets

Name filter just assets with the given name.

func (*SearchForAssets) NextToken

func (s *SearchForAssets) NextToken(nextToken string) *SearchForAssets

NextToken the next page of results. Use the next token provided by the previous results.

func (*SearchForAssets) Unit

func (s *SearchForAssets) Unit(unit string) *SearchForAssets

Unit filter just assets with the given unit.

type SearchForTransactions

type SearchForTransactions struct {
	// contains filtered or unexported fields
}

SearchForTransactions /v2/transactions Search for transactions.

func (*SearchForTransactions) Address

Address only include transactions with this address in one of the transaction fields.

func (*SearchForTransactions) AddressRole

func (s *SearchForTransactions) AddressRole(role string) *SearchForTransactions

AddressRole combine with the address parameter to define what type of address to search for.

func (*SearchForTransactions) AddressString

func (s *SearchForTransactions) AddressString(address string) *SearchForTransactions

func (*SearchForTransactions) AfterTime

AfterTime include results after the given time. Must be an RFC 3339 formatted string.

func (*SearchForTransactions) AfterTimeString

func (s *SearchForTransactions) AfterTimeString(after string) *SearchForTransactions

func (*SearchForTransactions) ApplicationId added in v1.5.0

func (s *SearchForTransactions) ApplicationId(applicationId uint64) *SearchForTransactions

ApplicationId application ID

func (*SearchForTransactions) AssetID

func (*SearchForTransactions) BeforeTime

func (s *SearchForTransactions) BeforeTime(before time.Time) *SearchForTransactions

BeforeTime include results before the given time. Must be an RFC 3339 formatted string.

func (*SearchForTransactions) BeforeTimeString

func (s *SearchForTransactions) BeforeTimeString(before string) *SearchForTransactions

func (*SearchForTransactions) CurrencyGreaterThan

func (s *SearchForTransactions) CurrencyGreaterThan(greaterThan uint64) *SearchForTransactions

CurrencyGreaterThan results should have an amount greater than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used.

func (*SearchForTransactions) CurrencyLessThan

func (s *SearchForTransactions) CurrencyLessThan(lessThan uint64) *SearchForTransactions

CurrencyLessThan results should have an amount less than this value. MicroAlgos are the default currency unless an asset-id is provided, in which case the asset will be used.

func (*SearchForTransactions) Do

func (s *SearchForTransactions) Do(ctx context.Context, headers ...*common.Header) (response models.TransactionsResponse, err error)

func (*SearchForTransactions) ExcludeCloseTo

func (s *SearchForTransactions) ExcludeCloseTo(exclude bool) *SearchForTransactions

ExcludeCloseTo combine with address and address-role parameters to define what type of address to search for. The close to fields are normally treated as a receiver, if you would like to exclude them set this parameter to true.

func (*SearchForTransactions) Limit

Limit maximum number of results to return.

func (*SearchForTransactions) MaxRound

MaxRound include results at or before the specified max-round.

func (*SearchForTransactions) MinRound

MinRound include results at or after the specified min-round.

func (*SearchForTransactions) NextToken

func (s *SearchForTransactions) NextToken(nextToken string) *SearchForTransactions

func (*SearchForTransactions) NotePrefix

func (s *SearchForTransactions) NotePrefix(prefix []byte) *SearchForTransactions

NotePrefix specifies a prefix which must be contained in the note field.

func (*SearchForTransactions) RekeyTo added in v1.5.0

func (s *SearchForTransactions) RekeyTo(rekeyTo bool) *SearchForTransactions

RekeyTo include results which include the rekey-to field.

func (*SearchForTransactions) Round

Round include results for the specified round.

func (*SearchForTransactions) SigType

func (s *SearchForTransactions) SigType(sigtype string) *SearchForTransactions

SigType filters just results using the specified type of signature: * sig - Standard * msig - MultiSig * lsig - LogicSig

func (*SearchForTransactions) TXID

TXID lookup the specific transaction by ID.

func (*SearchForTransactions) TxType

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL