Documentation
¶
Index ¶
- type AddressHandler
- func (handler *AddressHandler) Blobs(c echo.Context) error
- func (handler *AddressHandler) Celestials(c echo.Context) error
- func (handler *AddressHandler) Count(c echo.Context) error
- func (handler *AddressHandler) Delegations(c echo.Context) error
- func (handler *AddressHandler) Get(c echo.Context) error
- func (handler *AddressHandler) Grantee(c echo.Context) error
- func (handler *AddressHandler) Grants(c echo.Context) error
- func (handler *AddressHandler) List(c echo.Context) error
- func (handler *AddressHandler) Messages(c echo.Context) error
- func (handler *AddressHandler) Redelegations(c echo.Context) error
- func (handler *AddressHandler) Stats(c echo.Context) error
- func (handler *AddressHandler) Transactions(c echo.Context) error
- func (handler *AddressHandler) Undelegations(c echo.Context) error
- func (handler *AddressHandler) Vestings(c echo.Context) error
- func (handler *AddressHandler) Votes(c echo.Context) error
- type BlockHandler
- func (handler *BlockHandler) Blobs(c echo.Context) error
- func (handler *BlockHandler) BlobsCount(c echo.Context) error
- func (handler *BlockHandler) BlockODS(c echo.Context) error
- func (handler *BlockHandler) Count(c echo.Context) error
- func (handler *BlockHandler) Get(c echo.Context) error
- func (handler *BlockHandler) GetEvents(c echo.Context) error
- func (handler *BlockHandler) GetMessages(c echo.Context) error
- func (handler *BlockHandler) GetStats(c echo.Context) error
- func (handler *BlockHandler) List(c echo.Context) error
- type CelestiaApiValidator
- type ConstantHandler
- type Error
- type GasHandler
- type HyperlaneHandler
- func (handler *HyperlaneHandler) GetIgp(c echo.Context) error
- func (handler *HyperlaneHandler) GetMailbox(c echo.Context) error
- func (handler *HyperlaneHandler) GetToken(c echo.Context) error
- func (handler *HyperlaneHandler) GetTransfer(c echo.Context) error
- func (handler *HyperlaneHandler) ListDomains(c echo.Context) error
- func (handler *HyperlaneHandler) ListIgps(c echo.Context) error
- func (handler *HyperlaneHandler) ListMailboxes(c echo.Context) error
- func (handler *HyperlaneHandler) ListTokens(c echo.Context) error
- func (handler *HyperlaneHandler) ListTransfers(c echo.Context) error
- type IbcHandler
- func (handler *IbcHandler) Get(c echo.Context) error
- func (handler *IbcHandler) GetChannel(c echo.Context) error
- func (handler *IbcHandler) GetConnection(c echo.Context) error
- func (handler *IbcHandler) GetIbcTransfer(c echo.Context) error
- func (handler *IbcHandler) IbcRelayers(c echo.Context) error
- func (handler *IbcHandler) List(c echo.Context) error
- func (handler *IbcHandler) ListChannels(c echo.Context) error
- func (handler *IbcHandler) ListConnections(c echo.Context) error
- func (handler *IbcHandler) ListTransfers(c echo.Context) error
- type MsgTypeArray
- type NamespaceHandler
- func (handler *NamespaceHandler) Blob(c echo.Context) error
- func (handler *NamespaceHandler) BlobMetadata(c echo.Context) error
- func (handler *NamespaceHandler) BlobProofs(c echo.Context) error
- func (handler *NamespaceHandler) Blobs(c echo.Context) error
- func (handler *NamespaceHandler) Get(c echo.Context) error
- func (handler *NamespaceHandler) GetBlobLogs(c echo.Context) error
- func (handler *NamespaceHandler) GetBlobs(c echo.Context) error
- func (handler *NamespaceHandler) GetByHash(c echo.Context) error
- func (handler *NamespaceHandler) GetMessages(c echo.Context) error
- func (handler *NamespaceHandler) GetWithVersion(c echo.Context) error
- func (handler *NamespaceHandler) List(c echo.Context) error
- func (handler *NamespaceHandler) Rollups(c echo.Context) error
- type NoRows
- type ProposalsHandler
- type RollupHandler
- func (handler RollupHandler) AllSeries(c echo.Context) error
- func (handler RollupHandler) BySlug(c echo.Context) error
- func (handler RollupHandler) Count(c echo.Context) error
- func (handler RollupHandler) Distribution(c echo.Context) error
- func (handler RollupHandler) ExportBlobs(c echo.Context) error
- func (handler RollupHandler) Get(c echo.Context) error
- func (handler RollupHandler) GetBlobs(c echo.Context) error
- func (handler RollupHandler) GetNamespaces(c echo.Context) error
- func (handler RollupHandler) GetProviders(c echo.Context) error
- func (handler RollupHandler) Leaderboard(c echo.Context) error
- func (handler RollupHandler) LeaderboardDay(c echo.Context) error
- func (handler RollupHandler) RollupGroupedStats(c echo.Context) error
- func (handler RollupHandler) Stats(c echo.Context) error
- type SearchHandler
- type SignalHandler
- type StateHandler
- type StatsHandler
- func (sh StatsHandler) Change24hBlockStats(c echo.Context) error
- func (sh StatsHandler) HlByDomain(c echo.Context) error
- func (sh StatsHandler) HlSeries(c echo.Context) error
- func (sh StatsHandler) HlTotalSeries(c echo.Context) error
- func (sh StatsHandler) IbcByChains(c echo.Context) error
- func (sh StatsHandler) IbcSeries(c echo.Context) error
- func (sh StatsHandler) IbcSummary(c echo.Context) error
- func (sh StatsHandler) MessagesCount24h(c echo.Context) error
- func (sh StatsHandler) NamespaceSeries(c echo.Context) error
- func (sh StatsHandler) NamespaceUsage(c echo.Context) error
- func (sh StatsHandler) RollupStats24h(c echo.Context) error
- func (sh StatsHandler) Series(c echo.Context) error
- func (sh StatsHandler) SeriesCumulative(c echo.Context) error
- func (sh StatsHandler) SizeGroups(c echo.Context) error
- func (sh StatsHandler) SquareSize(c echo.Context) error
- func (sh StatsHandler) StakingDistribution(c echo.Context) error
- func (sh StatsHandler) StakingSeries(c echo.Context) error
- func (sh StatsHandler) Summary(c echo.Context) error
- func (sh StatsHandler) TPS(c echo.Context) error
- type StatusArray
- type StringArray
- type TxHandler
- func (handler *TxHandler) Blobs(c echo.Context) error
- func (handler *TxHandler) BlobsCount(c echo.Context) error
- func (handler *TxHandler) Count(c echo.Context) error
- func (handler *TxHandler) Genesis(c echo.Context) error
- func (handler *TxHandler) Get(c echo.Context) error
- func (handler *TxHandler) GetEvents(c echo.Context) error
- func (handler *TxHandler) GetMessages(c echo.Context) error
- func (handler *TxHandler) List(c echo.Context) error
- type ValidatorHandler
- func (handler *ValidatorHandler) Blocks(c echo.Context) error
- func (handler *ValidatorHandler) Count(c echo.Context) error
- func (handler *ValidatorHandler) Delegators(c echo.Context) error
- func (handler *ValidatorHandler) Get(c echo.Context) error
- func (handler *ValidatorHandler) Jails(c echo.Context) error
- func (handler *ValidatorHandler) List(c echo.Context) error
- func (handler *ValidatorHandler) Messages(c echo.Context) error
- func (handler *ValidatorHandler) Metrics(c echo.Context) error
- func (handler *ValidatorHandler) TopNMetrics(c echo.Context) error
- func (handler *ValidatorHandler) Uptime(c echo.Context) error
- func (handler *ValidatorHandler) Votes(c echo.Context) error
- type VestingHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddressHandler ¶
type AddressHandler struct {
// contains filtered or unexported fields
}
func NewAddressHandler ¶
func NewAddressHandler( address storage.IAddress, txs storage.ITx, blobLogs storage.IBlobLog, messages storage.IMessage, delegations storage.IDelegation, undelegations storage.IUndelegation, redelegations storage.IRedelegation, vestings storage.IVestingAccount, grants storage.IGrant, celestial celestials.ICelestial, votes storage.IVote, state storage.IState, indexerName string, ) *AddressHandler
func (*AddressHandler) Blobs ¶ added in v1.2.0
func (handler *AddressHandler) Blobs(c echo.Context) error
Blobs godoc
@Summary Get blobs pushed by address
@Description Get blobs pushed by address
@Tags address
@ID address-blobs
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param sort_by query string false "Sort field. If it's empty internal id is used" Enums(time, size)
@Param joins query boolean false "Flag indicating whether entities of transaction and namespace should be attached or not. Default: true"
@Produce json
@Success 200 {array} responses.BlobLog
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/blobs [get]
func (*AddressHandler) Celestials ¶ added in v1.10.17
func (handler *AddressHandler) Celestials(c echo.Context) error
Celestials godoc
@Summary Get list of celestial id for address
@Description Get list of celestial id for address
@Tags address
@ID address-celestials
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Produce json
@Success 200 {array} responses.Celestial
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/celestials [get]
func (*AddressHandler) Count ¶
func (handler *AddressHandler) Count(c echo.Context) error
Count godoc
@Summary Get count of addresses in network
@Description Get count of addresses in network
@Tags address
@ID get-address-count
@Produce json
@Success 200 {integer} uint64
@Failure 500 {object} Error
@Router /address/count [get]
func (*AddressHandler) Delegations ¶ added in v1.6.0
func (handler *AddressHandler) Delegations(c echo.Context) error
Delegations godoc
@Summary Get delegations made by address
@Description Get delegations made by address
@Tags address
@ID address-delegations
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Param show_zero query boolean false "Show zero delegations"
@Produce json
@Success 200 {array} responses.Delegation
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/delegations [get]
func (*AddressHandler) Get ¶
func (handler *AddressHandler) Get(c echo.Context) error
Get godoc
@Summary Get address info
@Description Get address info
@Tags address
@ID get-address
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Produce json
@Success 200 {object} responses.Address
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash} [get]
func (*AddressHandler) Grantee ¶ added in v1.7.0
func (handler *AddressHandler) Grantee(c echo.Context) error
Grantee godoc
@Summary Get grants where address is grantee
@Description Get grants where address is grantee
@Tags address
@ID address-grantee
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Produce json
@Success 200 {array} responses.Grant
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/granters [get]
func (*AddressHandler) Grants ¶ added in v1.7.0
func (handler *AddressHandler) Grants(c echo.Context) error
Grants godoc
@Summary Get grants made by address
@Description Get grants made by address
@Tags address
@ID address-grants
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Produce json
@Success 200 {array} responses.Grant
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/grants [get]
func (*AddressHandler) List ¶
func (handler *AddressHandler) List(c echo.Context) error
List godoc
@Summary List address info
@Description List address info
@Tags address
@ID list-address
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order" Enums(asc, desc)
@Param sort_by query string false "Sort field" Enums(id, delegated, spendable, unbonding, first_height, last_height)
@Produce json
@Success 200 {array} responses.Address
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address [get]
func (*AddressHandler) Messages ¶
func (handler *AddressHandler) Messages(c echo.Context) error
Messages godoc
@Summary Get address messages
@Description Get address messages
@Tags address
@ID address-messages
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Param sort query string false "Sort order" Enums(asc, desc)
@Param msg_type query storageTypes.MsgType false "Comma-separated message types list"
@Produce json
@Success 200 {array} responses.MessageForAddress
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/messages [get]
func (*AddressHandler) Redelegations ¶ added in v1.6.0
func (handler *AddressHandler) Redelegations(c echo.Context) error
Redelegations godoc
@Summary Get redelegations made by address
@Description Get redelegations made by address
@Tags address
@ID address-redelegations
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Produce json
@Success 200 {array} responses.Redelegation
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/redelegations [get]
func (*AddressHandler) Stats ¶ added in v1.7.4
func (handler *AddressHandler) Stats(c echo.Context) error
Stats godoc
@Summary Get address stats
@Description Get address stats
@Tags address
@ID address-stats
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param name path string true "Series name" Enums(gas_used, gas_wanted, fee, tx_count)
@Param timeframe path string true "Timeframe" Enums(hour, day, month)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.HistogramItem
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/stats/{name}/{timeframe} [get]
func (*AddressHandler) Transactions ¶
func (handler *AddressHandler) Transactions(c echo.Context) error
Transactions godoc
@Summary Get address transactions
@Description Get address transactions
@Tags address
@ID address-transactions
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Param sort query string false "Sort order" Enums(asc, desc)
@Param status query storageTypes.Status false "Comma-separated status list"
@Param msg_type query storageTypes.MsgType false "Comma-separated message types list"
@Param from query integer false "Time from in unix timestamp" minimum(1)
@Param to query integer false "Time to in unix timestamp" minimum(1)
@Param height query integer false "Block number" minimum(1)
@Produce json
@Success 200 {array} responses.Tx
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/txs [get]
func (*AddressHandler) Undelegations ¶ added in v1.6.0
func (handler *AddressHandler) Undelegations(c echo.Context) error
Undelegations godoc
@Summary Get undelegations made by address
@Description Get undelegations made by address
@Tags address
@ID address-undelegations
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Produce json
@Success 200 {array} responses.Undelegation
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/undelegations [get]
func (*AddressHandler) Vestings ¶ added in v1.7.0
func (handler *AddressHandler) Vestings(c echo.Context) error
Vestings godoc
@Summary Get vesting for address
@Description Get vesting for address
@Tags address
@ID address-vesting
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Param show_ended query boolean false "Show finished vestings delegations"
@Produce json
@Success 200 {array} responses.Vesting
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/vestings [get]
func (*AddressHandler) Votes ¶ added in v1.12.0
func (handler *AddressHandler) Votes(c echo.Context) error
Votes godoc
@Summary Get list of votes for address
@Description Get list of votes for address
@Tags address
@ID address-votes
@Param hash path string true "Hash" minlength(47) maxlength(47)
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Produce json
@Success 200 {array} responses.Vote
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /address/{hash}/votes [get]
type BlockHandler ¶
type BlockHandler struct {
// contains filtered or unexported fields
}
func NewBlockHandler ¶
func (*BlockHandler) Blobs ¶ added in v1.3.2
func (handler *BlockHandler) Blobs(c echo.Context) error
Blobs godoc
@Summary List blobs which was pushed in the block
@Description List blobs which was pushed in the block
@Tags block
@ID get-block-blobs
@Param height path integer true "Block height" minimum(1)
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param sort_by query string false "Sort field. If it's empty internal id is used" Enums(time, size)
@Produce json
@Success 200 {array} responses.BlobLog
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /block/{height}/blobs [get]
func (*BlockHandler) BlobsCount ¶ added in v1.3.2
func (handler *BlockHandler) BlobsCount(c echo.Context) error
BlobsCount godoc
@Summary Count of blobs which was pushed by transaction
@Description Count of blobs which was pushed by transaction
@Tags block
@ID block-blobs-count
@Param height path integer true "Block height" minimum(1)
@Produce json
@Success 200 {integer} uint64
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /block/{height}/blobs/count [get]
func (*BlockHandler) BlockODS ¶ added in v1.7.4
func (handler *BlockHandler) BlockODS(c echo.Context) error
BlockODS godoc
@Summary ODS for block
@Description ODS for block
@Tags block
@ID block-ods
@Param height path integer true "Block height" minimum(1)
@Produce json
@x-internal true
@Success 200 {object} responses.ODS
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /block/{height}/ods [get]
func (*BlockHandler) Count ¶
func (handler *BlockHandler) Count(c echo.Context) error
Count godoc
@Summary Get count of blocks in network
@Description Get count of blocks in network
@Tags block
@ID get-block-count
@Produce json
@Success 200 {integer} uint64
@Failure 500 {object} Error
@Router /block/count [get]
func (*BlockHandler) Get ¶
func (handler *BlockHandler) Get(c echo.Context) error
Get godoc
@Summary Get block info
@Description Get block info
@Tags block
@ID get-block
@Param height path integer true "Block height" minimum(1)
@Param stats query boolean false "Need join stats for block"
@Produce json
@Success 200 {object} responses.Block
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /block/{height} [get]
func (*BlockHandler) GetEvents ¶
func (handler *BlockHandler) GetEvents(c echo.Context) error
GetEvents godoc
@Summary Get events from begin and end of block
@Description Get events from begin and end of block
@Tags block
@ID get-block-events
@Param height path integer true "Block height" minimum(1)
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {array} responses.Event
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /block/{height}/events [get]
func (*BlockHandler) GetMessages ¶ added in v1.0.4
func (handler *BlockHandler) GetMessages(c echo.Context) error
GetMessages godoc
@Summary Get messages contained in the block
@Description Get messages contained in the block
@Tags block
@ID get-block-messages
@Param height path integer true "Block height" minimum(1)
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param msg_type query types.MsgType false "Comma-separated message types list"
@Param excluded_msg_type query types.MsgType false "Comma-separated message types which should be excluded from list"
@Produce json
@Success 200 {array} responses.Message
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /block/{height}/messages [get]
func (*BlockHandler) GetStats ¶
func (handler *BlockHandler) GetStats(c echo.Context) error
GetStats godoc
@Summary Get block stats by height
@Description Get block stats by height
@Tags block
@ID get-block-stats
@Param height path integer true "Block height" minimum(1)
@Produce json
@Success 200 {object} responses.BlockStats
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /block/{height}/stats [get]
func (*BlockHandler) List ¶
func (handler *BlockHandler) List(c echo.Context) error
List godoc
@Summary List blocks info
@Description List blocks info
@Tags block
@ID list-block
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order" Enums(asc, desc)
@Param stats query boolean false "Need join stats for block"
@Produce json
@Success 200 {array} responses.Block
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /block [get]
type CelestiaApiValidator ¶
type CelestiaApiValidator struct {
// contains filtered or unexported fields
}
func NewCelestiaApiValidator ¶
func NewCelestiaApiValidator() *CelestiaApiValidator
func (*CelestiaApiValidator) Validate ¶
func (v *CelestiaApiValidator) Validate(i interface{}) error
type ConstantHandler ¶
type ConstantHandler struct {
// contains filtered or unexported fields
}
func NewConstantHandler ¶
func NewConstantHandler( constants storage.IConstant, denomMetadata storage.IDenomMetadata, rollup storage.IRollup, ) *ConstantHandler
func (*ConstantHandler) Enums ¶ added in v1.1.3
func (handler *ConstantHandler) Enums(c echo.Context) error
Enums godoc
@Summary Get celenium enumerators
@Description Get celenium enumerators
@Tags general
@ID get-enums
@Produce json
@Success 200 {object} responses.Enums
@Router /enums [get]
func (*ConstantHandler) Get ¶
func (handler *ConstantHandler) Get(c echo.Context) error
Get godoc
@Summary Get network constants
@Description Get network constants
@Tags general
@ID get-constants
@Produce json
@Success 200 {object} responses.Constants
@Success 204
@Failure 500 {object} Error
@Router /constants [get]
type GasHandler ¶ added in v1.1.0
type GasHandler struct {
// contains filtered or unexported fields
}
GasHandler -
func NewGasHandler ¶ added in v1.1.0
func (GasHandler) EstimateForPfb ¶ added in v1.1.0
func (handler GasHandler) EstimateForPfb(c echo.Context) error
EstimateForPfb godoc
@Summary Get estimated gas for pay for blob
@Description Get estimated gas for pay for blob message with certain values of blob sizes
@Tags gas
@ID gas-estimate-for-pfb
@Param sizes query string true "Comma-separated array of blob sizes"
@Param versions query string false "Comma-separated array of share versions. Default is 0"
@Produce json
@Success 200 {object} uint64
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /gas/estimate_for_pfb [get]
func (GasHandler) EstimatePrice ¶ added in v1.1.0
func (handler GasHandler) EstimatePrice(c echo.Context) error
EstimatePrice godoc
@Summary Get estimated gas price
@Description Get estimated gas price based on historical data
@Tags gas
@ID gas-price
@Produce json
@Success 200 {object} responses.GasPrice
@Router /gas/price [get]
func (GasHandler) EstimatePricePriority ¶ added in v1.11.0
func (handler GasHandler) EstimatePricePriority(c echo.Context) error
EstimatePricePriority godoc
@Summary Get estimated gas price with priority filter
@Description Get estimated gas price with priority filter based on historical data
@Tags gas
@ID gas-price-priority
@Param priority path string true "Priority" Enums(slow, median, fast)
@Produce json
@Success 200 {string} string
@Router /gas/price/{priority} [get]
type HyperlaneHandler ¶ added in v1.15.0
type HyperlaneHandler struct {
// contains filtered or unexported fields
}
func NewHyperlaneHandler ¶ added in v1.15.0
func NewHyperlaneHandler( mailbox storage.IHLMailbox, tokens storage.IHLToken, transfers storage.IHLTransfer, txs storage.ITx, address storage.IAddress, igp storage.IHLIGP, chainStore hyperlane.IChainStore, ) *HyperlaneHandler
func (*HyperlaneHandler) GetIgp ¶ added in v1.17.1
func (handler *HyperlaneHandler) GetIgp(c echo.Context) error
GetIgp godoc
@Summary Get IGP by id
@Description Get IGP by id
@Tags hyperlane
@ID get-hyperlane-igp
@Param id path integer true "Internal identity" mininum(1)
@Produce json
@Success 200 {object} responses.HyperlaneIgp
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /hyperlane/igp/{id} [get]
func (*HyperlaneHandler) GetMailbox ¶ added in v1.15.0
func (handler *HyperlaneHandler) GetMailbox(c echo.Context) error
GetMailbox godoc
@Summary Get hyperlane mailbox info
@Description Get hyperlane mailbox info
@Tags hyperlane
@ID get-hyperlane-mailbox
@Param id path string true "Hyperlane mailbox id"
@Produce json
@Success 200 {object} responses.HyperlaneMailbox
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /hyperlane/mailbox/{id} [get]
func (*HyperlaneHandler) GetToken ¶ added in v1.15.0
func (handler *HyperlaneHandler) GetToken(c echo.Context) error
GetToken godoc
@Summary Get hyperlane token info
@Description Get hyperlane token info
@Tags hyperlane
@ID get-hyperlane-token
@Param id path string true "Hyperlane token id"
@Produce json
@Success 200 {object} responses.HyperlaneToken
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /hyperlane/token/{id} [get]
func (*HyperlaneHandler) GetTransfer ¶ added in v1.15.22
func (handler *HyperlaneHandler) GetTransfer(c echo.Context) error
GetTransfer godoc
@Summary Get transfer by id
@Description Get transfer by id
@Tags hyperlane
@ID get-hyperlane-transfer
@Param id path integer true "Internal identity" mininum(1)
@Produce json
@Success 200 {object} responses.HyperlaneTransfer
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /hyperlane/transfer/{id} [get]
func (*HyperlaneHandler) ListDomains ¶ added in v1.15.24
func (handler *HyperlaneHandler) ListDomains(c echo.Context) error
ListDomains godoc
@Summary List hyperlane domains info
@Description List hyperlane domains info
@Tags hyperlane
@ID list-hyperlane-domains
@Produce json
@Success 200 {array} responses.DomainMetadata
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /hyperlane/domains [get]
func (*HyperlaneHandler) ListIgps ¶ added in v1.17.1
func (handler *HyperlaneHandler) ListIgps(c echo.Context) error
ListIgps godoc
@Summary List hyperlane Interchain Gas Paymaster (IGP)
@Description List hyperlane Interchain Gas Paymaster (IGP)
@Tags hyperlane
@ID list-hyperlane-igps
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Produce json
@Success 200 {array} responses.HyperlaneIgp
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /hyperlane/igp [get]
func (*HyperlaneHandler) ListMailboxes ¶ added in v1.15.0
func (handler *HyperlaneHandler) ListMailboxes(c echo.Context) error
ListMailboxes godoc
@Summary List hyperlane mailboxes info
@Description List hyperlane mailboxes info
@Tags hyperlane
@ID list-hyperlane-mailbox
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {array} responses.HyperlaneMailbox
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /hyperlane/mailbox [get]
func (*HyperlaneHandler) ListTokens ¶ added in v1.15.0
func (handler *HyperlaneHandler) ListTokens(c echo.Context) error
ListTokens godoc
@Summary List hyperlane tokens info
@Description List hyperlane tokens info
@Tags hyperlane
@ID list-hyperlane-tokens
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param owner query string false "Owner celestia address" minlength(47) maxlength(47)
@Param mailbox query string false "Mailbox hexademical identity"
@Param type query string false "Comma-separated string of tokens type" Enums(synthetic, collateral)
@Produce json
@Success 200 {array} responses.HyperlaneToken
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /hyperlane/token [get]
func (*HyperlaneHandler) ListTransfers ¶ added in v1.15.0
func (handler *HyperlaneHandler) ListTransfers(c echo.Context) error
ListTransfers godoc
@Summary List hyperlane transfers info
@Description List hyperlane transfers info
@Tags hyperlane
@ID list-hyperlane-transfers
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param address query string false "Celestia address" minlength(47) maxlength(47)
@Param relayer query string false "Celestia address of relayer" minlength(47) maxlength(47)
@Param mailbox query string false "Mailbox hexademical identity"
@Param token query string false "Token hexademical identity"
@Param type query string false "Comma-separated string of transfer type" Enums(send, receive)
@Param domain query integer false "Domain of counterparty chain" mininum(1)
@Param hash query string false "Transaction hash in hexadecimal" minlength(64) maxlength(64)
@Produce json
@Success 200 {array} responses.HyperlaneTransfer
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /hyperlane/transfer [get]
type IbcHandler ¶ added in v1.13.0
type IbcHandler struct {
// contains filtered or unexported fields
}
func NewIbcHandler ¶ added in v1.13.0
func NewIbcHandler( clients storage.IIbcClient, conns storage.IIbcConnection, channels storage.IIbcChannel, transfers storage.IIbcTransfer, address storage.IAddress, txs storage.ITx, store ibc_relayer.IRelayerStore, ) *IbcHandler
func (*IbcHandler) Get ¶ added in v1.13.0
func (handler *IbcHandler) Get(c echo.Context) error
Get godoc
@Summary Get ibc client info
@Description Get ibc client info
@Tags ibc
@ID get-ibc-client
@Param id path string true "IBC client id"
@Produce json
@Success 200 {object} responses.IbcClient
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /ibc/client/{id} [get]
func (*IbcHandler) GetChannel ¶ added in v1.13.0
func (handler *IbcHandler) GetChannel(c echo.Context) error
GetChannel godoc
@Summary Get ibc channel info
@Description Get ibc channel info
@Tags ibc
@ID get-ibc-channel
@Param id path string true "IBC channel id"
@Produce json
@Success 200 {object} responses.IbcChannel
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /ibc/channel/{id} [get]
func (*IbcHandler) GetConnection ¶ added in v1.13.0
func (handler *IbcHandler) GetConnection(c echo.Context) error
GetConnection godoc
@Summary Get ibc connection info
@Description Get ibc client info
@Tags ibc
@ID get-ibc-conn
@Param id path string true "IBC connection id"
@Produce json
@Success 200 {object} responses.IbcConnection
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /ibc/connection/{id} [get]
func (*IbcHandler) GetIbcTransfer ¶ added in v1.15.22
func (handler *IbcHandler) GetIbcTransfer(c echo.Context) error
GetIbcTransfer godoc
@Summary Get transfer by id
@Description Get transfer by id
@Tags ibc
@ID get-ibc-transfer
@Param id path integer true "Internal identity" mininum(1)
@Produce json
@Success 200 {object} responses.IbcTransfer
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /ibc/transfer/{id} [get]
func (*IbcHandler) IbcRelayers ¶ added in v1.15.28
func (handler *IbcHandler) IbcRelayers(c echo.Context) error
IbcRelayers godoc
@Summary List ibc relayers
@Description List ibc relayers
@Tags ibc
@ID get-ibc-relayers
@Produce json
@Success 200 {array} responses.Relayer
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /ibc/relayers [get]
func (*IbcHandler) List ¶ added in v1.13.0
func (handler *IbcHandler) List(c echo.Context) error
List godoc
@Summary Get ibc clients info
@Description Get ibc clients info
@Tags ibc
@ID get-ibc-clients
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param chain_id query string false "Chain id"
@Param creator query string false "Creator address" minlength(47) maxlength(47)
@Produce json
@Success 200 {array} responses.IbcClient
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /ibc/client [get]
func (*IbcHandler) ListChannels ¶ added in v1.13.0
func (handler *IbcHandler) ListChannels(c echo.Context) error
ListChannels godoc
@Summary Get ibc channels info
@Description Get ibc channels info
@Tags ibc
@ID get-ibc-channels
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param client_id query string false "Client id"
@Param connection_id query string false "Connection id"
@Param status query string false "Channel status" Enums(initialization, opened, closed)
@Produce json
@Success 200 {array} responses.IbcChannel
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /ibc/channel [get]
func (*IbcHandler) ListConnections ¶ added in v1.13.0
func (handler *IbcHandler) ListConnections(c echo.Context) error
ListConnections godoc
@Summary Get ibc connections info
@Description Get ibc connections info
@Tags ibc
@ID get-ibc-conns
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param client_id query string false "Client id"
@Produce json
@Success 200 {array} responses.IbcConnection
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /ibc/connection [get]
func (*IbcHandler) ListTransfers ¶ added in v1.13.0
func (handler *IbcHandler) ListTransfers(c echo.Context) error
ListTransfers godoc
@Summary Get ibc transfers info
@Description Get ibc transfers info
@Tags ibc
@ID get-ibc-transfers
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param channel_id query string false "Channel id"
@Param chain_id query string false "Chain id"
@Param receiver query string false "Receiver address" minlength(47) maxlength(47)
@Param sender query string false "Sender address" minlength(47) maxlength(47)
@Param address query string false "Address: receiver or sender" minlength(47) maxlength(47)
@Param hash query string false "Transaction hash in hexadecimal" minlength(64) maxlength(64)
@Produce json
@Success 200 {array} responses.IbcTransfer
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /ibc/transfer [get]
type MsgTypeArray ¶
type MsgTypeArray StringArray
type NamespaceHandler ¶
type NamespaceHandler struct {
// contains filtered or unexported fields
}
func NewNamespaceHandler ¶
func (*NamespaceHandler) Blob ¶ added in v1.1.2
func (handler *NamespaceHandler) Blob(c echo.Context) error
Blob godoc
@Summary Get namespace blob by commitment on height
@Description Returns blob.
@Tags namespace
@ID get-blob
@Param request body postBlobRequest true "Request body containing height, commitment and namespace hash"
@Accept json
@Produce json
@Success 200 {object} responses.Blob
@Failure 400 {object} Error
@Router /blob [post]
@securityDefinitions.apikey ApiKeyAuth
@in header
@name apikey
@description To authorize your requests you have to select the required tariff on our site. Then you receive api key to authorize. Api key should be passed via request header `apikey`.
func (*NamespaceHandler) BlobMetadata ¶ added in v1.8.1
func (handler *NamespaceHandler) BlobMetadata(c echo.Context) error
BlobMetadata godoc
@Summary Get blob metadata by commitment on height
@Description Returns blob metadata
@Tags namespace
@ID get-blob-metadata
@Param request body postBlobRequest true "Request body containing height, commitment and namespace hash"
@Accept json
@Produce json
@Success 200 {object} responses.BlobLog
@Failure 400 {object} Error
@Router /blob/metadata [post]
@securityDefinitions.apikey ApiKeyAuth
@in header
@name apikey
@description To authorize your requests you have to select the required tariff on our site. Then you receive api key to authorize. Api key should be passed via request header `apikey`.
func (*NamespaceHandler) BlobProofs ¶ added in v1.10.10
func (handler *NamespaceHandler) BlobProofs(c echo.Context) error
BlobProofs godoc
@Summary Get blob inclusion proofs
@Description Returns blob inclusion proofs
@Tags namespace
@ID get-blob-proof
@Param request body postBlobRequest true "Request body containing height, commitment and namespace hash"
@Accept json
@Produce json
@Success 200 {object} responses.BlobLog
@Failure 400 {object} Error
@Router /blob/proofs [get]
func (*NamespaceHandler) Blobs ¶ added in v1.10.0
func (handler *NamespaceHandler) Blobs(c echo.Context) error
Blobs godoc
@Summary List all blobs with filters
@Description Returns blobs
@Tags namespace
@ID get-blobs
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param sort_by query string false "Sort field. If it's empty internal id is used" Enums(time, size)
@Param commitment query string false "Commitment value in URLbase64 format"
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Param signers query string false "Comma-separated celestia addresses"
@Param namespaces query string false "Comma-separated celestia namespaces"
@Param cursor query integer false "Last entity id which is used for cursor pagination" mininum(1)
@Accept json
@Produce json
@Success 200 {array} responses.LightBlobLog
@Failure 400 {object} Error
@Router /blob [get]
func (*NamespaceHandler) Get ¶
func (handler *NamespaceHandler) Get(c echo.Context) error
Get godoc
@Summary Get namespace info
@Description Returns array of namespace versions
@Tags namespace
@ID get-namespace
@Param id path string true "Namespace id in hexadecimal" minlength(56) maxlength(56)
@Produce json
@Success 200 {array} responses.Namespace
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /namespace/{id} [get]
func (*NamespaceHandler) GetBlobLogs ¶ added in v1.2.0
func (handler *NamespaceHandler) GetBlobLogs(c echo.Context) error
GetBlobLogs godoc
@Summary Get blob changes for namespace
@Description Returns blob changes for namespace
@Tags namespace
@ID get-blob-logs
@Param id path string true "Namespace id in hexadecimal" minlength(56) maxlength(56)
@Param version path integer true "Version of namespace"
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param sort_by query string false "Sort field. If it's empty internal id is used" Enums(time, size)
@Param commitment query string false "Commitment value in URLbase64 format"
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Param joins query boolean false "Flag indicating whether entities of rollup, transaction and signer should be attached or not. Default: true"
@Param signers query string false "Comma-separated celestia addresses"
@Param cursor query integer false "Last entity id which is used for cursor pagination" mininum(1)
@Produce json
@Success 200 {array} responses.BlobLog
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /namespace/{id}/{version}/blobs [get]
func (*NamespaceHandler) GetBlobs ¶
func (handler *NamespaceHandler) GetBlobs(c echo.Context) error
GetBlobs godoc
@Summary Get namespace blobs on height
@Description Returns blobs
@Tags namespace
@ID get-namespace-blobs
@Param hash path string true "Base64-encoded namespace id and version"
@Param height path integer true "Block heigth" minimum(1)
@Produce json
@Success 200 {array} responses.Blob
@Failure 400 {object} Error
@Router /namespace_by_hash/{hash}/{height} [get]
func (*NamespaceHandler) GetByHash ¶
func (handler *NamespaceHandler) GetByHash(c echo.Context) error
GetByHash godoc
@Summary Get namespace info by base64
@Description Returns namespace by base64 encoded identity
@Tags namespace
@ID get-namespace-base64
@Param hash path string true "Base64-encoded namespace id and version"
@Produce json
@Success 200 {object} responses.Namespace
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /namespace_by_hash/{hash} [get]
func (*NamespaceHandler) GetMessages ¶
func (handler *NamespaceHandler) GetMessages(c echo.Context) error
GetMessages godoc
@Summary Get namespace messages by id and version
@Description Returns namespace messages by version byte and namespace id
@Tags namespace
@ID get-namespace-messages
@Param id path string true "Namespace id in hexadecimal" minlength(56) maxlength(56)
@Param version path integer true "Version of namespace"
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {array} responses.NamespaceMessage
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /namespace/{id}/{version}/messages [get]
func (*NamespaceHandler) GetWithVersion ¶
func (handler *NamespaceHandler) GetWithVersion(c echo.Context) error
GetWithVersion godoc
@Summary Get namespace info by id and version
@Description Returns namespace by version byte and namespace id
@Tags namespace
@ID get-namespace-by-version-and-id
@Param id path string true "Namespace id in hexadecimal" minlength(56) maxlength(56)
@Param version path integer true "Version of namespace"
@Produce json
@Success 200 {object} responses.Namespace
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /namespace/{id}/{version} [get]
func (*NamespaceHandler) List ¶
func (handler *NamespaceHandler) List(c echo.Context) error
List godoc
@Summary List namespace info
@Description List namespace info
@Tags namespace
@ID list-namespace
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param sort_by query string false "Sort field. If it's empty internal id is used" Enums(time, pfb_count, size)
@Produce json
@Success 200 {array} responses.Namespace
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /namespace [get]
func (*NamespaceHandler) Rollups ¶ added in v1.5.0
func (handler *NamespaceHandler) Rollups(c echo.Context) error
Rollups godoc
@Summary List rollups using the namespace
@Description List rollups using the namespace
@Tags namespace
@ID get-namespace-rollups
@Param id path string true "Namespace id in hexadecimal" minlength(56) maxlength(56)
@Param version path integer true "Version of namespace"
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {array} responses.Rollup
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /namespace/{id}/{version}/rollups [get]
type ProposalsHandler ¶ added in v1.12.0
type ProposalsHandler struct {
// contains filtered or unexported fields
}
ProposalsHandler -
func NewProposalsHandler ¶ added in v1.12.0
func NewProposalsHandler( proposals storage.IProposal, votes storage.IVote, address storage.IAddress, validators storage.IValidator, ) ProposalsHandler
func (*ProposalsHandler) Get ¶ added in v1.12.0
func (handler *ProposalsHandler) Get(c echo.Context) error
Get godoc
@Summary Get proposal info
@Description Get proposal info
@Tags proposal
@ID get-proposal
@Param id path integer true "Internal identity" mininum(1)
@Produce json
@Success 200 {object} responses.Proposal
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /proposal/{id} [get]
func (*ProposalsHandler) List ¶ added in v1.12.0
func (handler *ProposalsHandler) List(c echo.Context) error
List godoc
@Summary List proposal info
@Description List proposal info
@Tags proposal
@ID list-proposal
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param proposer query string false "Proposer celestia address" minlength(47) maxlength(47)
@Param status query string false "Comma-separated proposal status list"
@Param type query string false "Comma-separated proposal type list"
@Produce json
@Success 200 {array} responses.Proposal
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /proposal [get]
func (*ProposalsHandler) Votes ¶ added in v1.12.0
func (handler *ProposalsHandler) Votes(c echo.Context) error
Votes godoc
@Summary Get proposal's votes @Description Get proposal's votes @Tags proposal @ID proposal-votes @Param id path integer true "Internal identity" mininum(1) @Param limit query integer false "Count of requested entities" mininum(1) maximum(100) @Param offset query integer false "Offset" mininum(1)
@Param option query string true "Option" Enums(yes, no, no_with_veto, abstain) @Param voter query string true "Voter type" Enums(address, validator) @Param address query string false "Voter address" minlength(47) maxlength(47) @Param validator query string false "Voter address" minlength(54) maxlength(54)
@Produce json
@Success 200 {array} responses.Vote
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /proposal/{id}/votes [get]
type RollupHandler ¶ added in v1.2.0
type RollupHandler struct {
// contains filtered or unexported fields
}
func NewRollupHandler ¶ added in v1.2.0
func NewRollupHandler( rollups storage.IRollup, providers storage.IRollupProvider, namespace storage.INamespace, blobs storage.IBlobLog, ) RollupHandler
func (RollupHandler) AllSeries ¶ added in v1.9.10
func (handler RollupHandler) AllSeries(c echo.Context) error
AllSeries godoc
@Summary Get series for all rollups
@Description Get series for all rollups
@Tags rollup
@ID get-rollup-all-series
@Param timeframe path string true "Timeframe" Enums(hour, day, month)
@Produce json
@Success 200 {array} responses.RollupAllSeriesResponse
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/stats/series/{timeframe} [get]
func (RollupHandler) BySlug ¶ added in v1.4.0
func (handler RollupHandler) BySlug(c echo.Context) error
BySlug godoc
@Summary Get rollup by slug
@Description Get rollup by slug
@Tags rollup
@ID get-rollup-by-slug
@Param slug path string true "Slug"
@Produce json
@Success 200 {object} responses.Rollup
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/slug/{slug} [get]
func (RollupHandler) Count ¶ added in v1.3.2
func (handler RollupHandler) Count(c echo.Context) error
Count godoc
@Summary Get count of rollups in network
@Description Get count of rollups in network
@Tags rollup
@ID get-rollups-count
@Produce json
@Success 200 {integer} uint64
@Failure 500 {object} Error
@Router /rollup/count [get]
func (RollupHandler) Distribution ¶ added in v1.6.1
func (handler RollupHandler) Distribution(c echo.Context) error
Distribution godoc
@Summary Get rollup distribution
@Description Get rollup distribution
@Tags rollup
@ID get-rollup-distribution
@Param id path integer true "Internal identity" mininum(1)
@Param name path string true "Series name" Enums(blobs_count, size, size_per_blob, fee_per_blob)
@Param timeframe path string true "Timeframe" Enums(hour, day)
@Produce json
@Success 200 {array} responses.DistributionItem
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/{id}/distribution/{name}/{timeframe} [get]
func (RollupHandler) ExportBlobs ¶ added in v1.7.0
func (handler RollupHandler) ExportBlobs(c echo.Context) error
ExportBlobs godoc
@Summary Export rollup blobs
@Description Export rollup blobs
@Tags rollup
@ID rollup-export
@Param id path integer true "Internal identity" mininum(1)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Success 200
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/{id}/export [get]
func (RollupHandler) Get ¶ added in v1.2.0
func (handler RollupHandler) Get(c echo.Context) error
Get godoc
@Summary Get rollup info
@Description Get rollup info
@Tags rollup
@ID get-rollup
@Param id path integer true "Internal identity" mininum(1)
@Produce json
@Success 200 {object} responses.Rollup
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/{id} [get]
func (RollupHandler) GetBlobs ¶ added in v1.2.0
func (handler RollupHandler) GetBlobs(c echo.Context) error
GetBlobs godoc
@Summary Get rollup blobs
@Description Get rollup blobs
@Tags rollup
@ID get-rollup-blobs
@Param id path integer true "Internal identity" mininum(1)
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param sort_by query string false "Sort field. If it's empty internal id is used" Enums(time, size)
@Param joins query boolean false "Flag indicating whether entities of transaction and signer should be attached or not. Default: true"
@Produce json
@Success 200 {array} responses.BlobLog
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/{id}/blobs [get]
func (RollupHandler) GetNamespaces ¶ added in v1.2.0
func (handler RollupHandler) GetNamespaces(c echo.Context) error
GetNamespaces godoc
@Summary Get rollup namespaces info
@Description Get rollup namespaces info
@Tags rollup
@ID get-rollup-namespaces
@Param id path integer true "Internal identity" mininum(1)
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {array} responses.Namespace
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/{id}/namespaces [get]
func (RollupHandler) GetProviders ¶ added in v1.17.1
func (handler RollupHandler) GetProviders(c echo.Context) error
GetProviders godoc
@Summary Get rollup providers info
@Description Get rollup providers info
@Tags rollup
@ID get-rollup-providers
@Param id path integer true "Internal identity" mininum(1)
@Produce json
@Success 200 {array} responses.RollupProvider
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/{id}/providers [get]
func (RollupHandler) Leaderboard ¶ added in v1.2.0
func (handler RollupHandler) Leaderboard(c echo.Context) error
Leaderboard godoc
@Summary List rollups info
@Description List rollups info
@Tags rollup
@ID list-rollup
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param sort_by query string false "Sort field. Default: size" Enums(time, blobs_count, size, fee)
@Param category query string false "Comma-separated rollup category list"
@Param tags query string false "Comma-separated rollup tags list"
@Param stack query string false "Comma-separated rollup stack list"
@Param provider query string false "Comma-separated rollup provider list"
@Param is_active query boolean false "If true, shows rollups with activity over the last month"
@Produce json
@Success 200 {array} responses.RollupWithStats
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup [get]
func (RollupHandler) LeaderboardDay ¶ added in v1.9.10
func (handler RollupHandler) LeaderboardDay(c echo.Context) error
LeaderboardDay godoc
@Summary List rollups info with stats by previous 24 hours
@Description List rollups info with stats by previous 24 hours
@Tags rollup
@ID list-rollup-24h
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param sort_by query string false "Sort field. Default: mb_price" Enums(avg_size, blobs_count, total_size, total_fee, throughput, namespace_count, pfb_count, mb_price)
@Param category query string false "Comma-separated rollup category list"
@Param tags query string false "Comma-separated rollup tags list"
@Param stack query string false "Comma-separated rollup stack list"
@Param provider query string false "Comma-separated rollup provider list"
@Produce json
@Success 200 {array} responses.RollupWithDayStats
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/day [get]
func (RollupHandler) RollupGroupedStats ¶ added in v1.10.8
func (handler RollupHandler) RollupGroupedStats(c echo.Context) error
RollupGroupedStats godoc
@Summary Rollup Grouped Statistics
@Description Rollup Grouped Statistics
@Tags rollup
@ID rollup-grouped-statistics
@Param func query string false "Aggregate function" Enums(sum, avg)
@Param column query string false "Group column" Enums(stack, type, category, vm, provider)
@Produce json
@Success 200 {array} responses.RollupGroupedStats
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/group [get]
func (RollupHandler) Stats ¶ added in v1.2.0
func (handler RollupHandler) Stats(c echo.Context) error
Stats godoc
@Summary Get rollup stats
@Description Get rollup stats
@Tags rollup
@ID get-rollup-stats
@Param id path integer true "Internal identity" mininum(1)
@Param name path string true "Series name" Enums(blobs_count, size, size_per_blob, fee)
@Param timeframe path string true "Timeframe" Enums(hour, day, month)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.HistogramItem
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /rollup/{id}/stats/{name}/{timeframe} [get]
type SearchHandler ¶
type SearchHandler struct {
// contains filtered or unexported fields
}
func NewSearchHandler ¶
func NewSearchHandler( search storage.ISearch, address storage.IAddress, block storage.IBlock, tx storage.ITx, namespace storage.INamespace, validator storage.IValidator, rollup storage.IRollup, celestials celestials.ICelestial, ) SearchHandler
func (SearchHandler) Search ¶
func (handler SearchHandler) Search(c echo.Context) error
Search godoc
@Summary Search by hash
@Description.markdown search
@Tags search
@ID search
@Param query query string true "Search string"
@Produce json
@Success 200 {array} responses.SearchItem
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /search [get]
type SignalHandler ¶ added in v1.15.28
type SignalHandler struct {
// contains filtered or unexported fields
}
func NewSignalHandler ¶ added in v1.15.28
func NewSignalHandler( signals storage.ISignalVersion, upgrades storage.IUpgrade, validator storage.IValidator, tx storage.ITx, address storage.IAddress, ) *SignalHandler
func (*SignalHandler) List ¶ added in v1.15.28
func (handler *SignalHandler) List(c echo.Context) error
List godoc
@Summary List signals
@Description List signals
@Tags signal
@ID list-signal
@Param version query integer false "Version"
@Param validator_id query integer false "Validator internal id"
@Param tx_hash query string false "Transaction hash"
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Produce json
@Success 200 {array} responses.SignalVersion
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /signal [get]
func (*SignalHandler) Upgrade ¶ added in v1.17.2
func (handler *SignalHandler) Upgrade(c echo.Context) error
Upgrade godoc
@Summary Get upgrade by version
@Description Get upgrade by version
@Tags signal
@ID get-upgrade
@Param version path integer true "Upgrade version"
@Produce json
@Success 200 {object} responses.Upgrade
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /signal/upgrade/{version} [get]
func (*SignalHandler) Upgrades ¶ added in v1.15.28
func (handler *SignalHandler) Upgrades(c echo.Context) error
Upgrades godoc
@Summary List upgrades
@Description List upgrades
@Tags signal
@ID list-upgrades
@Param height query integer false "Number of block"
@Param tx_hash query string false "Transaction hash"
@Param signer query string false "Signer address"
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Produce json
@Success 200 {array} responses.Upgrade
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /signal/upgrade [get]
type StateHandler ¶
type StateHandler struct {
// contains filtered or unexported fields
}
func NewStateHandler ¶
func NewStateHandler(state storage.IState, validator storage.IValidator, indexerName string) *StateHandler
func (*StateHandler) Head ¶
func (sh *StateHandler) Head(c echo.Context) error
Head godoc
@Summary Get current indexer head
@Description Get current indexer head
@Tags general
@ID head
@Produce json
@Success 200 {object} responses.State
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /head [get]
type StatsHandler ¶
type StatsHandler struct {
// contains filtered or unexported fields
}
func NewStatsHandler ¶
func NewStatsHandler( repo storage.IStats, nsRepo storage.INamespace, ibc storage.IIbcTransfer, ibcChannels storage.IIbcChannel, hyperlane storage.IHLTransfer, chainStore hyperlane.IChainStore, state storage.IState, ) StatsHandler
func (StatsHandler) Change24hBlockStats ¶ added in v1.9.7
func (sh StatsHandler) Change24hBlockStats(c echo.Context) error
Change24hBlockStats godoc
@Summary Get changes for 24 hours
@Description Get changes for 24 hours
@Tags stats
@ID stats-24h-changes
@Produce json
@Success 200 {array} responses.Change24hBlockStats
@Failure 500 {object} Error
@Router /stats/changes_24h [get]
func (StatsHandler) HlByDomain ¶ added in v1.15.24
func (sh StatsHandler) HlByDomain(c echo.Context) error
HlByDomain godoc
@Summary Get stats for hyperlane transfers splitted by domain
@Description Get stats for hyperlane transfers splitted by domain
@Tags stats
@ID stats-hl-domains
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {array} responses.HlDomainStats
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/hyperlane/chains [get]
func (StatsHandler) HlSeries ¶ added in v1.15.24
func (sh StatsHandler) HlSeries(c echo.Context) error
HlSeries godoc
@Summary Get histogram for hyperlane domains with precomputed stats
@Description Get histogram for hyperlane domains with precomputed stats by series name and timeframe
@Tags stats
@ID stats-hl-series
@Param id path integer true "Domain id"
@Param timeframe path string true "Timeframe" Enums(hour, day, month)
@Param name path string true "Series name" Enums(count, amount)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.HistogramItem
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/hyperlane/series/{id}/{name}/{timeframe} [get]
func (StatsHandler) HlTotalSeries ¶ added in v1.15.25
func (sh StatsHandler) HlTotalSeries(c echo.Context) error
HlTotalSeries godoc
@Summary Get histogram for aggregated hyperlane domains with precomputed stats
@Description Get histogram for aggregated hyperlane domains with precomputed stats by series name and timeframe
@Tags stats
@ID stats-hl-total-series
@Param timeframe path string true "Timeframe" Enums(hour, day, month)
@Param name path string true "Series name" Enums(count, amount)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.HistogramItem
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/hyperlane/chains/{name}/{timeframe} [get]
func (StatsHandler) IbcByChains ¶ added in v1.13.0
func (sh StatsHandler) IbcByChains(c echo.Context) error
IbcByChains godoc
@Summary Get stats for ibc channels splitted by chains
@Description Get stats for ibc channels splitted by chains
@Tags stats
@ID stats-ibc-chains
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {array} responses.IbcChainStats
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/ibc/chains [get]
func (StatsHandler) IbcSeries ¶ added in v1.13.0
func (sh StatsHandler) IbcSeries(c echo.Context) error
IbcSeries godoc
@Summary Get histogram for ibc channels with precomputed stats
@Description Get histogram for ibc channels with precomputed stats by series name and timeframe
@Tags stats
@ID stats-ibc-series
@Param id path string true "Channel id"
@Param timeframe path string true "Timeframe" Enums(hour, day, month)
@Param name path string true "Series name" Enums(count, amount)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.HistogramItem
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/ibc/series/{id}/{name}/{timeframe} [get]
func (StatsHandler) IbcSummary ¶ added in v1.15.21
func (sh StatsHandler) IbcSummary(c echo.Context) error
IbcSummary godoc
@Summary Get stats for ibc the largest transfer and busiest channel per day
@Description Get stats for ibc the largest transfer and busiest channel per day
@Tags stats
@ID stats-ibc-summary
@Produce json
@Success 200 {array} responses.IbcSummaryStats
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/ibc/summary [get]
func (StatsHandler) MessagesCount24h ¶ added in v1.9.7
func (sh StatsHandler) MessagesCount24h(c echo.Context) error
MessagesCount24h godoc
@Summary Get messages distribution for the last 24 hours
@Description Get messages distribution for the last 24 hours
@Tags stats
@ID stats-messages-count-24h
@Produce json
@Success 200 {array} responses.CountItem
@Failure 500 {object} Error
@Router /stats/messages_count_24h [get]
func (StatsHandler) NamespaceSeries ¶ added in v1.1.0
func (sh StatsHandler) NamespaceSeries(c echo.Context) error
NamespaceSeries godoc
@Summary Get histogram for namespace with precomputed stats
@Description Get histogram for namespace with precomputed stats by series name and timeframe
@Tags stats
@ID stats-ns-series
@Param id path string true "Namespace id in hexadecimal" minlength(56) maxlength(56)
@Param timeframe path string true "Timeframe" Enums(hour, day, week, month, year)
@Param name path string true "Series name" Enums(pfb_count, size)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.SeriesItem
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/namespace/series/{id}/{name}/{timeframe} [get]
func (StatsHandler) NamespaceUsage ¶ added in v1.1.0
func (sh StatsHandler) NamespaceUsage(c echo.Context) error
NamespaceUsage godoc
@Summary Get namespaces with sorting by size.
@Description Get namespaces with sorting by size. Returns top 100 namespaces. Namespaces which is not included to top 100 grouped into 'others' item
@Tags stats
@ID stats-namespace-usage
@Param top query integer false "Count of entities" mininum(1) maximum(100)
@Produce json
@Success 200 {array} responses.NamespaceUsage
@Failure 500 {object} Error
@Router /stats/namespace/usage [get]
func (StatsHandler) RollupStats24h ¶ added in v1.9.7
func (sh StatsHandler) RollupStats24h(c echo.Context) error
RollupStats24h godoc
@Summary Get rollups stats for last 24 hours
@Description Get rollups stats for last 24 hours
@Tags stats
@ID stats-rollup-24h
@Produce json
@Success 200 {array} responses.RollupStats24h
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/rollup_stats_24h [get]
func (StatsHandler) Series ¶ added in v1.1.0
func (sh StatsHandler) Series(c echo.Context) error
Series godoc
@Summary Get histogram with precomputed stats
@Description Get histogram with precomputed stats by series name and timeframe
@Tags stats
@ID stats-series
@Param timeframe path string true "Timeframe" Enums(hour, day, week, month, year)
@Param name path string true "Series name" Enums(blobs_size, blobs_count, tps, bps, fee, supply_change, block_time, tx_count, events_count, gas_price, gas_efficiency, gas_used, gas_limit, bytes_in_block, rewards, commissions)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.SeriesItem
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/series/{name}/{timeframe} [get]
func (StatsHandler) SeriesCumulative ¶ added in v1.9.1
func (sh StatsHandler) SeriesCumulative(c echo.Context) error
SeriesCumulative godoc
@Summary Get cumulative histogram with precomputed stats
@Description Get cumulative histogram with precomputed stats by series name and timeframe
@Tags stats
@ID stats-series-cumulative
@Param timeframe path string true "Timeframe" Enums(hour, day, week, month, year)
@Param name path string true "Series name" Enums(blobs_size, blobs_count, fee, tx_count, gas_used, gas_limit, bytes_in_block, supply_change)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.SeriesItem
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/series/{name}/{timeframe}/cumulative [get]
func (StatsHandler) SizeGroups ¶ added in v1.11.3
func (sh StatsHandler) SizeGroups(c echo.Context) error
SizeGroups godoc
@Summary Get blobs count grouped by size
@Description Get blobs count grouped by size
@Tags stats
@ID stats-size-groups
@Produce json
@Success 200 {array} responses.SizeGroup
@Failure 500 {object} Error
@Router /stats/size_groups [get]
func (StatsHandler) SquareSize ¶ added in v1.9.6
func (sh StatsHandler) SquareSize(c echo.Context) error
SquareSize godoc
@Summary Get histogram for square size distribution
@Description Get histogram for square size distribution
@Tags stats
@ID stats-square-size
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.SquareSizeResponse
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/square_size [get]
func (StatsHandler) StakingDistribution ¶ added in v1.17.1
func (sh StatsHandler) StakingDistribution(c echo.Context) error
StakingSeries godoc
@Summary Get histogram for staking
@Description Get histogram for staking
@Tags stats
@ID stats-staking-distribution
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {object} responses.StakingDistribution
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/staking/distribution [get]
func (StatsHandler) StakingSeries ¶ added in v1.6.0
func (sh StatsHandler) StakingSeries(c echo.Context) error
StakingSeries godoc
@Summary Get histogram for staking with precomputed stats
@Description Get histogram for staking with precomputed stats by series name and timeframe
@Tags stats
@ID stats-staking-series
@Param id path string true "Validator id" minlength(56) maxlength(56)
@Param timeframe path string true "Timeframe" Enums(hour, day, month)
@Param name path string true "Series name" Enums(rewards, commissions, flow, delegations, unbondings, delegations_count, unbondings_count, cumulative_flow)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.SeriesItem
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/staking/series/{id}/{name}/{timeframe} [get]
func (StatsHandler) Summary ¶
func (sh StatsHandler) Summary(c echo.Context) error
Summary godoc
@Summary Get value by table and function
@Description.markdown summary
@Tags stats
@ID stats-summary
@Param table path string true "Table name" Enums(block, block_stats, tx, event, message, validator)
@Param function path string true "Function name" Enums(min, max, avg, sum, count)
@Param column query string false "Column name which will be used for computation. Optional for count."
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {object} string
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /stats/summary/{table}/{function} [get]
func (StatsHandler) TPS ¶ added in v1.1.0
func (sh StatsHandler) TPS(c echo.Context) error
TPS godoc
@Summary Get tps
@Description Returns transaction per seconds statistics
@Tags stats
@ID stats-tps
@x-internal true
@Produce json
@Success 200 {object} responses.TPS
@Failure 500 {object} Error
@Router /stats/tps [get]
type StatusArray ¶
type StatusArray StringArray
type StringArray ¶
type StringArray []string
func (*StringArray) UnmarshalParam ¶
func (s *StringArray) UnmarshalParam(param string) error
type TxHandler ¶
type TxHandler struct {
// contains filtered or unexported fields
}
func NewTxHandler ¶
func (*TxHandler) Blobs ¶ added in v1.3.2
Blobs godoc
@Summary List blobs which was pushed by transaction
@Description List blobs which was pushed by transaction
@Tags transactions
@ID list-transaction-blobs
@Param hash path string true "Transaction hash in hexadecimal" minlength(64) maxlength(64)
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order. Default: desc" Enums(asc, desc)
@Param sort_by query string false "Sort field. If it's empty internal id is used" Enums(time, size)
@Produce json
@Success 200 {array} responses.BlobLog
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /tx/{hash}/blobs [get]
func (*TxHandler) BlobsCount ¶ added in v1.3.2
BlobsCount godoc
@Summary Count of blobs which was pushed by transaction
@Description Count of blobs which was pushed by transaction
@Tags transactions
@ID transaction-blobs-count
@Param hash path string true "Transaction hash in hexadecimal" minlength(64) maxlength(64)
@Produce json
@Success 200 {integer} uint64
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /tx/{hash}/blobs/count [get]
func (*TxHandler) Count ¶
Count godoc
@Summary Get count of transactions in network
@Description Get count of transactions in network
@Tags transactions
@ID get-transactions-count
@Produce json
@Success 200 {integer} uint64
@Failure 500 {object} Error
@Router /tx/count [get]
func (*TxHandler) Genesis ¶
Genesis godoc
@Summary List genesis transactions info
@Description List genesis transactions info
@Tags transactions
@ID list-genesis-transactions
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order" Enums(asc, desc)
@Produce json
@Success 200 {array} responses.Tx
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /tx/genesis [get]
func (*TxHandler) Get ¶
Get godoc
@Summary Get transaction by hash
@Description Get transaction by hash
@Tags transactions
@ID get-transaction
@Param hash path string true "Transaction hash in hexadecimal" minlength(64) maxlength(64)
@Produce json
@Success 200 {object} responses.Tx
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /tx/{hash} [get]
func (*TxHandler) GetEvents ¶
GetEvents godoc
@Summary Get transaction events
@Description Get transaction events
@Tags transactions
@ID get-transaction-events
@Param hash path string true "Transaction hash in hexadecimal" minlength(64) maxlength(64)
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {array} responses.Event
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /tx/{hash}/events [get]
func (*TxHandler) GetMessages ¶
GetMessages godoc
@Summary Get transaction messages
@Description Get transaction messages
@Tags transactions
@ID get-transaction-messages
@Param hash path string true "Transaction hash in hexadecimal" minlength(64) maxlength(64)
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {array} responses.Message
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /tx/{hash}/messages [get]
func (*TxHandler) List ¶
List godoc
@Summary List transactions info
@Description List transactions info
@Tags transactions
@ID list-transactions
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Param sort query string false "Sort order" Enums(asc, desc)
@Param status query types.Status false "Comma-separated status list"
@Param msg_type query types.MsgType false "Comma-separated message types list"
@Param excluded_msg_type query types.MsgType false "Comma-separated message types list which should be excluded"
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Param height query integer false "Block number" mininum(1)
@Param messages query boolean false "If true join messages" mininum(1)
@Produce json
@Success 200 {array} responses.Tx
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /tx [get]
type ValidatorHandler ¶ added in v1.1.0
type ValidatorHandler struct {
// contains filtered or unexported fields
}
func NewValidatorHandler ¶ added in v1.1.0
func NewValidatorHandler( validators storage.IValidator, blocks storage.IBlock, blockSignatures storage.IBlockSignature, delegations storage.IDelegation, constants storage.IConstant, jails storage.IJail, votes storage.IVote, state storage.IState, indexerName string, ) *ValidatorHandler
func (*ValidatorHandler) Blocks ¶ added in v1.4.0
func (handler *ValidatorHandler) Blocks(c echo.Context) error
Blocks godoc
@Summary Get blocks which was proposed by validator
@Description Get blocks which was proposed by validator
@Tags validator
@ID get-validator-blocks
@Param id path integer true "Internal validator id"
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {object} responses.Block
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators/{id}/blocks [get]
func (*ValidatorHandler) Count ¶ added in v1.6.0
func (handler *ValidatorHandler) Count(c echo.Context) error
Count godoc
@Summary Get validator's count by status
@Description Get validator's count by status
@Tags validator
@ID validator-count
@Produce json
@Success 200 {object} responses.ValidatorCount
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators/count [get]
func (*ValidatorHandler) Delegators ¶ added in v1.6.0
func (handler *ValidatorHandler) Delegators(c echo.Context) error
Delegators godoc
@Summary Get validator's delegators
@Description Get validator's delegators
@Tags validator
@ID validator-delegators
@Param id path integer true "Internal validator id"
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Param show_zero query boolean false "Show zero delegations"
@Produce json
@Success 200 {array} responses.Delegation
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators/{id}/delegators [get]
func (*ValidatorHandler) Get ¶ added in v1.1.0
func (handler *ValidatorHandler) Get(c echo.Context) error
Get godoc
@Summary Get validator info
@Description Get validator info
@Tags validator
@ID get-validator
@Param id path integer true "Internal validator id"
@Produce json
@Success 200 {object} responses.Validator
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators/{id} [get]
func (*ValidatorHandler) Jails ¶ added in v1.6.0
func (handler *ValidatorHandler) Jails(c echo.Context) error
Jails godoc
@Summary Get validator's jails
@Description Get validator's jails
@Tags validator
@ID validator-jails
@Param id path integer true "Internal validator id"
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Produce json
@Success 200 {array} responses.Jail
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators/{id}/jails [get]
func (*ValidatorHandler) List ¶ added in v1.1.0
func (handler *ValidatorHandler) List(c echo.Context) error
List godoc
@Summary List validators
@Description List validators
@Tags validator
@ID list-validator
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(0)
@Param jailed query boolean false "Return only jailed validators"
@Param version query integer false "Current validator app version" mininum(0)
@Produce json
@Success 200 {array} responses.Validator
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators [get]
func (*ValidatorHandler) Messages ¶ added in v1.17.1
func (handler *ValidatorHandler) Messages(c echo.Context) error
Messages godoc
@Summary Get validator messages
@Description Get validator messages
@Tags validator
@ID validator-messages
@Param id path integer true "Internal validator id"
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Param sort query string false "Sort order" Enums(asc, desc)
@Param from query integer false "Time from in unix timestamp" mininum(1)
@Param to query integer false "Time to in unix timestamp" mininum(1)
@Produce json
@Success 200 {array} responses.Message
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators/{id}/messages [get]
func (*ValidatorHandler) Metrics ¶ added in v1.17.1
func (handler *ValidatorHandler) Metrics(c echo.Context) error
Metrics godoc
@Summary Get validator's metrics
@Description Get validator's metrics
@Tags validator
@ID validator-metrics
@Param id path integer true "Internal validator id"
@Produce json
@Success 200 {object} responses.Metrics
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators/{id}/metrics [get]
func (*ValidatorHandler) TopNMetrics ¶ added in v1.17.1
func (handler *ValidatorHandler) TopNMetrics(c echo.Context) error
TopNMetrics godoc
@Summary Get validators metrics
@Description Get validators metrics
@Tags validator
@ID validators-metrics
@Param count query integer false "Count of aggregated entities"
@Produce json
@Success 200 {object} responses.TopNMetrics
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators/metrics [get]
func (*ValidatorHandler) Uptime ¶ added in v1.4.0
func (handler *ValidatorHandler) Uptime(c echo.Context) error
Uptime godoc
@Summary Get validator's uptime and history of signed block
@Description Get validator's uptime and history of signed block
@Tags validator
@ID get-validator-uptime
@Param id path integer true "Internal validator id"
@Param limit query integer false "Count of requested blocks" mininum(1) maximum(100)
@Produce json
@Success 200 {object} responses.ValidatorUptime
@Success 204
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators/{id}/uptime [get]
func (*ValidatorHandler) Votes ¶ added in v1.12.0
func (handler *ValidatorHandler) Votes(c echo.Context) error
Votes godoc
@Summary Get list of votes for validator
@Description Get list of votes for validator
@Tags validator
@ID validator-votes
@Param id path integer true "Internal validator id"
@Param limit query integer false "Count of requested entities" minimum(1) maximum(100)
@Param offset query integer false "Offset" minimum(1)
@Produce json
@Success 200 {array} responses.Vote
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /validators/{id}/votes [get]
type VestingHandler ¶ added in v1.7.0
type VestingHandler struct {
// contains filtered or unexported fields
}
func NewVestingHandler ¶ added in v1.7.0
func NewVestingHandler(vestings storage.IVestingPeriod) *VestingHandler
func (*VestingHandler) Periods ¶ added in v1.7.0
func (handler *VestingHandler) Periods(c echo.Context) error
Periods godoc
@Summary Periods vesting periods by id
@Description Periods vesting periods by id. Returns not empty array only for periodic vestings.
@Tags vesting
@ID get-vesting-periods
@Param id path integer true "Internal identity"
@Param limit query integer false "Count of requested entities" mininum(1) maximum(100)
@Param offset query integer false "Offset" mininum(1)
@Produce json
@Success 200 {object} responses.VestingPeriod
@Failure 400 {object} Error
@Failure 500 {object} Error
@Router /vesting/{id}/periods [get]