api

package
v0.0.0-...-c439057 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

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

API -

func New

func New(baseURL string, opts ...Option) *API

New -

func (*API) AccountCounter

func (tzkt *API) AccountCounter(ctx context.Context, address string) (uint64, error)

AccountCounter - Returns account counter

func (*API) AccountsCount

func (tzkt *API) AccountsCount(ctx context.Context, filters map[string]string) (uint64, error)

AccountCounter - Returns a number of accounts.

func (*API) BuildContractParameters

func (tzkt *API) BuildContractParameters(ctx context.Context, contract, entrypoint string, parameters interface{}) ([]byte, error)

BuildContractParameters -

func (*API) GetAccountsMetadata

func (tzkt *API) GetAccountsMetadata(ctx context.Context, filters map[string]string) ([]data.AccountMetadata, error)

GetAccountsMetadata -

func (*API) GetActivations

func (tzkt *API) GetActivations(ctx context.Context, filters map[string]string) (operations []data.Activation, err error)

GetActivations -

func (*API) GetBakings

func (tzkt *API) GetBakings(ctx context.Context, filters map[string]string) (operations []data.Baking, err error)

GetBakings -

func (*API) GetBallots

func (tzkt *API) GetBallots(ctx context.Context, filters map[string]string) (operations []data.Ballot, err error)

GetBallots -

func (*API) GetBigmapByID

func (tzkt *API) GetBigmapByID(ctx context.Context, id uint64, filters map[string]string) (response data.BigMap, err error)

GetBigmapByID -

func (*API) GetBigmapKey

func (tzkt *API) GetBigmapKey(ctx context.Context, id uint64, key string, filters map[string]string) (response data.BigMapKey, err error)

GetBigmapKey -

func (*API) GetBigmapKeyUpdates

func (tzkt *API) GetBigmapKeyUpdates(ctx context.Context, id uint64, key string, filters map[string]string) (response []data.BigMapKeyUpdate, err error)

GetBigmapKeyUpdates -

func (*API) GetBigmapKeys

func (tzkt *API) GetBigmapKeys(ctx context.Context, id uint64, filters map[string]string) (response []data.BigMapKey, err error)

GetBigmapKeys -

func (*API) GetBigmapUpdates

func (tzkt *API) GetBigmapUpdates(ctx context.Context, filters map[string]string) (response []data.BigMapUpdate, err error)

GetBigmapUpdates -

func (*API) GetBigmaps

func (tzkt *API) GetBigmaps(ctx context.Context, filters map[string]string) (response []data.BigMap, err error)

GetBigmaps -

func (*API) GetBigmapsCount

func (tzkt *API) GetBigmapsCount(ctx context.Context) (uint64, error)

GetBigmapsCount -

func (*API) GetBlock

func (tzkt *API) GetBlock(ctx context.Context, level uint64) (b data.Block, err error)

GetBlock -

func (*API) GetBlocks

func (tzkt *API) GetBlocks(ctx context.Context, filters map[string]string) (b []data.Block, err error)

GetBlocks -

func (*API) GetContractByAddress

func (tzkt *API) GetContractByAddress(ctx context.Context, address string) (response data.Contract, err error)

GetContractByAddress -

func (*API) GetContractJSONSchema

func (tzkt *API) GetContractJSONSchema(ctx context.Context, address string) (response data.ContractJSONSchema, err error)

GetContractJSONSchema -

func (*API) GetContractStorage

func (tzkt *API) GetContractStorage(ctx context.Context, address string, output interface{}) error

GetContractStorage -

func (*API) GetDelegateByAddress

func (tzkt *API) GetDelegateByAddress(ctx context.Context, address string) (delegate data.Delegate, err error)

GetDelegateByAddress -

func (*API) GetDelegates

func (tzkt *API) GetDelegates(ctx context.Context, filters map[string]string) (delegates []data.Delegate, err error)

GetDelegates -

func (*API) GetDelegatesCount

func (tzkt *API) GetDelegatesCount(ctx context.Context) (uint64, error)

GetDelegatesCount -

func (*API) GetDelegations

func (tzkt *API) GetDelegations(ctx context.Context, filters map[string]string) (operations []data.Delegation, err error)

GetDelegations -

func (*API) GetDoubleBakings

func (tzkt *API) GetDoubleBakings(ctx context.Context, filters map[string]string) (operations []data.DoubleBaking, err error)

GetDoubleBakings -

func (*API) GetDoubleEndorsings

func (tzkt *API) GetDoubleEndorsings(ctx context.Context, filters map[string]string) (operations []data.DoubleEndorsing, err error)

GetDoubleEndorsings -

func (*API) GetDoublePreendorsings

func (tzkt *API) GetDoublePreendorsings(ctx context.Context, filters map[string]string) (operations []data.DoublePreendorsing, err error)

GetDoublePreendorsings -

func (*API) GetDrainDelegates

func (tzkt *API) GetDrainDelegates(ctx context.Context, filters map[string]string) (operations []data.DrainDelegate, err error)

GetDrainDelegates -

func (*API) GetEndorsements

func (tzkt *API) GetEndorsements(ctx context.Context, filters map[string]string) (operations []data.Endorsement, err error)

GetEndorsements -

func (*API) GetEndorsingRewards

func (tzkt *API) GetEndorsingRewards(ctx context.Context, filters map[string]string) (operations []data.EndorsingReward, err error)

GetEndorsingRewards -

func (*API) GetHead

func (tzkt *API) GetHead(ctx context.Context) (head data.Head, err error)

GetHead -

func (*API) GetIncreasePaidStorage

func (tzkt *API) GetIncreasePaidStorage(ctx context.Context, filters map[string]string) (operations []data.IncreasePaidStorage, err error)

GetIncreasePaidStorage -

func (*API) GetMigrations

func (tzkt *API) GetMigrations(ctx context.Context, filters map[string]string) (operations []data.Migration, err error)

GetMigrations -

func (*API) GetNonceRevelations

func (tzkt *API) GetNonceRevelations(ctx context.Context, filters map[string]string) (operations []data.NonceRevelation, err error)

GetNonceRevelations -

func (*API) GetOperationsByHash

func (tzkt *API) GetOperationsByHash(ctx context.Context, hash string, filters map[string]string) (operations []data.Operation, err error)

GetOperationsByHash -

func (*API) GetOriginations

func (tzkt *API) GetOriginations(ctx context.Context, filters map[string]string) (operations []data.Origination, err error)

GetOriginations -

func (*API) GetPreendorsement

func (tzkt *API) GetPreendorsement(ctx context.Context, filters map[string]string) (operations []data.Preendorsement, err error)

GetPreendorsement -

func (*API) GetProposals

func (tzkt *API) GetProposals(ctx context.Context, filters map[string]string) (operations []data.Proposal, err error)

GetProposals -

func (*API) GetRegisterConstants

func (tzkt *API) GetRegisterConstants(ctx context.Context, filters map[string]string) (operations []data.RegisterConstant, err error)

GetRegisterConstants -

func (*API) GetReveals

func (tzkt *API) GetReveals(ctx context.Context, filters map[string]string) (operations []data.Reveal, err error)

GetReveals -

func (*API) GetRevelationPenalties

func (tzkt *API) GetRevelationPenalties(ctx context.Context, filters map[string]string) (operations []data.RevelationPenalty, err error)

GetRevelationPenalties -

func (*API) GetRights

func (tzkt *API) GetRights(ctx context.Context, filters map[string]string) (rights []data.Right, err error)

GetRights -

func (*API) GetSetDepositsLimit

func (tzkt *API) GetSetDepositsLimit(ctx context.Context, filters map[string]string) (operations []data.SetDepositsLimit, err error)

GetSetDepositsLimit -

func (*API) GetTokenTransfers

func (tzkt *API) GetTokenTransfers(ctx context.Context, filters map[string]string) (transfers []data.Transfer, err error)

GetTokenTransfers -

func (*API) GetTokens

func (tzkt *API) GetTokens(ctx context.Context, filters map[string]string) (tokens []data.Token, err error)

GetTokens -

func (*API) GetTransactions

func (tzkt *API) GetTransactions(ctx context.Context, filters map[string]string) (operations []data.Transaction, err error)

GetTransactions -

func (*API) GetTransactionsByHash

func (tzkt *API) GetTransactionsByHash(ctx context.Context, hash string, filters map[string]string) (operations []data.Transaction, err error)

GetTransactionsByHash -

func (*API) GetTransferTicket

func (tzkt *API) GetTransferTicket(ctx context.Context, filters map[string]string) (operations []data.TransferTicket, err error)

GetTransferTicket -

func (*API) GetTxRollupCommit

func (tzkt *API) GetTxRollupCommit(ctx context.Context, filters map[string]string) (operations []data.TxRollupCommit, err error)

GetTxRollupCommit -

func (*API) GetTxRollupDispatchTicket

func (tzkt *API) GetTxRollupDispatchTicket(ctx context.Context, filters map[string]string) (operations []data.TxRollupDispatchTicket, err error)

GetTxRollupDispatchTicket -

func (*API) GetTxRollupFinalizeCommitment

func (tzkt *API) GetTxRollupFinalizeCommitment(ctx context.Context, filters map[string]string) (operations []data.TxRollupFinalizeCommitment, err error)

GetTxRollupFinalizeCommitment -

func (*API) GetTxRollupOrigination

func (tzkt *API) GetTxRollupOrigination(ctx context.Context, filters map[string]string) (operations []data.TxRollupOrigination, err error)

GetTransferTicket -

func (*API) GetTxRollupRejection

func (tzkt *API) GetTxRollupRejection(ctx context.Context, filters map[string]string) (operations []data.TxRollupRejection, err error)

GetTxRollupRejection -

func (*API) GetTxRollupRemoveCommitment

func (tzkt *API) GetTxRollupRemoveCommitment(ctx context.Context, filters map[string]string) (operations []data.TxRollupRemoveCommitment, err error)

GetTxRollupRemoveCommitment -

func (*API) GetTxRollupReturnBond

func (tzkt *API) GetTxRollupReturnBond(ctx context.Context, filters map[string]string) (operations []data.TxRollupReturnBond, err error)

GetTransferTicket -

func (*API) GetTxRollupSubmitBatch

func (tzkt *API) GetTxRollupSubmitBatch(ctx context.Context, filters map[string]string) (operations []data.TxRollupSubmitBatch, err error)

GetTxRollupSubmitBatch -

func (*API) GetUpdateConsensusKey

func (tzkt *API) GetUpdateConsensusKey(ctx context.Context, filters map[string]string) (operations []data.UpdateConsensusKey, err error)

GetUpdateConsensusKey -

func (*API) GetVdfRevelations

func (tzkt *API) GetVdfRevelations(ctx context.Context, filters map[string]string) (operations []data.VdfRevelation, err error)

GetVdfRevelations -

func (*API) ListContracts

func (tzkt *API) ListContracts(ctx context.Context, filters map[string]string) (response []data.Contract, err error)

ListContracts -

func (*API) Protocols

func (tzkt *API) Protocols(ctx context.Context, args map[string]string) (protocols []data.Protocol, err error)

Protocols - Returns a list of protocols.

func (*API) Statistics

func (tzkt *API) Statistics(ctx context.Context, filters map[string]string) (stats []data.Statistics, err error)

Statistics -

func (*API) StatisticsCurrent

func (tzkt *API) StatisticsCurrent(ctx context.Context, filters map[string]string) (stats data.Statistics, err error)

StatisticsCurrent -

func (*API) StatisticsCyclic

func (tzkt *API) StatisticsCyclic(ctx context.Context, filters map[string]string) (stats []data.Statistics, err error)

StatisticsCyclic -

func (*API) StatisticsDaily

func (tzkt *API) StatisticsDaily(ctx context.Context, filters map[string]string) (stats []data.Statistics, err error)

StatisticsDaily -

type Option

type Option func(*API)

Option -

func WithAuth

func WithAuth(user, privateKey string) Option

WithAuth -

Jump to

Keyboard shortcuts

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