endpoint

package
v1.1.13 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddressByCoinAndDomain

func GetAddressByCoinAndDomain(c *gin.Context)

@Summary Lookup .eth / .zil addresses @ID lookup @Description Lookup ENS/ZNS to find registered addresses @Produce json @Tags Naming @Param name query string empty "string name" @Param coin query string 60 "string coin" @Success 200 {object} blockatlas.Resolved @Failure 500 {object} ErrorResponse @Router /ns/lookup [get]

func GetAddressByCoinAndDomainBatch

func GetAddressByCoinAndDomainBatch(c *gin.Context)

@Summary Lookup .eth / .zil addresses @ID lookup @Description Lookup ENS/ZNS to find registered addresses for multiple coins @Produce json @Tags Naming @Param name query string empty "string name" @Param coins query string true "List of coins" @Success 200 {array} blockatlas.Resolved @Failure 500 {object} ErrorResponse @Router /v2/ns/lookup [get]

func GetCollectiblesForOwnerV3

func GetCollectiblesForOwnerV3(c *gin.Context, api blockatlas.CollectionsAPI)

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} blockatlas.CollectionPage @Failure 500 {object} ErrorResponse @Router /v4/{coin}/collections/{owner}/collection/{collection_id} [get]

func GetCollectiblesForSpecificCollectionAndOwnerV3

func GetCollectiblesForSpecificCollectionAndOwnerV3(c *gin.Context, api blockatlas.CollectionsAPI)

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 GetCollectionCategoriesFromListV3

func GetCollectionCategoriesFromListV3(c *gin.Context, apis blockatlas.CollectionsAPIs)

func GetStakeDelegationsWithAllInfoForBatch

func GetStakeDelegationsWithAllInfoForBatch(c *gin.Context, apis map[string]blockatlas.StakeAPI)

@Summary Get Multiple Stake Delegations @ID batch_delegations @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 batch_delegations @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 batch_info @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 GetStatus

func GetStatus(c *gin.Context)

func GetTokens

func GetTokens(c *gin.Context, apis map[uint]blockatlas.TokensAPI)

@Description Get tokens @ID tokens_v3 @Summary Get list of tokens by map: coin -> [addresses] @Accept json @Produce json @Tags Transactions @Param data body string true "Payload" default({"60": ["0xb3624367b1ab37daef42e1a3a2ced012359659b0"]}) @Success 200 {object} blockatlas.ResultsResponse @Router /v2/tokens [post]

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} blockatlas.CollectionPage @Failure 500 {object} ErrorResponse @Router /v2/{coin}/tokens/{address} [get]

func GetTokensByAddressIndexer added in v1.1.9

func GetTokensByAddressIndexer(c *gin.Context, instance tokensearcher.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 @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 ENSBatchRequest struct {
	Coins []uint64 `json:"coins"`
	Name  string   `json:"name"`
}

type ErrorCode added in v1.1.4

type ErrorCode int

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"`
}

Jump to

Keyboard shortcuts

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