Documentation ¶
Index ¶
- Constants
- type API
- func (tzkt *API) BuildContractParameters(ctx context.Context, contract, entrypoint string, parameters interface{}) ([]byte, error)
- func (tzkt *API) GetActivations(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetBallots(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetBigmapByID(ctx context.Context, id uint64, filters map[string]string) (response BigMap, err error)
- func (tzkt *API) GetBigmapKey(ctx context.Context, id uint64, key string, filters map[string]string) (response BigMapKey, err error)
- func (tzkt *API) GetBigmapKeyUpdates(ctx context.Context, id uint64, key string, filters map[string]string) (response []BigMapKeyUpdate, err error)
- func (tzkt *API) GetBigmapKeys(ctx context.Context, id uint64, filters map[string]string) (response []BigMapKey, err error)
- func (tzkt *API) GetBigmapUpdates(ctx context.Context, filters map[string]string) (response []BigMapUpdate, err error)
- func (tzkt *API) GetBigmaps(ctx context.Context, filters map[string]string) (response []BigMap, err error)
- func (tzkt *API) GetBigmapsCount(ctx context.Context) (uint64, error)
- func (tzkt *API) GetBlock(ctx context.Context, level uint64) (b Block, err error)
- func (tzkt *API) GetBlocks(ctx context.Context, filters map[string]string) (b []Block, err error)
- func (tzkt *API) GetContractJSONSchema(ctx context.Context, address string) (response ContractJSONSchema, err error)
- func (tzkt *API) GetContractStorage(ctx context.Context, address string, output interface{}) error
- func (tzkt *API) GetDelegateByAddress(ctx context.Context, address string) (delegate Delegate, err error)
- func (tzkt *API) GetDelegates(ctx context.Context, filters map[string]string) (delegates []Delegate, err error)
- func (tzkt *API) GetDelegatesCount(ctx context.Context) (uint64, error)
- func (tzkt *API) GetDelegations(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetDoubleBakings(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetDoubleEndorsings(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetEndorsements(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetHead(ctx context.Context) (head Head, err error)
- func (tzkt *API) GetNonceRevelations(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetOriginations(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetProposals(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetRegisterConstants(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetReveals(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- func (tzkt *API) GetRights(ctx context.Context, filters map[string]string) (rights []Right, err error)
- func (tzkt *API) GetTransactions(ctx context.Context, filters map[string]string) (operations []Operation, err error)
- type AdditionalProperties
- type Address
- type BigMap
- type BigMapJSONSchema
- type BigMapKey
- type BigMapKeyUpdate
- type BigMapUpdate
- type BigMapUpdateContent
- type Block
- type ContractJSONSchema
- type Delegate
- type EntrypointJSONSchema
- type Head
- type JSONSchema
- type Operation
- type Parameters
- type Right
- type Software
Constants ¶
const ( KindTransaction = "transaction" KindOrigination = "origination" KindEndorsement = "endorsement" KindBallot = "ballot" KindProposal = "proposal" KindDoubleBaking = "double_baking" KindDoubleEndorsing = "double_endorsing" KindActivation = "activation" KindNonceRevelation = "nonce_revelation" KindDelegation = "delegation" KindReveal = "reveal" KindRegisterGlobalConstant = "register_constant" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API -
func (*API) BuildContractParameters ¶ added in v0.1.40
func (tzkt *API) BuildContractParameters(ctx context.Context, contract, entrypoint string, parameters interface{}) ([]byte, error)
BuildContractParameters -
func (*API) GetActivations ¶
func (tzkt *API) GetActivations(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetActivations -
func (*API) GetBallots ¶
func (tzkt *API) GetBallots(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetBallots -
func (*API) GetBigmapByID ¶
func (tzkt *API) GetBigmapByID(ctx context.Context, id uint64, filters map[string]string) (response BigMap, err error)
GetBigmapByID -
func (*API) GetBigmapKey ¶
func (tzkt *API) GetBigmapKey(ctx context.Context, id uint64, key string, filters map[string]string) (response BigMapKey, err error)
GetBigmapKey -
func (*API) GetBigmapKeyUpdates ¶
func (tzkt *API) GetBigmapKeyUpdates(ctx context.Context, id uint64, key string, filters map[string]string) (response []BigMapKeyUpdate, err error)
GetBigmapKeyUpdates -
func (*API) GetBigmapKeys ¶
func (tzkt *API) GetBigmapKeys(ctx context.Context, id uint64, filters map[string]string) (response []BigMapKey, err error)
GetBigmapKeys -
func (*API) GetBigmapUpdates ¶
func (tzkt *API) GetBigmapUpdates(ctx context.Context, filters map[string]string) (response []BigMapUpdate, err error)
GetBigmapUpdates -
func (*API) GetBigmaps ¶
func (tzkt *API) GetBigmaps(ctx context.Context, filters map[string]string) (response []BigMap, err error)
GetBigmaps -
func (*API) GetBigmapsCount ¶
GetBigmapsCount -
func (*API) GetContractJSONSchema ¶ added in v0.1.39
func (tzkt *API) GetContractJSONSchema(ctx context.Context, address string) (response ContractJSONSchema, err error)
GetContractJSONSchema -
func (*API) GetContractStorage ¶ added in v0.1.39
GetContractStorage -
func (*API) GetDelegateByAddress ¶ added in v0.1.1
func (tzkt *API) GetDelegateByAddress(ctx context.Context, address string) (delegate Delegate, err error)
GetDelegateByAddress -
func (*API) GetDelegates ¶ added in v0.1.1
func (tzkt *API) GetDelegates(ctx context.Context, filters map[string]string) (delegates []Delegate, err error)
GetDelegates -
func (*API) GetDelegatesCount ¶ added in v0.1.1
GetDelegatesCount -
func (*API) GetDelegations ¶
func (tzkt *API) GetDelegations(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetDelegations -
func (*API) GetDoubleBakings ¶
func (tzkt *API) GetDoubleBakings(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetDoubleBakings -
func (*API) GetDoubleEndorsings ¶
func (tzkt *API) GetDoubleEndorsings(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetDoubleEndorsings -
func (*API) GetEndorsements ¶
func (tzkt *API) GetEndorsements(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetEndorsements -
func (*API) GetNonceRevelations ¶
func (tzkt *API) GetNonceRevelations(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetNonceRevelations -
func (*API) GetOriginations ¶
func (tzkt *API) GetOriginations(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetOriginations -
func (*API) GetProposals ¶
func (tzkt *API) GetProposals(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetProposals -
func (*API) GetRegisterConstants ¶ added in v0.1.32
func (tzkt *API) GetRegisterConstants(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetRegisterConstants -
func (*API) GetReveals ¶
func (tzkt *API) GetReveals(ctx context.Context, filters map[string]string) (operations []Operation, err error)
GetReveals -
type AdditionalProperties ¶ added in v0.1.39
type AdditionalProperties struct {
Value *JSONSchema `json:"-"`
}
AdditionalProperties -
func (*AdditionalProperties) UnmarshalJSON ¶ added in v0.1.39
func (props *AdditionalProperties) UnmarshalJSON(data []byte) error
UnmarshalJSON -
type BigMap ¶
type BigMap struct { Ptr int64 `json:"ptr"` Contract Address `json:"contract"` Path string `json:"path"` Active bool `json:"active"` FirstLevel uint64 `json:"firstLevel"` LastLevel uint64 `json:"lastLevel"` TotalKeys uint64 `json:"totalKeys"` ActiveKeys uint64 `json:"activeKeys"` Updates uint64 `json:"updates"` KeyType stdJSON.RawMessage `json:"keyType"` ValueType stdJSON.RawMessage `json:"valueType"` }
BigMap -
type BigMapJSONSchema ¶ added in v0.1.39
type BigMapJSONSchema struct { Name string `json:"name"` Path string `json:"path"` Key JSONSchema `json:"keySchema"` Value JSONSchema `json:"valueSchema"` }
BigMapJSONSchema -
type BigMapKey ¶
type BigMapKey struct { ID uint64 `json:"id"` Active bool `json:"active"` Hash string `json:"hash"` Key string `json:"key"` Value stdJSON.RawMessage `json:"value"` FirstLevel uint64 `json:"firstLevel"` LastLevel uint64 `json:"lastLevel"` Updates uint64 `json:"updates"` }
BigMapKey -
type BigMapKeyUpdate ¶ added in v0.1.24
type BigMapKeyUpdate struct { ID uint64 `json:"id"` Level uint64 `json:"level"` Timestamp time.Time `json:"timestamp"` Action string `json:"action"` Value stdJSON.RawMessage `json:"value"` }
BigMapKeyUpdate -
type BigMapUpdate ¶
type BigMapUpdate struct { ID uint64 `json:"id"` Level uint64 `json:"level"` Timestamp time.Time `json:"timestamp"` Bigmap int64 `json:"bigmap"` Contract Address `json:"contract"` Path string `json:"path"` Action string `json:"action"` Content *BigMapUpdateContent `json:"content,omitempty"` }
BigMapUpdate -
type BigMapUpdateContent ¶
type BigMapUpdateContent struct { Hash string `json:"hash"` Key stdJSON.RawMessage `json:"key"` Value stdJSON.RawMessage `json:"value"` }
BigMapUpdateContent -
type Block ¶
type Block struct { Level uint64 `json:"level"` Hash string `json:"hash"` Timestamp time.Time `json:"timestamp"` Proto int64 `json:"proto"` Priority int64 `json:"priority"` Validations int64 `json:"validations"` Deposit int64 `json:"deposit"` Reward int64 `json:"reward"` Fees int64 `json:"fees"` NonceRevealed bool `json:"nonceRevealed"` Baker Address `json:"baker"` }
Block -
type ContractJSONSchema ¶ added in v0.1.39
type ContractJSONSchema struct { Storage JSONSchema `json:"storageSchema"` Entrypoints []EntrypointJSONSchema `json:"entrypoints"` BigMaps []BigMapJSONSchema `json:"bigMaps"` }
ContractJSONSchema -
type Delegate ¶ added in v0.1.1
type Delegate struct { Type string `json:"type"` Alias string `json:"alias"` Address string `json:"address"` PublicKey string `json:"publicKey"` Balance int64 `json:"balance"` FrozenDeposits int64 `json:"frozenDeposits"` FrozenRewards int64 `json:"frozenRewards"` FrozenFees int64 `json:"frozenFees"` Counter int64 `json:"counter"` ActivationLevel int64 `json:"activationLevel"` StakingBalance int64 `json:"stakingBalance"` NumContracts int64 `json:"numContracts"` NumDelegators int64 `json:"numDelegators"` NumBlocks int64 `json:"numBlocks"` NumEndorsements int64 `json:"numEndorsements"` NumBallots int64 `json:"numBallots"` NumProposals int64 `json:"numProposals"` NumActivations int64 `json:"numActivations"` NumDoubleBaking int64 `json:"numDoubleBaking"` NumDoubleEndorsing int64 `json:"numDoubleEndorsing"` NumNonceRevelations int64 `json:"numNonceRevelations"` NumRevelationPenalties int64 `json:"numRevelationPenalties"` NumDelegations int64 `json:"numDelegations"` NumOriginations int64 `json:"numOriginations"` NumTransactions int64 `json:"numTransactions"` NumReveals int64 `json:"numReveals"` NumMigrations int64 `json:"numMigrations"` FirstActivity int64 `json:"firstActivity"` LastActivity int64 `json:"lastActivity"` FirstActivityTime time.Time `json:"firstActivityTime"` LastActivityTime time.Time `json:"lastActivityTime"` ActivationTime time.Time `json:"activationTime"` Software Software `json:"software"` Active bool `json:"active"` Revealed bool `json:"revealed"` }
Delegate -
type EntrypointJSONSchema ¶ added in v0.1.39
type EntrypointJSONSchema struct { Name string `json:"name"` Parameter JSONSchema `json:"parameterSchema"` }
EntrypointJSONSchema -
type Head ¶
type Head struct { Level uint64 `json:"level"` Hash string `json:"hash"` Protocol string `json:"protocol"` Timestamp time.Time `json:"timestamp"` VotingEpoch int64 `json:"votingEpoch"` VotingPeriod int64 `json:"votingPeriod"` KnownLevel int64 `json:"knownLevel"` LastSync time.Time `json:"lastSync"` Synced bool `json:"synced"` QuoteLevel int64 `json:"quoteLevel"` QuoteBtc float64 `json:"quoteBtc"` QuoteEur float64 `json:"quoteEur"` QuoteUsd float64 `json:"quoteUsd"` }
Head -
type JSONSchema ¶ added in v0.1.39
type JSONSchema struct { Schema string `json:"$schema,omitempty"` Type string `json:"type,omitempty"` Comment string `json:"$comment,omitempty"` Required []string `json:"required,omitempty"` Properties map[string]JSONSchema `json:"properties,omitempty"` OneOf []JSONSchema `json:"oneOf"` AdditionalProperties AdditionalProperties `json:"additionalProperties,omitempty"` PropertyNames *JSONSchema `json:"propertyNames,omitempty"` Items *JSONSchema `json:"items,omitempty"` }
JSONSchema -
type Operation ¶
type Operation struct { ID uint64 `json:"id" mapstructure:"id"` Level uint64 `json:"level" mapstructure:"level"` Hash string `json:"hash" mapstructure:"hash"` Kind string `json:"type" mapstructure:"type"` Block string `json:"block" mapstructure:"block"` Delegate *Address `json:"delegate,omitempty" mapstructure:"delegate,omitempty"` GasUsed *uint64 `json:"gasUsed,omitempty" mapstructure:"gasUsed,omitempty"` BakerFee *uint64 `json:"bakerFee,omitempty" mapstructure:"bakerFee,omitempty"` Parameters *Parameters `json:"parameter,omitempty" mapstructure:"parameter,omitempty"` }
Operation -
type Parameters ¶ added in v0.1.23
type Parameters struct { Entrypoint string `json:"entrypoint"` Value stdJSON.RawMessage `json:"value"` }
Parameters -