Documentation ¶
Index ¶
- func GetBlock(c *gin.Context, blockAPI blockatlas.BlockAPI)
- func GetCollectiblesForSpecificCollectionAndOwner(c *gin.Context, api blockatlas.CollectionsAPI)
- func GetCollectionCategoriesFromList(c *gin.Context, apis blockatlas.CollectionsAPIs)
- func GetNewTokens(c *gin.Context, instance tokenindexer.Instance)
- func GetStakeDelegationsWithAllInfoForBatch(c *gin.Context, apis map[string]blockatlas.StakeAPI)
- func GetStakeInfoForBatch(c *gin.Context, apis map[string]blockatlas.StakeAPI)
- func GetStakeInfoForCoins(c *gin.Context, apis map[string]blockatlas.StakeAPI)
- func GetStakingDelegationsForSpecificCoin(c *gin.Context, api blockatlas.StakeAPI)
- func GetStatus(c *gin.Context)
- func GetTokensByAddress(c *gin.Context, tokenAPI blockatlas.TokensAPI)
- func GetTokensByAddressV3(c *gin.Context, instance tokenindexer.Instance)
- func GetTransactionsByXpub(c *gin.Context, api blockatlas.TxUtxoAPI)
- func GetTransactionsHistory(c *gin.Context, txAPI blockatlas.TxAPI, tokenTxAPI blockatlas.TokenTxAPI)
- func GetValidators(c *gin.Context, api blockatlas.StakeAPI)
- type AddressBatchRequest
- type AddressesRequest
- type CoinBatchRequest
- type CoinsRequest
- type ENSBatchRequest
- type ErrorCode
- type ErrorDetails
- type ErrorResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBlock ¶ added in v1.1.14
func GetBlock(c *gin.Context, blockAPI blockatlas.BlockAPI)
@Summary Get Block @ID block_v2 @Description Get Block information @Accept json @Produce json @Tags Transactions @Param coin path string true "the coin name" default(zilliqa) @Param address path string true "the query address" default(850321) @Failure 500 {object} ErrorResponse @Router /v2/{coin}/blocks/{block} [get]
func GetCollectiblesForSpecificCollectionAndOwner ¶
func GetCollectiblesForSpecificCollectionAndOwner(c *gin.Context, api blockatlas.CollectionsAPI)
@Summary Get Collection @ID collection_v4 @Description Get a collection from the address @Accept json @Produce json @Tags Collections @Param coin path string true "the coin name" default(ethereum) @Param owner path string true "the query address" default(0x0875BCab22dE3d02402bc38aEe4104e1239374a7) @Param collection_id path string true "the query collection" default(0x06012c8cf97bead5deae237070f9587f8e7a266d) @Success 200 {object} types.CollectionPage @Failure 500 {object} ErrorResponse @Router /v4/{coin}/collections/{owner}/collection/{collection_id} [get]
func GetCollectionCategoriesFromList ¶
func GetCollectionCategoriesFromList(c *gin.Context, apis blockatlas.CollectionsAPIs)
@Description Get collection categories @ID collection_categories_v4 @Summary Get list of collections from a specific coin and addresses @Accept json @Produce json @Tags Collections @Param data body string true "Payload" default({"60": ["0xb3624367b1ab37daef42e1a3a2ced012359659b0"]}) @Success 200 {object} blockatlas.DocsResponse @Router /v4/collectibles/categories [post]
func GetNewTokens ¶ added in v1.1.14
func GetNewTokens(c *gin.Context, instance tokenindexer.Instance)
@Description Get new tokens @ID tokens_new_v3 @Summary Get list of new tokens by coin from specific unix timstamp @Accept json @Produce json @Tags Transactions @Param from query int true "unix timestamp" @Success 200 {object} tokenindexer.Response @Router /v3/tokens/new [get]
func GetStakeDelegationsWithAllInfoForBatch ¶
func GetStakeDelegationsWithAllInfoForBatch(c *gin.Context, apis map[string]blockatlas.StakeAPI)
@Summary Get Multiple Stake Delegations @ID staking_v2_batch @Description Get Stake Delegations for multiple coins @Accept json @Produce json @Tags Staking @Param delegations body AddressesRequest true "Validators addresses and coins" @Success 200 {object} blockatlas.DelegationsBatchPage @Router /v2/staking/delegations [post]
func GetStakeInfoForBatch ¶
func GetStakeInfoForBatch(c *gin.Context, apis map[string]blockatlas.StakeAPI)
@Summary Get Multiple Stake Delegations @ID staking_v2 @Description Get Stake Delegations for multiple coins @Accept json @Produce json @Tags Staking @Param delegations body AddressesRequest true "Validators addresses and coins" @Success 200 {object} blockatlas.DelegationsBatchPage @Router /v2/staking/list [post]
func GetStakeInfoForCoins ¶
func GetStakeInfoForCoins(c *gin.Context, apis map[string]blockatlas.StakeAPI)
@Summary Get staking info by coin ID @ID staking_v3 @Description Get staking info by coin ID @Produce json @Tags Staking @Param coins query string true "List of coins" @Success 200 {array} blockatlas.DelegationsBatchPage @Failure 400 {object} ErrorResponse @Router /v3/staking/list [get]
func GetStakingDelegationsForSpecificCoin ¶
func GetStakingDelegationsForSpecificCoin(c *gin.Context, api blockatlas.StakeAPI)
@Summary Get Stake Delegations @ID delegations @Description Get stake delegations from the address @Accept json @Produce json @Tags Staking @Param coin path string true "the coin name" default(tron) @Param address path string true "the query address" default(TPJYCz8ppZNyvw7pTwmjajcx4Kk1MmEUhD) @Success 200 {object} blockatlas.DelegationResponse @Failure 500 {object} ErrorResponse @Router /v2/{coin}/staking/delegations/{address} [get]
func GetTokensByAddress ¶
func GetTokensByAddress(c *gin.Context, tokenAPI blockatlas.TokensAPI)
@Summary Get Tokens @ID tokens @Description Get tokens from the address @Accept json @Produce json @Tags Transactions @Param coin path string true "the coin name" default(ethereum) @Param address path string true "the query address" default(0x5574Cd97432cEd0D7Caf58ac3c4fEDB2061C98fB) @Success 200 {object} types.CollectionPage @Failure 500 {object} ErrorResponse @Router /v2/{coin}/tokens/{address} [get]
func GetTokensByAddressV3 ¶ added in v1.1.15
func GetTokensByAddressV3(c *gin.Context, instance tokenindexer.Instance)
func GetTransactionsByXpub ¶
func GetTransactionsByXpub(c *gin.Context, api blockatlas.TxUtxoAPI)
@Summary Get Transactions by XPUB @ID tx_xpub_v2 @Description Get transactions from XPUB address @Accept json @Produce json @Tags Transactions @Param coin path string true "the coin name" default(bitcoin) @Param xpub path string true "the xpub key" default(zpub6ruK9k6YGm8BRHWvTiQcrEPnFkuRDJhR7mPYzV2LDvjpLa5CuGgrhCYVZjMGcLcFqv9b2WvsFtY2Gb3xq8NVq8qhk9veozrA2W9QaWtihrC) @Failure 500 {object} ErrorResponse @Router /v1/{coin}/{address} [get] @Router /v2/{coin}/transactions/xpub/{xpub} [get]
func GetTransactionsHistory ¶
func GetTransactionsHistory(c *gin.Context, txAPI blockatlas.TxAPI, tokenTxAPI blockatlas.TokenTxAPI)
@Summary Get Transactions @ID tx_v2 @Description Get transactions from the address @Accept json @Produce json @Tags Transactions @Param coin path string true "the coin name" default(tezos) @Param address path string true "the query address" default(tz1WCd2jm4uSt4vntk4vSuUWoZQGhLcDuR9q) @Failure 500 {object} ErrorResponse @Router /v1/{coin}/{address} [get] @Router /v2/{coin}/transactions/{address} [get]
func GetValidators ¶
func GetValidators(c *gin.Context, api blockatlas.StakeAPI)
@Summary Get Validators @ID validators_v2 @Description Get validators from the address @Accept json @Produce json @Tags Staking @Param coin path string true "the coin name" default(cosmos) @Success 200 {object} blockatlas.DocsResponse @Failure 500 {object} ErrorResponse @Router /v2/{coin}/staking/validators [get]
Types ¶
type AddressBatchRequest ¶
type AddressBatchRequest struct { Address string `json:"address"` CoinBatchRequest }
type AddressesRequest ¶
type AddressesRequest []AddressBatchRequest
type CoinBatchRequest ¶
type CoinBatchRequest struct {
Coin uint `json:"coin"`
}
type CoinsRequest ¶
type CoinsRequest []CoinBatchRequest
type ENSBatchRequest ¶
type ErrorDetails ¶ added in v1.1.4
type ErrorDetails struct {
Message string `json:"message"`
}
type ErrorResponse ¶ added in v1.1.4
type ErrorResponse struct {
Error ErrorDetails `json:"error"`
}