Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) GetBlockTime(ctx context.Context, chainID int, blockNumber int, ...) (*GetBlockTime, error)
- func (c *Client) GetBlockTimeCount(ctx context.Context, chainID int, ...) (*GetBlockTimeCount, error)
- func (c *Client) GetFirstStoredBlockNumber(ctx context.Context, chainID int, ...) (*GetFirstStoredBlockNumber, error)
- func (c *Client) GetLastIndexed(ctx context.Context, chainID int, contractAddress string, ...) (*GetLastIndexed, error)
- func (c *Client) GetLastStoredBlockNumber(ctx context.Context, chainID int, ...) (*GetLastStoredBlockNumber, error)
- func (c *Client) GetLogCount(ctx context.Context, chainID int, contractAddress string, ...) (*GetLogCount, error)
- func (c *Client) GetLogs(ctx context.Context, chainID int, page int, ...) (*GetLogs, error)
- func (c *Client) GetLogsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, ...) (*GetLogsRange, error)
- func (c *Client) GetLogsResolvers(ctx context.Context, chainID int, page int, ...) (*GetLogsResolvers, error)
- func (c *Client) GetReceipts(ctx context.Context, chainID int, page int, ...) (*GetReceipts, error)
- func (c *Client) GetReceiptsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, ...) (*GetReceiptsRange, error)
- func (c *Client) GetReceiptsResolvers(ctx context.Context, chainID int, page int, ...) (*GetReceiptsResolvers, error)
- func (c *Client) GetTransactions(ctx context.Context, chainID int, page int, ...) (*GetTransactions, error)
- func (c *Client) GetTransactionsRange(ctx context.Context, chainID int, startBlock int, endBlock int, page int, ...) (*GetTransactionsRange, error)
- func (c *Client) GetTransactionsResolvers(ctx context.Context, chainID int, page int, ...) (*GetTransactionsResolvers, error)
- func (c *Client) GetTxSender(ctx context.Context, chainID int, txHash string, ...) (*GetTxSender, error)
- type GetBlockTime
- type GetBlockTimeCount
- type GetFirstStoredBlockNumber
- type GetLastIndexed
- type GetLastStoredBlockNumber
- type GetLogCount
- type GetLogs
- type GetLogsRange
- type GetLogsResolvers
- type GetReceipts
- type GetReceiptsRange
- type GetReceiptsResolvers
- type GetTransactions
- type GetTransactionsRange
- type GetTransactionsResolvers
- type GetTxSender
- type Query
Constants ¶
View Source
const GetBlockTimeCountDocument = `query GetBlockTimeCount ($chain_id: Int!) {
response: blockTimeCount(chain_id: $chain_id)
}
`
View Source
const GetBlockTimeDocument = `` /* 133-byte string literal not displayed */
View Source
const GetFirstStoredBlockNumberDocument = `query GetFirstStoredBlockNumber ($chain_id: Int!) {
response: firstStoredBlockNumber(chain_id: $chain_id)
}
`
View Source
const GetLastIndexedDocument = `` /* 152-byte string literal not displayed */
View Source
const GetLastStoredBlockNumberDocument = `query GetLastStoredBlockNumber ($chain_id: Int!) {
response: lastStoredBlockNumber(chain_id: $chain_id)
}
`
View Source
const GetLogCountDocument = `` /* 146-byte string literal not displayed */
View Source
const GetLogsDocument = `` /* 217-byte string literal not displayed */
View Source
const GetLogsRangeDocument = `` /* 315-byte string literal not displayed */
View Source
const GetLogsResolversDocument = `` /* 431-byte string literal not displayed */
View Source
const GetReceiptsDocument = `` /* 257-byte string literal not displayed */
View Source
const GetReceiptsRangeDocument = `` /* 355-byte string literal not displayed */
View Source
const GetReceiptsResolversDocument = `` /* 403-byte string literal not displayed */
View Source
const GetTransactionsDocument = `` /* 234-byte string literal not displayed */
View Source
const GetTransactionsRangeDocument = `` /* 332-byte string literal not displayed */
View Source
const GetTransactionsResolversDocument = `` /* 437-byte string literal not displayed */
View Source
const GetTxSenderDocument = `query GetTxSender ($chain_id: Int!, $tx_hash: String!) {
response: txSender(chain_id: $chain_id, tx_hash: $tx_hash)
}
`
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) GetBlockTime ¶ added in v0.0.27
func (c *Client) GetBlockTime(ctx context.Context, chainID int, blockNumber int, httpRequestOptions ...client.HTTPRequestOption) (*GetBlockTime, error)
func (*Client) GetBlockTimeCount ¶ added in v0.0.42
func (c *Client) GetBlockTimeCount(ctx context.Context, chainID int, httpRequestOptions ...client.HTTPRequestOption) (*GetBlockTimeCount, error)
func (*Client) GetFirstStoredBlockNumber ¶ added in v0.0.35
func (c *Client) GetFirstStoredBlockNumber(ctx context.Context, chainID int, httpRequestOptions ...client.HTTPRequestOption) (*GetFirstStoredBlockNumber, error)
func (*Client) GetLastIndexed ¶ added in v0.0.38
func (c *Client) GetLastIndexed(ctx context.Context, chainID int, contractAddress string, httpRequestOptions ...client.HTTPRequestOption) (*GetLastIndexed, error)
func (*Client) GetLastStoredBlockNumber ¶ added in v0.0.35
func (c *Client) GetLastStoredBlockNumber(ctx context.Context, chainID int, httpRequestOptions ...client.HTTPRequestOption) (*GetLastStoredBlockNumber, error)
func (*Client) GetLogCount ¶ added in v0.0.40
func (c *Client) GetLogCount(ctx context.Context, chainID int, contractAddress string, httpRequestOptions ...client.HTTPRequestOption) (*GetLogCount, error)
func (*Client) GetLogsRange ¶
func (*Client) GetLogsResolvers ¶
func (c *Client) GetLogsResolvers(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetLogsResolvers, error)
func (*Client) GetReceipts ¶
func (c *Client) GetReceipts(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceipts, error)
func (*Client) GetReceiptsRange ¶
func (*Client) GetReceiptsResolvers ¶
func (c *Client) GetReceiptsResolvers(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetReceiptsResolvers, error)
func (*Client) GetTransactions ¶
func (c *Client) GetTransactions(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactions, error)
func (*Client) GetTransactionsRange ¶
func (*Client) GetTransactionsResolvers ¶
func (c *Client) GetTransactionsResolvers(ctx context.Context, chainID int, page int, httpRequestOptions ...client.HTTPRequestOption) (*GetTransactionsResolvers, error)
func (*Client) GetTxSender ¶ added in v0.0.35
func (c *Client) GetTxSender(ctx context.Context, chainID int, txHash string, httpRequestOptions ...client.HTTPRequestOption) (*GetTxSender, error)
type GetBlockTime ¶ added in v0.0.27
type GetBlockTime struct {
Response *int "json:\"response\" graphql:\"response\""
}
type GetBlockTimeCount ¶ added in v0.0.42
type GetBlockTimeCount struct {
Response *int "json:\"response\" graphql:\"response\""
}
type GetFirstStoredBlockNumber ¶ added in v0.0.35
type GetFirstStoredBlockNumber struct {
Response *int "json:\"response\" graphql:\"response\""
}
type GetLastIndexed ¶ added in v0.0.38
type GetLastIndexed struct {
Response *int "json:\"response\" graphql:\"response\""
}
type GetLastStoredBlockNumber ¶ added in v0.0.35
type GetLastStoredBlockNumber struct {
Response *int "json:\"response\" graphql:\"response\""
}
type GetLogCount ¶ added in v0.0.40
type GetLogCount struct {
Response *int "json:\"response\" graphql:\"response\""
}
type GetLogs ¶
type GetLogs struct { Response []*struct { ContractAddress string "json:\"contract_address\" graphql:\"contract_address\"" ChainID int "json:\"chain_id\" graphql:\"chain_id\"" Topics []string "json:\"topics\" graphql:\"topics\"" Data string "json:\"data\" graphql:\"data\"" BlockNumber int "json:\"block_number\" graphql:\"block_number\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" TxIndex int "json:\"tx_index\" graphql:\"tx_index\"" BlockHash string "json:\"block_hash\" graphql:\"block_hash\"" Index int "json:\"index\" graphql:\"index\"" Removed bool "json:\"removed\" graphql:\"removed\"" } "json:\"response\" graphql:\"response\"" }
type GetLogsRange ¶
type GetLogsRange struct { Response []*struct { ContractAddress string "json:\"contract_address\" graphql:\"contract_address\"" ChainID int "json:\"chain_id\" graphql:\"chain_id\"" Topics []string "json:\"topics\" graphql:\"topics\"" Data string "json:\"data\" graphql:\"data\"" BlockNumber int "json:\"block_number\" graphql:\"block_number\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" TxIndex int "json:\"tx_index\" graphql:\"tx_index\"" BlockHash string "json:\"block_hash\" graphql:\"block_hash\"" Index int "json:\"index\" graphql:\"index\"" Removed bool "json:\"removed\" graphql:\"removed\"" } "json:\"response\" graphql:\"response\"" }
type GetLogsResolvers ¶
type GetLogsResolvers struct { Response []*struct { Receipt struct { ChainID int "json:\"chain_id\" graphql:\"chain_id\"" Type int "json:\"type\" graphql:\"type\"" PostState string "json:\"post_state\" graphql:\"post_state\"" Status int "json:\"status\" graphql:\"status\"" CumulativeGasUsed int "json:\"cumulative_gas_used\" graphql:\"cumulative_gas_used\"" Bloom string "json:\"bloom\" graphql:\"bloom\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" ContractAddress string "json:\"contract_address\" graphql:\"contract_address\"" GasUsed int "json:\"gas_used\" graphql:\"gas_used\"" BlockNumber int "json:\"block_number\" graphql:\"block_number\"" TransactionIndex int "json:\"transaction_index\" graphql:\"transaction_index\"" } "json:\"receipt\" graphql:\"receipt\"" Transaction struct { ChainID int "json:\"chain_id\" graphql:\"chain_id\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" Protected bool "json:\"protected\" graphql:\"protected\"" Type int "json:\"type\" graphql:\"type\"" Data string "json:\"data\" graphql:\"data\"" Gas int "json:\"gas\" graphql:\"gas\"" GasPrice int "json:\"gas_price\" graphql:\"gas_price\"" GasTipCap string "json:\"gas_tip_cap\" graphql:\"gas_tip_cap\"" GasFeeCap string "json:\"gas_fee_cap\" graphql:\"gas_fee_cap\"" Value string "json:\"value\" graphql:\"value\"" Nonce int "json:\"nonce\" graphql:\"nonce\"" To string "json:\"to\" graphql:\"to\"" } "json:\"transaction\" graphql:\"transaction\"" } "json:\"response\" graphql:\"response\"" }
type GetReceipts ¶
type GetReceipts struct { Response []*struct { ChainID int "json:\"chain_id\" graphql:\"chain_id\"" Type int "json:\"type\" graphql:\"type\"" PostState string "json:\"post_state\" graphql:\"post_state\"" Status int "json:\"status\" graphql:\"status\"" CumulativeGasUsed int "json:\"cumulative_gas_used\" graphql:\"cumulative_gas_used\"" Bloom string "json:\"bloom\" graphql:\"bloom\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" ContractAddress string "json:\"contract_address\" graphql:\"contract_address\"" GasUsed int "json:\"gas_used\" graphql:\"gas_used\"" BlockNumber int "json:\"block_number\" graphql:\"block_number\"" TransactionIndex int "json:\"transaction_index\" graphql:\"transaction_index\"" } "json:\"response\" graphql:\"response\"" }
type GetReceiptsRange ¶
type GetReceiptsRange struct { Response []*struct { ChainID int "json:\"chain_id\" graphql:\"chain_id\"" Type int "json:\"type\" graphql:\"type\"" PostState string "json:\"post_state\" graphql:\"post_state\"" Status int "json:\"status\" graphql:\"status\"" CumulativeGasUsed int "json:\"cumulative_gas_used\" graphql:\"cumulative_gas_used\"" Bloom string "json:\"bloom\" graphql:\"bloom\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" ContractAddress string "json:\"contract_address\" graphql:\"contract_address\"" GasUsed int "json:\"gas_used\" graphql:\"gas_used\"" BlockNumber int "json:\"block_number\" graphql:\"block_number\"" TransactionIndex int "json:\"transaction_index\" graphql:\"transaction_index\"" } "json:\"response\" graphql:\"response\"" }
type GetReceiptsResolvers ¶
type GetReceiptsResolvers struct { Response []*struct { Logs []*struct { ContractAddress string "json:\"contract_address\" graphql:\"contract_address\"" ChainID int "json:\"chain_id\" graphql:\"chain_id\"" Topics []string "json:\"topics\" graphql:\"topics\"" Data string "json:\"data\" graphql:\"data\"" BlockNumber int "json:\"block_number\" graphql:\"block_number\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" TxIndex int "json:\"tx_index\" graphql:\"tx_index\"" BlockHash string "json:\"block_hash\" graphql:\"block_hash\"" Index int "json:\"index\" graphql:\"index\"" Removed bool "json:\"removed\" graphql:\"removed\"" } "json:\"logs\" graphql:\"logs\"" Transaction struct { ChainID int "json:\"chain_id\" graphql:\"chain_id\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" Protected bool "json:\"protected\" graphql:\"protected\"" Type int "json:\"type\" graphql:\"type\"" Data string "json:\"data\" graphql:\"data\"" Gas int "json:\"gas\" graphql:\"gas\"" GasPrice int "json:\"gas_price\" graphql:\"gas_price\"" GasTipCap string "json:\"gas_tip_cap\" graphql:\"gas_tip_cap\"" GasFeeCap string "json:\"gas_fee_cap\" graphql:\"gas_fee_cap\"" Value string "json:\"value\" graphql:\"value\"" Nonce int "json:\"nonce\" graphql:\"nonce\"" To string "json:\"to\" graphql:\"to\"" } "json:\"transaction\" graphql:\"transaction\"" } "json:\"response\" graphql:\"response\"" }
type GetTransactions ¶
type GetTransactions struct { Response []*struct { ChainID int "json:\"chain_id\" graphql:\"chain_id\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" Protected bool "json:\"protected\" graphql:\"protected\"" Type int "json:\"type\" graphql:\"type\"" Data string "json:\"data\" graphql:\"data\"" Gas int "json:\"gas\" graphql:\"gas\"" GasPrice int "json:\"gas_price\" graphql:\"gas_price\"" GasTipCap string "json:\"gas_tip_cap\" graphql:\"gas_tip_cap\"" GasFeeCap string "json:\"gas_fee_cap\" graphql:\"gas_fee_cap\"" Value string "json:\"value\" graphql:\"value\"" Nonce int "json:\"nonce\" graphql:\"nonce\"" To string "json:\"to\" graphql:\"to\"" } "json:\"response\" graphql:\"response\"" }
type GetTransactionsRange ¶
type GetTransactionsRange struct { Response []*struct { ChainID int "json:\"chain_id\" graphql:\"chain_id\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" Protected bool "json:\"protected\" graphql:\"protected\"" Type int "json:\"type\" graphql:\"type\"" Data string "json:\"data\" graphql:\"data\"" Gas int "json:\"gas\" graphql:\"gas\"" GasPrice int "json:\"gas_price\" graphql:\"gas_price\"" GasTipCap string "json:\"gas_tip_cap\" graphql:\"gas_tip_cap\"" GasFeeCap string "json:\"gas_fee_cap\" graphql:\"gas_fee_cap\"" Value string "json:\"value\" graphql:\"value\"" Nonce int "json:\"nonce\" graphql:\"nonce\"" To string "json:\"to\" graphql:\"to\"" } "json:\"response\" graphql:\"response\"" }
type GetTransactionsResolvers ¶
type GetTransactionsResolvers struct { Response []*struct { Receipt struct { ChainID int "json:\"chain_id\" graphql:\"chain_id\"" Type int "json:\"type\" graphql:\"type\"" PostState string "json:\"post_state\" graphql:\"post_state\"" Status int "json:\"status\" graphql:\"status\"" CumulativeGasUsed int "json:\"cumulative_gas_used\" graphql:\"cumulative_gas_used\"" Bloom string "json:\"bloom\" graphql:\"bloom\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" ContractAddress string "json:\"contract_address\" graphql:\"contract_address\"" GasUsed int "json:\"gas_used\" graphql:\"gas_used\"" BlockNumber int "json:\"block_number\" graphql:\"block_number\"" TransactionIndex int "json:\"transaction_index\" graphql:\"transaction_index\"" } "json:\"receipt\" graphql:\"receipt\"" Logs []*struct { ContractAddress string "json:\"contract_address\" graphql:\"contract_address\"" ChainID int "json:\"chain_id\" graphql:\"chain_id\"" Topics []string "json:\"topics\" graphql:\"topics\"" Data string "json:\"data\" graphql:\"data\"" BlockNumber int "json:\"block_number\" graphql:\"block_number\"" TxHash string "json:\"tx_hash\" graphql:\"tx_hash\"" TxIndex int "json:\"tx_index\" graphql:\"tx_index\"" BlockHash string "json:\"block_hash\" graphql:\"block_hash\"" Index int "json:\"index\" graphql:\"index\"" Removed bool "json:\"removed\" graphql:\"removed\"" } "json:\"logs\" graphql:\"logs\"" } "json:\"response\" graphql:\"response\"" }
type GetTxSender ¶ added in v0.0.35
type GetTxSender struct {
Response *string "json:\"response\" graphql:\"response\""
}
type Query ¶
type Query struct { Logs []*model.Log "json:\"logs\" graphql:\"logs\"" LogsRange []*model.Log "json:\"logsRange\" graphql:\"logsRange\"" Receipts []*model.Receipt "json:\"receipts\" graphql:\"receipts\"" ReceiptsRange []*model.Receipt "json:\"receiptsRange\" graphql:\"receiptsRange\"" Transactions []*model.Transaction "json:\"transactions\" graphql:\"transactions\"" TransactionsRange []*model.Transaction "json:\"transactionsRange\" graphql:\"transactionsRange\"" BlockTime *int "json:\"blockTime\" graphql:\"blockTime\"" LastStoredBlockNumber *int "json:\"lastStoredBlockNumber\" graphql:\"lastStoredBlockNumber\"" FirstStoredBlockNumber *int "json:\"firstStoredBlockNumber\" graphql:\"firstStoredBlockNumber\"" TxSender *string "json:\"txSender\" graphql:\"txSender\"" LastIndexed *int "json:\"lastIndexed\" graphql:\"lastIndexed\"" LogCount *int "json:\"logCount\" graphql:\"logCount\"" BlockTimeCount *int "json:\"blockTimeCount\" graphql:\"blockTimeCount\"" }
Click to show internal directories.
Click to hide internal directories.