Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) GetAddressRanking(ctx context.Context, hours *int, ...) (*GetAddressRanking, error)
- func (c *Client) GetAmountStatistic(ctx context.Context, typeArg model.StatisticType, platform *model.Platform, ...) (*GetAmountStatistic, error)
- func (c *Client) GetBridgeTransactions(ctx context.Context, chainIDTo []*int, chainIDFrom []*int, addressTo *string, ...) (*GetBridgeTransactions, error)
- func (c *Client) GetCountByChainID(ctx context.Context, chainID *int, address *string, direction *model.Direction, ...) (*GetCountByChainID, error)
- func (c *Client) GetCountByTokenAddress(ctx context.Context, chainID *int, address *string, direction *model.Direction, ...) (*GetCountByTokenAddress, error)
- func (c *Client) GetDailyStatisticsByChain(ctx context.Context, chainID *int, typeArg *model.DailyStatisticType, ...) (*GetDailyStatisticsByChain, error)
- func (c *Client) GetMessageBusTransactions(ctx context.Context, chainID []*int, contractAddress *string, startTime *int, ...) (*GetMessageBusTransactions, error)
- func (c *Client) GetRankedChainIDsByVolume(ctx context.Context, duration *model.Duration, ...) (*GetRankedChainIDsByVolume, error)
- type GetAddressRanking
- type GetAmountStatistic
- type GetBridgeTransactions
- type GetCountByChainID
- type GetCountByTokenAddress
- type GetDailyStatisticsByChain
- type GetMessageBusTransactions
- type GetRankedChainIDsByVolume
- type Query
Constants ¶
View Source
const GetAddressRankingDocument = `query GetAddressRanking ($hours: Int) {
response: addressRanking(hours: $hours) {
address
count
}
}
`
View Source
const GetAmountStatisticDocument = `` /* 345-byte string literal not displayed */
View Source
const GetBridgeTransactionsDocument = `` /* 1161-byte string literal not displayed */
View Source
const GetCountByChainIDDocument = `` /* 223-byte string literal not displayed */
View Source
const GetCountByTokenAddressDocument = `` /* 248-byte string literal not displayed */
View Source
const GetDailyStatisticsByChainDocument = `` /* 452-byte string literal not displayed */
View Source
const GetMessageBusTransactionsDocument = `` /* 757-byte string literal not displayed */
View Source
const GetRankedChainIDsByVolumeDocument = `` /* 136-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetAddressRanking ¶
func (c *Client) GetAddressRanking(ctx context.Context, hours *int, httpRequestOptions ...client.HTTPRequestOption) (*GetAddressRanking, error)
func (*Client) GetAmountStatistic ¶ added in v0.0.81
func (*Client) GetBridgeTransactions ¶
func (c *Client) GetBridgeTransactions(ctx context.Context, chainIDTo []*int, chainIDFrom []*int, addressTo *string, addressFrom *string, maxAmount *int, minAmount *int, maxAmountUsd *int, minAmountUsd *int, startTime *int, endTime *int, txHash *string, kappa *string, pending *bool, page *int, tokenAddressFrom []*string, tokenAddressTo []*string, useMv *bool, httpRequestOptions ...client.HTTPRequestOption) (*GetBridgeTransactions, error)
func (*Client) GetCountByChainID ¶
func (*Client) GetCountByTokenAddress ¶
func (*Client) GetDailyStatisticsByChain ¶ added in v0.0.81
func (c *Client) GetDailyStatisticsByChain(ctx context.Context, chainID *int, typeArg *model.DailyStatisticType, duration *model.Duration, platform *model.Platform, useMv *bool, httpRequestOptions ...client.HTTPRequestOption) (*GetDailyStatisticsByChain, error)
func (*Client) GetMessageBusTransactions ¶ added in v0.0.81
func (*Client) GetRankedChainIDsByVolume ¶ added in v0.0.81
func (c *Client) GetRankedChainIDsByVolume(ctx context.Context, duration *model.Duration, httpRequestOptions ...client.HTTPRequestOption) (*GetRankedChainIDsByVolume, error)
type GetAddressRanking ¶
type GetAmountStatistic ¶ added in v0.0.81
type GetAmountStatistic struct { Response *struct { Value *string "json:\"value\" graphql:\"value\"" } "json:\"response\" graphql:\"response\"" }
type GetBridgeTransactions ¶
type GetBridgeTransactions struct { Response []*struct { FromInfo *struct { ChainID *int "json:\"chainID\" graphql:\"chainID\"" DestinationChainID *int "json:\"destinationChainID\" graphql:\"destinationChainID\"" Address *string "json:\"address\" graphql:\"address\"" TxnHash *string "json:\"txnHash\" graphql:\"txnHash\"" Value *string "json:\"value\" graphql:\"value\"" FormattedValue *float64 "json:\"formattedValue\" graphql:\"formattedValue\"" USDValue *float64 "json:\"USDValue\" graphql:\"USDValue\"" TokenAddress *string "json:\"tokenAddress\" graphql:\"tokenAddress\"" TokenSymbol *string "json:\"tokenSymbol\" graphql:\"tokenSymbol\"" BlockNumber *int "json:\"blockNumber\" graphql:\"blockNumber\"" Time *int "json:\"time\" graphql:\"time\"" FormattedTime *string "json:\"formattedTime\" graphql:\"formattedTime\"" } "json:\"fromInfo\" graphql:\"fromInfo\"" ToInfo *struct { ChainID *int "json:\"chainID\" graphql:\"chainID\"" Address *string "json:\"address\" graphql:\"address\"" TxnHash *string "json:\"txnHash\" graphql:\"txnHash\"" Value *string "json:\"value\" graphql:\"value\"" FormattedValue *float64 "json:\"formattedValue\" graphql:\"formattedValue\"" USDValue *float64 "json:\"USDValue\" graphql:\"USDValue\"" TokenAddress *string "json:\"tokenAddress\" graphql:\"tokenAddress\"" TokenSymbol *string "json:\"tokenSymbol\" graphql:\"tokenSymbol\"" BlockNumber *int "json:\"blockNumber\" graphql:\"blockNumber\"" Time *int "json:\"time\" graphql:\"time\"" FormattedTime *string "json:\"formattedTime\" graphql:\"formattedTime\"" } "json:\"toInfo\" graphql:\"toInfo\"" Kappa *string "json:\"kappa\" graphql:\"kappa\"" Pending *bool "json:\"pending\" graphql:\"pending\"" SwapSuccess *bool "json:\"swapSuccess\" graphql:\"swapSuccess\"" } "json:\"response\" graphql:\"response\"" }
type GetCountByChainID ¶
type GetCountByTokenAddress ¶
type GetDailyStatisticsByChain ¶ added in v0.0.81
type GetDailyStatisticsByChain struct { Response []*struct { Date *string "json:\"date\" graphql:\"date\"" Ethereum *float64 "json:\"ethereum\" graphql:\"ethereum\"" Optimism *float64 "json:\"optimism\" graphql:\"optimism\"" Cronos *float64 "json:\"cronos\" graphql:\"cronos\"" Bsc *float64 "json:\"bsc\" graphql:\"bsc\"" Polygon *float64 "json:\"polygon\" graphql:\"polygon\"" Fantom *float64 "json:\"fantom\" graphql:\"fantom\"" Boba *float64 "json:\"boba\" graphql:\"boba\"" Metis *float64 "json:\"metis\" graphql:\"metis\"" Moonbeam *float64 "json:\"moonbeam\" graphql:\"moonbeam\"" Moonriver *float64 "json:\"moonriver\" graphql:\"moonriver\"" Klaytn *float64 "json:\"klaytn\" graphql:\"klaytn\"" Arbitrum *float64 "json:\"arbitrum\" graphql:\"arbitrum\"" Avalanche *float64 "json:\"avalanche\" graphql:\"avalanche\"" Dfk *float64 "json:\"dfk\" graphql:\"dfk\"" Aurora *float64 "json:\"aurora\" graphql:\"aurora\"" Harmony *float64 "json:\"harmony\" graphql:\"harmony\"" Canto *float64 "json:\"canto\" graphql:\"canto\"" Dogechain *float64 "json:\"dogechain\" graphql:\"dogechain\"" Total *float64 "json:\"total\" graphql:\"total\"" } "json:\"response\" graphql:\"response\"" }
type GetMessageBusTransactions ¶ added in v0.0.81
type GetMessageBusTransactions struct { Response []*struct { FromInfo *struct { ChainID *int "json:\"chainID\" graphql:\"chainID\"" ChainName *string "json:\"chainName\" graphql:\"chainName\"" DestinationChainID *int "json:\"destinationChainID\" graphql:\"destinationChainID\"" DestinationChainName *string "json:\"destinationChainName\" graphql:\"destinationChainName\"" ContractAddress *string "json:\"contractAddress\" graphql:\"contractAddress\"" TxnHash *string "json:\"txnHash\" graphql:\"txnHash\"" Message *string "json:\"message\" graphql:\"message\"" BlockNumber *int "json:\"blockNumber\" graphql:\"blockNumber\"" Time *int "json:\"time\" graphql:\"time\"" FormattedTime *string "json:\"formattedTime\" graphql:\"formattedTime\"" } "json:\"fromInfo\" graphql:\"fromInfo\"" ToInfo *struct { ChainID *int "json:\"chainID\" graphql:\"chainID\"" ChainName *string "json:\"chainName\" graphql:\"chainName\"" ContractAddress *string "json:\"contractAddress\" graphql:\"contractAddress\"" TxnHash *string "json:\"txnHash\" graphql:\"txnHash\"" Message *string "json:\"message\" graphql:\"message\"" BlockNumber *int "json:\"blockNumber\" graphql:\"blockNumber\"" Time *int "json:\"time\" graphql:\"time\"" FormattedTime *string "json:\"formattedTime\" graphql:\"formattedTime\"" RevertedReason *string "json:\"revertedReason\" graphql:\"revertedReason\"" } "json:\"toInfo\" graphql:\"toInfo\"" MessageID *string "json:\"messageID\" graphql:\"messageID\"" Pending *bool "json:\"pending\" graphql:\"pending\"" } "json:\"response\" graphql:\"response\"" }
type GetRankedChainIDsByVolume ¶ added in v0.0.81
type Query ¶
type Query struct { BridgeTransactions []*model.BridgeTransaction "json:\"bridgeTransactions\" graphql:\"bridgeTransactions\"" MessageBusTransactions []*model.MessageBusTransaction "json:\"messageBusTransactions\" graphql:\"messageBusTransactions\"" CountByChainID []*model.TransactionCountResult "json:\"countByChainId\" graphql:\"countByChainId\"" CountByTokenAddress []*model.TokenCountResult "json:\"countByTokenAddress\" graphql:\"countByTokenAddress\"" AddressRanking []*model.AddressRanking "json:\"addressRanking\" graphql:\"addressRanking\"" AmountStatistic *model.ValueResult "json:\"amountStatistic\" graphql:\"amountStatistic\"" DailyStatisticsByChain []*model.DateResultByChain "json:\"dailyStatisticsByChain\" graphql:\"dailyStatisticsByChain\"" RankedChainIDsByVolume []*model.VolumeByChainID "json:\"rankedChainIDsByVolume\" graphql:\"rankedChainIDsByVolume\"" }
Click to show internal directories.
Click to hide internal directories.