indexer

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 6 Imported by: 2

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 a ClientV2 for a given endpoint.

func MakeClientWithHeaders

func MakeClientWithHeaders(address string, apiToken string, headers []*common.Header) (c *Client, err error)

MakeClientWithHeaders is the factory for constructing a ClientV2 for a given endpoint with custom headers.

func (*Client) HealthCheck

func (c *Client) HealthCheck() *HealthCheck

func (*Client) LookupAccountAppLocalStates

func (c *Client) LookupAccountAppLocalStates(accountId string) *LookupAccountAppLocalStates

func (*Client) LookupAccountAssets

func (c *Client) LookupAccountAssets(accountId string) *LookupAccountAssets

func (*Client) LookupAccountByID

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

func (*Client) LookupAccountCreatedApplications

func (c *Client) LookupAccountCreatedApplications(accountId string) *LookupAccountCreatedApplications

func (*Client) LookupAccountCreatedAssets

func (c *Client) LookupAccountCreatedAssets(accountId string) *LookupAccountCreatedAssets

func (*Client) LookupAccountTransactions

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

func (*Client) LookupApplicationBoxByIDAndName

func (c *Client) LookupApplicationBoxByIDAndName(applicationId uint64, name []byte) *LookupApplicationBoxByIDAndName

func (*Client) LookupApplicationByID

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

func (*Client) LookupApplicationLogsByID

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

func (*Client) LookupAssetBalances

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

func (*Client) LookupAssetByID

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

func (*Client) LookupAssetTransactions

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

func (*Client) LookupBlock

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

func (*Client) LookupTransaction

func (c *Client) LookupTransaction(txid string) *LookupTransaction

func (*Client) SearchAccounts

func (c *Client) SearchAccounts() *SearchAccounts

func (*Client) SearchForApplicationBoxes

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

func (*Client) SearchForApplications

func (c *Client) SearchForApplications() *SearchForApplications

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
}

HealthCheck returns 200 if healthy.

func (*HealthCheck) Do

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

Do performs the HTTP request

type LookupAccountAppLocalStates

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

LookupAccountAppLocalStates lookup an account's asset holdings, optionally for a specific ID.

func (*LookupAccountAppLocalStates) ApplicationID

func (s *LookupAccountAppLocalStates) ApplicationID(ApplicationID uint64) *LookupAccountAppLocalStates

ApplicationID application ID

func (*LookupAccountAppLocalStates) Do

Do performs the HTTP request

func (*LookupAccountAppLocalStates) IncludeAll

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

func (*LookupAccountAppLocalStates) Limit

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

func (*LookupAccountAppLocalStates) Next

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

type LookupAccountAppLocalStatesParams

type LookupAccountAppLocalStatesParams struct {

	// ApplicationID application ID
	ApplicationID uint64 `url:"application-id,omitempty"`

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// Next the next page of results. Use the next token provided by the previous
	// results.
	Next string `url:"next,omitempty"`
}

LookupAccountAppLocalStatesParams contains all of the query parameters for url serialization.

type LookupAccountAssets

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

LookupAccountAssets lookup an account's asset holdings, optionally for a specific ID.

func (*LookupAccountAssets) AssetID

func (s *LookupAccountAssets) AssetID(AssetID uint64) *LookupAccountAssets

AssetID asset ID

func (*LookupAccountAssets) Do

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

Do performs the HTTP request

func (*LookupAccountAssets) IncludeAll

func (s *LookupAccountAssets) IncludeAll(IncludeAll bool) *LookupAccountAssets

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

func (*LookupAccountAssets) Limit

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

func (*LookupAccountAssets) Next

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

type LookupAccountAssetsParams

type LookupAccountAssetsParams struct {

	// AssetID asset ID
	AssetID uint64 `url:"asset-id,omitempty"`

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// Next the next page of results. Use the next token provided by the previous
	// results.
	Next string `url:"next,omitempty"`
}

LookupAccountAssetsParams contains all of the query parameters for url serialization.

type LookupAccountByID

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

LookupAccountByID lookup account information.

func (*LookupAccountByID) Do

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

Do performs the HTTP request

func (*LookupAccountByID) Exclude

func (s *LookupAccountByID) Exclude(Exclude []string) *LookupAccountByID

Exclude exclude additional items such as asset holdings, application local data stored for this account, asset parameters created by this account, and application parameters created by this account.

func (*LookupAccountByID) IncludeAll

func (s *LookupAccountByID) IncludeAll(IncludeAll bool) *LookupAccountByID

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

func (*LookupAccountByID) Round

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

Round include results for the specified round.

type LookupAccountByIDParams

type LookupAccountByIDParams struct {

	// Exclude exclude additional items such as asset holdings, application local data
	// stored for this account, asset parameters created by this account, and
	// application parameters created by this account.
	Exclude []string `url:"exclude,omitempty,comma"`

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`

	// Round include results for the specified round.
	Round uint64 `url:"round,omitempty"`
}

LookupAccountByIDParams contains all of the query parameters for url serialization.

type LookupAccountCreatedApplications

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

LookupAccountCreatedApplications lookup an account's created application parameters, optionally for a specific ID.

func (*LookupAccountCreatedApplications) ApplicationID

ApplicationID application ID

func (*LookupAccountCreatedApplications) Do

Do performs the HTTP request

func (*LookupAccountCreatedApplications) IncludeAll

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

func (*LookupAccountCreatedApplications) Limit

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

func (*LookupAccountCreatedApplications) Next

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

type LookupAccountCreatedApplicationsParams

type LookupAccountCreatedApplicationsParams struct {

	// ApplicationID application ID
	ApplicationID uint64 `url:"application-id,omitempty"`

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// Next the next page of results. Use the next token provided by the previous
	// results.
	Next string `url:"next,omitempty"`
}

LookupAccountCreatedApplicationsParams contains all of the query parameters for url serialization.

type LookupAccountCreatedAssets

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

LookupAccountCreatedAssets lookup an account's created asset parameters, optionally for a specific ID.

func (*LookupAccountCreatedAssets) AssetID

AssetID asset ID

func (*LookupAccountCreatedAssets) Do

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

Do performs the HTTP request

func (*LookupAccountCreatedAssets) IncludeAll

func (s *LookupAccountCreatedAssets) IncludeAll(IncludeAll bool) *LookupAccountCreatedAssets

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

func (*LookupAccountCreatedAssets) Limit

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

func (*LookupAccountCreatedAssets) Next

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

type LookupAccountCreatedAssetsParams

type LookupAccountCreatedAssetsParams struct {

	// AssetID asset ID
	AssetID uint64 `url:"asset-id,omitempty"`

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// Next the next page of results. Use the next token provided by the previous
	// results.
	Next string `url:"next,omitempty"`
}

LookupAccountCreatedAssetsParams contains all of the query parameters for url serialization.

type LookupAccountTransactions

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

LookupAccountTransactions lookup account transactions. Transactions are returned newest to oldest.

func (*LookupAccountTransactions) AfterTime

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

func (*LookupAccountTransactions) AfterTimeString

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

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

func (*LookupAccountTransactions) AssetID

AssetID asset ID

func (*LookupAccountTransactions) BeforeTime

func (s *LookupAccountTransactions) BeforeTime(BeforeTime time.Time) *LookupAccountTransactions

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

func (*LookupAccountTransactions) BeforeTimeString

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

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

func (*LookupAccountTransactions) CurrencyGreaterThan

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

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 (*LookupAccountTransactions) CurrencyLessThan

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

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 (*LookupAccountTransactions) Do

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

Do performs the HTTP request

func (*LookupAccountTransactions) Limit

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

func (*LookupAccountTransactions) MaxRound

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

func (*LookupAccountTransactions) MinRound

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

func (*LookupAccountTransactions) NextToken

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

func (*LookupAccountTransactions) NotePrefix

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

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

func (*LookupAccountTransactions) RekeyTo

RekeyTo include results which include the rekey-to field.

func (*LookupAccountTransactions) Round

Round include results for the specified round.

func (*LookupAccountTransactions) SigType

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

func (*LookupAccountTransactions) TXID

TXID lookup the specific transaction by ID.

func (*LookupAccountTransactions) TxType

TxType

type LookupAccountTransactionsParams

type LookupAccountTransactionsParams struct {

	// AfterTime include results after the given time. Must be an RFC 3339 formatted
	// string.
	AfterTime string `url:"after-time,omitempty"`

	// AssetID asset ID
	AssetID uint64 `url:"asset-id,omitempty"`

	// BeforeTime include results before the given time. Must be an RFC 3339 formatted
	// string.
	BeforeTime string `url:"before-time,omitempty"`

	// 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.
	CurrencyGreaterThan uint64 `url:"currency-greater-than,omitempty"`

	// 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.
	CurrencyLessThan uint64 `url:"currency-less-than,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// MaxRound include results at or before the specified max-round.
	MaxRound uint64 `url:"max-round,omitempty"`

	// MinRound include results at or after the specified min-round.
	MinRound uint64 `url:"min-round,omitempty"`

	// NextToken the next page of results. Use the next token provided by the previous
	// results.
	NextToken string `url:"next,omitempty"`

	// NotePrefix specifies a prefix which must be contained in the note field.
	NotePrefix string `url:"note-prefix,omitempty"`

	// RekeyTo include results which include the rekey-to field.
	RekeyTo bool `url:"rekey-to,omitempty"`

	// Round include results for the specified round.
	Round uint64 `url:"round,omitempty"`

	// SigType sigType filters just results using the specified type of signature:
	// * sig - Standard
	// * msig - MultiSig
	// * lsig - LogicSig
	SigType string `url:"sig-type,omitempty"`

	// TxType
	TxType string `url:"tx-type,omitempty"`

	// TXID lookup the specific transaction by ID.
	TXID string `url:"txid,omitempty"`
}

LookupAccountTransactionsParams contains all of the query parameters for url serialization.

type LookupApplicationBoxByIDAndName

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

LookupApplicationBoxByIDAndName given an application ID and box name, returns base64 encoded box name and value. Box names must be in the goal app call arg form 'encoding:value'. For ints, use the form 'int:1234'. For raw bytes, encode base 64 and use 'b64' prefix as in 'b64:A=='. For printable strings, use the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.

func (*LookupApplicationBoxByIDAndName) Do

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

Do performs the HTTP request

type LookupApplicationBoxByIDAndNameParams

type LookupApplicationBoxByIDAndNameParams struct {

	// Name a box name in goal-arg form 'encoding:value'. For ints, use the form
	// 'int:1234'. For raw bytes, use the form 'b64:A=='. For printable strings, use
	// the form 'str:hello'. For addresses, use the form 'addr:XYZ...'.
	Name string `url:"name,omitempty"`
}

LookupApplicationBoxByIDAndNameParams contains all of the query parameters for url serialization.

type LookupApplicationByID

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

LookupApplicationByID lookup application.

func (*LookupApplicationByID) Do

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

Do performs the HTTP request

func (*LookupApplicationByID) IncludeAll

func (s *LookupApplicationByID) IncludeAll(IncludeAll bool) *LookupApplicationByID

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

type LookupApplicationByIDParams

type LookupApplicationByIDParams struct {

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`
}

LookupApplicationByIDParams contains all of the query parameters for url serialization.

type LookupApplicationLogsByID

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

LookupApplicationLogsByID lookup application logs.

func (*LookupApplicationLogsByID) Do

Do performs the HTTP request

func (*LookupApplicationLogsByID) Limit

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

func (*LookupApplicationLogsByID) MaxRound

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

func (*LookupApplicationLogsByID) MinRound

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

func (*LookupApplicationLogsByID) Next

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

func (*LookupApplicationLogsByID) SenderAddress

func (s *LookupApplicationLogsByID) SenderAddress(SenderAddress string) *LookupApplicationLogsByID

SenderAddress only include transactions with this sender address.

func (*LookupApplicationLogsByID) Txid

Txid lookup the specific transaction by ID.

type LookupApplicationLogsByIDParams

type LookupApplicationLogsByIDParams struct {

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// MaxRound include results at or before the specified max-round.
	MaxRound uint64 `url:"max-round,omitempty"`

	// MinRound include results at or after the specified min-round.
	MinRound uint64 `url:"min-round,omitempty"`

	// Next the next page of results. Use the next token provided by the previous
	// results.
	Next string `url:"next,omitempty"`

	// SenderAddress only include transactions with this sender address.
	SenderAddress string `url:"sender-address,omitempty"`

	// Txid lookup the specific transaction by ID.
	Txid string `url:"txid,omitempty"`
}

LookupApplicationLogsByIDParams contains all of the query parameters for url serialization.

type LookupAssetBalances

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

LookupAssetBalances lookup the list of accounts who hold this asset

func (*LookupAssetBalances) CurrencyGreaterThan

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

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 (*LookupAssetBalances) CurrencyLessThan

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

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 (*LookupAssetBalances) Do

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

Do performs the HTTP request

func (*LookupAssetBalances) IncludeAll

func (s *LookupAssetBalances) IncludeAll(IncludeAll bool) *LookupAssetBalances

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

func (*LookupAssetBalances) Limit

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

func (*LookupAssetBalances) NextToken

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

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

type LookupAssetBalancesParams

type LookupAssetBalancesParams struct {

	// 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.
	CurrencyGreaterThan uint64 `url:"currency-greater-than,omitempty"`

	// 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.
	CurrencyLessThan uint64 `url:"currency-less-than,omitempty"`

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// NextToken the next page of results. Use the next token provided by the previous
	// results.
	NextToken string `url:"next,omitempty"`
}

LookupAssetBalancesParams contains all of the query parameters for url serialization.

type LookupAssetByID

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

LookupAssetByID lookup asset information.

func (*LookupAssetByID) Do

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

Do performs the HTTP request

func (*LookupAssetByID) IncludeAll

func (s *LookupAssetByID) IncludeAll(IncludeAll bool) *LookupAssetByID

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

type LookupAssetByIDParams

type LookupAssetByIDParams struct {

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`
}

LookupAssetByIDParams contains all of the query parameters for url serialization.

type LookupAssetTransactions

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

LookupAssetTransactions lookup transactions for an asset. Transactions are returned oldest to newest.

func (*LookupAssetTransactions) AddressRole

func (s *LookupAssetTransactions) AddressRole(AddressRole string) *LookupAssetTransactions

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

func (*LookupAssetTransactions) AddressString

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

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

func (*LookupAssetTransactions) AfterTime

func (s *LookupAssetTransactions) AfterTime(AfterTime time.Time) *LookupAssetTransactions

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

func (*LookupAssetTransactions) AfterTimeString

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

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

func (*LookupAssetTransactions) BeforeTime

func (s *LookupAssetTransactions) BeforeTime(BeforeTime time.Time) *LookupAssetTransactions

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

func (*LookupAssetTransactions) BeforeTimeString

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

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

func (*LookupAssetTransactions) CurrencyGreaterThan

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

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 (*LookupAssetTransactions) CurrencyLessThan

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

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 (*LookupAssetTransactions) Do

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

Do performs the HTTP request

func (*LookupAssetTransactions) ExcludeCloseTo

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

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 (*LookupAssetTransactions) Limit

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

func (*LookupAssetTransactions) MaxRound

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

func (*LookupAssetTransactions) MinRound

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

func (*LookupAssetTransactions) NextToken

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

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

func (*LookupAssetTransactions) NotePrefix

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

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

func (*LookupAssetTransactions) RekeyTo

RekeyTo include results which include the rekey-to field.

func (*LookupAssetTransactions) Round

Round include results for the specified round.

func (*LookupAssetTransactions) SigType

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

func (*LookupAssetTransactions) TXID

TXID lookup the specific transaction by ID.

func (*LookupAssetTransactions) TxType

TxType

type LookupAssetTransactionsParams

type LookupAssetTransactionsParams struct {

	// AddressString only include transactions with this address in one of the
	// transaction fields.
	AddressString string `url:"address,omitempty"`

	// AddressRole combine with the address parameter to define what type of address to
	// search for.
	AddressRole string `url:"address-role,omitempty"`

	// AfterTime include results after the given time. Must be an RFC 3339 formatted
	// string.
	AfterTime string `url:"after-time,omitempty"`

	// BeforeTime include results before the given time. Must be an RFC 3339 formatted
	// string.
	BeforeTime string `url:"before-time,omitempty"`

	// 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.
	CurrencyGreaterThan uint64 `url:"currency-greater-than,omitempty"`

	// 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.
	CurrencyLessThan uint64 `url:"currency-less-than,omitempty"`

	// 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.
	ExcludeCloseTo bool `url:"exclude-close-to,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// MaxRound include results at or before the specified max-round.
	MaxRound uint64 `url:"max-round,omitempty"`

	// MinRound include results at or after the specified min-round.
	MinRound uint64 `url:"min-round,omitempty"`

	// NextToken the next page of results. Use the next token provided by the previous
	// results.
	NextToken string `url:"next,omitempty"`

	// NotePrefix specifies a prefix which must be contained in the note field.
	NotePrefix string `url:"note-prefix,omitempty"`

	// RekeyTo include results which include the rekey-to field.
	RekeyTo bool `url:"rekey-to,omitempty"`

	// Round include results for the specified round.
	Round uint64 `url:"round,omitempty"`

	// SigType sigType filters just results using the specified type of signature:
	// * sig - Standard
	// * msig - MultiSig
	// * lsig - LogicSig
	SigType string `url:"sig-type,omitempty"`

	// TxType
	TxType string `url:"tx-type,omitempty"`

	// TXID lookup the specific transaction by ID.
	TXID string `url:"txid,omitempty"`
}

LookupAssetTransactionsParams contains all of the query parameters for url serialization.

type LookupBlock

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

LookupBlock lookup block.

func (*LookupBlock) Do

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

Do performs the HTTP request

func (*LookupBlock) HeaderOnly

func (s *LookupBlock) HeaderOnly(HeaderOnly bool) *LookupBlock

HeaderOnly header only flag. When this is set to true, returned block does not contain the transactions

type LookupBlockParams

type LookupBlockParams struct {

	// HeaderOnly header only flag. When this is set to true, returned block does not
	// contain the transactions
	HeaderOnly bool `url:"header-only,omitempty"`
}

LookupBlockParams contains all of the query parameters for url serialization.

type LookupTransaction

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

LookupTransaction lookup a single transaction.

func (*LookupTransaction) Do

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

Do performs the HTTP request

type SearchAccounts

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

SearchAccounts search for accounts.

func (*SearchAccounts) ApplicationId

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

ApplicationId application ID

func (*SearchAccounts) AssetID

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

AssetID asset ID

func (*SearchAccounts) AuthAddress

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

AuthAddress include accounts configured to use this spending key.

func (*SearchAccounts) CurrencyGreaterThan

func (s *SearchAccounts) CurrencyGreaterThan(CurrencyGreaterThan 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(CurrencyLessThan 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)

Do performs the HTTP request

func (*SearchAccounts) Exclude

func (s *SearchAccounts) Exclude(Exclude []string) *SearchAccounts

Exclude exclude additional items such as asset holdings, application local data stored for this account, asset parameters created by this account, and application parameters created by this account.

func (*SearchAccounts) IncludeAll

func (s *SearchAccounts) IncludeAll(IncludeAll bool) *SearchAccounts

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

func (*SearchAccounts) Limit

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

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

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

Round include results for the specified round. For performance reasons, this parameter may be disabled on some configurations. Using application-id or asset-id filters will return both creator and opt-in accounts. Filtering by include-all will return creator and opt-in accounts for deleted assets and accounts. Non-opt-in managers are not included in the results when asset-id is used.

type SearchAccountsParams

type SearchAccountsParams struct {

	// ApplicationId application ID
	ApplicationId uint64 `url:"application-id,omitempty"`

	// AssetID asset ID
	AssetID uint64 `url:"asset-id,omitempty"`

	// AuthAddress include accounts configured to use this spending key.
	AuthAddress string `url:"auth-addr,omitempty"`

	// 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.
	CurrencyGreaterThan uint64 `url:"currency-greater-than,omitempty"`

	// 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.
	CurrencyLessThan uint64 `url:"currency-less-than,omitempty"`

	// Exclude exclude additional items such as asset holdings, application local data
	// stored for this account, asset parameters created by this account, and
	// application parameters created by this account.
	Exclude []string `url:"exclude,omitempty,comma"`

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// NextToken the next page of results. Use the next token provided by the previous
	// results.
	NextToken string `url:"next,omitempty"`

	// Round include results for the specified round. For performance reasons, this
	// parameter may be disabled on some configurations. Using application-id or
	// asset-id filters will return both creator and opt-in accounts. Filtering by
	// include-all will return creator and opt-in accounts for deleted assets and
	// accounts. Non-opt-in managers are not included in the results when asset-id is
	// used.
	Round uint64 `url:"round,omitempty"`
}

SearchAccountsParams contains all of the query parameters for url serialization.

type SearchForApplicationBoxes

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

SearchForApplicationBoxes given an application ID, returns the box names of that application sorted lexicographically.

func (*SearchForApplicationBoxes) Do

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

Do performs the HTTP request

func (*SearchForApplicationBoxes) Limit

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

func (*SearchForApplicationBoxes) Next

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

type SearchForApplicationBoxesParams

type SearchForApplicationBoxesParams struct {

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// Next the next page of results. Use the next token provided by the previous
	// results.
	Next string `url:"next,omitempty"`
}

SearchForApplicationBoxesParams contains all of the query parameters for url serialization.

type SearchForApplications

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

SearchForApplications search for applications

func (*SearchForApplications) ApplicationId

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

ApplicationId application ID

func (*SearchForApplications) Creator

func (s *SearchForApplications) Creator(Creator string) *SearchForApplications

Creator filter just applications with the given creator address.

func (*SearchForApplications) Do

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

Do performs the HTTP request

func (*SearchForApplications) IncludeAll

func (s *SearchForApplications) IncludeAll(IncludeAll bool) *SearchForApplications

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

func (*SearchForApplications) Limit

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

func (*SearchForApplications) Next

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

type SearchForApplicationsParams

type SearchForApplicationsParams struct {

	// ApplicationId application ID
	ApplicationId uint64 `url:"application-id,omitempty"`

	// Creator filter just applications with the given creator address.
	Creator string `url:"creator,omitempty"`

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// Next the next page of results. Use the next token provided by the previous
	// results.
	Next string `url:"next,omitempty"`
}

SearchForApplicationsParams contains all of the query parameters for url serialization.

type SearchForAssets

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

SearchForAssets search for assets.

func (*SearchForAssets) AssetID

func (s *SearchForAssets) AssetID(AssetID 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 the HTTP request

func (*SearchForAssets) IncludeAll

func (s *SearchForAssets) IncludeAll(IncludeAll bool) *SearchForAssets

IncludeAll include all items including closed accounts, deleted applications, destroyed assets, opted-out asset holdings, and closed-out application localstates.

func (*SearchForAssets) Limit

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

Limit maximum number of results to return. There could be additional pages even if the limit is not reached.

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 SearchForAssetsParams

type SearchForAssetsParams struct {

	// AssetID asset ID
	AssetID uint64 `url:"asset-id,omitempty"`

	// Creator filter just assets with the given creator address.
	Creator string `url:"creator,omitempty"`

	// IncludeAll include all items including closed accounts, deleted applications,
	// destroyed assets, opted-out asset holdings, and closed-out application
	// localstates.
	IncludeAll bool `url:"include-all,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// Name filter just assets with the given name.
	Name string `url:"name,omitempty"`

	// NextToken the next page of results. Use the next token provided by the previous
	// results.
	NextToken string `url:"next,omitempty"`

	// Unit filter just assets with the given unit.
	Unit string `url:"unit,omitempty"`
}

SearchForAssetsParams contains all of the query parameters for url serialization.

type SearchForTransactions

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

SearchForTransactions search for transactions. Transactions are returned oldest to newest unless the address parameter is used, in which case results are returned newest to oldest.

func (*SearchForTransactions) AddressRole

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

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

func (*SearchForTransactions) AddressString

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

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

func (*SearchForTransactions) AfterTime

func (s *SearchForTransactions) AfterTime(AfterTime time.Time) *SearchForTransactions

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

func (*SearchForTransactions) AfterTimeString

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

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

func (*SearchForTransactions) ApplicationId

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

ApplicationId application ID

func (*SearchForTransactions) AssetID

func (s *SearchForTransactions) AssetID(AssetID uint64) *SearchForTransactions

AssetID asset ID

func (*SearchForTransactions) BeforeTime

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

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

func (*SearchForTransactions) BeforeTimeString

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

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

func (*SearchForTransactions) CurrencyGreaterThan

func (s *SearchForTransactions) CurrencyGreaterThan(CurrencyGreaterThan 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(CurrencyLessThan 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)

Do performs the HTTP request

func (*SearchForTransactions) ExcludeCloseTo

func (s *SearchForTransactions) ExcludeCloseTo(ExcludeCloseTo 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. There could be additional pages even if the limit is not reached.

func (*SearchForTransactions) MaxRound

func (s *SearchForTransactions) MaxRound(MaxRound uint64) *SearchForTransactions

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

func (*SearchForTransactions) MinRound

func (s *SearchForTransactions) MinRound(MinRound uint64) *SearchForTransactions

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

func (*SearchForTransactions) NextToken

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

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

func (*SearchForTransactions) NotePrefix

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

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

func (*SearchForTransactions) RekeyTo

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 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

TxType

type SearchForTransactionsParams

type SearchForTransactionsParams struct {

	// AddressString only include transactions with this address in one of the
	// transaction fields.
	AddressString string `url:"address,omitempty"`

	// AddressRole combine with the address parameter to define what type of address to
	// search for.
	AddressRole string `url:"address-role,omitempty"`

	// AfterTime include results after the given time. Must be an RFC 3339 formatted
	// string.
	AfterTime string `url:"after-time,omitempty"`

	// ApplicationId application ID
	ApplicationId uint64 `url:"application-id,omitempty"`

	// AssetID asset ID
	AssetID uint64 `url:"asset-id,omitempty"`

	// BeforeTime include results before the given time. Must be an RFC 3339 formatted
	// string.
	BeforeTime string `url:"before-time,omitempty"`

	// 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.
	CurrencyGreaterThan uint64 `url:"currency-greater-than,omitempty"`

	// 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.
	CurrencyLessThan uint64 `url:"currency-less-than,omitempty"`

	// 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.
	ExcludeCloseTo bool `url:"exclude-close-to,omitempty"`

	// Limit maximum number of results to return. There could be additional pages even
	// if the limit is not reached.
	Limit uint64 `url:"limit,omitempty"`

	// MaxRound include results at or before the specified max-round.
	MaxRound uint64 `url:"max-round,omitempty"`

	// MinRound include results at or after the specified min-round.
	MinRound uint64 `url:"min-round,omitempty"`

	// NextToken the next page of results. Use the next token provided by the previous
	// results.
	NextToken string `url:"next,omitempty"`

	// NotePrefix specifies a prefix which must be contained in the note field.
	NotePrefix string `url:"note-prefix,omitempty"`

	// RekeyTo include results which include the rekey-to field.
	RekeyTo bool `url:"rekey-to,omitempty"`

	// Round include results for the specified round.
	Round uint64 `url:"round,omitempty"`

	// SigType sigType filters just results using the specified type of signature:
	// * sig - Standard
	// * msig - MultiSig
	// * lsig - LogicSig
	SigType string `url:"sig-type,omitempty"`

	// TxType
	TxType string `url:"tx-type,omitempty"`

	// TXID lookup the specific transaction by ID.
	TXID string `url:"txid,omitempty"`
}

SearchForTransactionsParams contains all of the query parameters for url serialization.

Jump to

Keyboard shortcuts

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