Documentation ¶
Index ¶
- Variables
- func GetBlurPoolBalance(walletAddress common.Address) (*big.Int, error)
- func GetEstimatedGasPrice() *big.Int
- func GetTokenBalance(walletAddress common.Address, tokenAddress common.Address) (*big.Int, error)
- func GetWETHBalance(walletAddress common.Address) (*big.Int, error)
- type AccountBalance
- type AccountBalancesResponse
- type ENSMetadata
- type ENSMetadataAttribute
- type ERC1155Metadata
- type ERC1155MetadataAttribute
- type ERC1155MetadataImageDetails
- type EventSignature
- type EventSignatureResponse
- type FloorPriceAlchemyData
- type GasOracle
- type GasOracleResponse
- type GetFloorPriceAlchemyResponse
- type IPInfo
- type MethodSignature
- type MethodSignatureResponse
- type Response
- type Signature
- type Token
- type TokenBalancesResponse
- type Transaction
- type TransactionsResponse
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidJSON = errors.New("invalid json")
View Source
var ErrMetadataURLNotFound = errors.New("metadata url not found")
Functions ¶
func GetBlurPoolBalance ¶ added in v0.6.2
func GetEstimatedGasPrice ¶ added in v0.2.0
func GetTokenBalance ¶ added in v0.2.0
Types ¶
type AccountBalance ¶ added in v0.2.0
type AccountBalance struct { Account string `json:"account"` BalanceETH *big.Int `json:"balance"` BalanceWETH *big.Int `json:"balance_weth"` BalanceBlurPool *big.Int `json:"balance_blurpool"` }
func GetBalances ¶ added in v0.2.0
func GetBalances(wallets *wallet.Wallets) ([]*AccountBalance, error)
func MultiAccountBalance ¶ added in v0.2.0
func MultiAccountBalance(wallets *wallet.Wallets) []*AccountBalance
type AccountBalancesResponse ¶ added in v0.2.0
type ENSMetadata ¶
type ENSMetadata struct { Attributes []ENSMetadataAttribute `json:"attributes"` BackgroundImage string `json:"background_image"` Description string `json:"description"` ImageURL string `json:"image_url"` Name string `json:"name"` NameLength int `json:"name_length"` SegmentLength int `json:"segment_length"` URL string `json:"url"` Version int `json:"version"` }
ENSMetadata defines model for ENSMetadata.
func GetENSMetadataForTokenID ¶
func GetENSMetadataForTokenID(tokenID *big.Int) (*ENSMetadata, error)
type ENSMetadataAttribute ¶
type ERC1155Metadata ¶
type ERC1155Metadata struct { Name string `json:"name"` CreatedBy string `json:"created_by"` ExternalURL string `json:"external_url"` Description string `json:"description"` Attributes []ERC1155MetadataAttribute `json:"attributes"` ImageDetails ERC1155MetadataImageDetails `json:"image_details"` Image string `json:"image"` ImageURL string `json:"image_url"` }
type EventSignature ¶ added in v0.6.0
type EventSignature struct { MethodSignature CreatedAt time.Time `json:"created_at"` }
func GetEventSignature ¶ added in v0.6.0
func GetEventSignature(hexSignature common.Hash) (EventSignature, error)
type EventSignatureResponse ¶ added in v0.6.0
type EventSignatureResponse struct { Count int `json:"count"` Next interface{} `json:"next"` Previous interface{} `json:"previous"` Results []EventSignature `json:"results"` }
type FloorPriceAlchemyData ¶ added in v0.7.1
type GasOracle ¶ added in v0.2.0
type GasOracle struct { LastBlock string `json:"LastBlock"` SafeGasPrice string `json:"SafeGasPrice"` ProposeGasPrice string `json:"ProposeGasPrice"` FastGasPrice string `json:"FastGasPrice"` SuggestBaseFee string `json:"suggestBaseFee"` GasUsedRatio string `json:"gasUsedRatio"` }
func GetGasOracle ¶ added in v0.2.0
func GetGasOracle() *GasOracle
type GasOracleResponse ¶ added in v0.2.0
type GetFloorPriceAlchemyResponse ¶ added in v0.7.1
type GetFloorPriceAlchemyResponse struct { Opensea FloorPriceAlchemyData `json:"openSea"` Looksrare FloorPriceAlchemyData `json:"looksRare"` }
func GetFloorPriceFromAlchemy ¶ added in v0.7.1
func GetFloorPriceFromAlchemy(contract string) *GetFloorPriceAlchemyResponse
type IPInfo ¶ added in v0.11.0
type IPInfo struct { IP string `json:"ip"` Version string `json:"version"` City string `json:"city"` Region string `json:"region"` RegionCode string `json:"region_code"` CountryCode string `json:"country_code"` CountryCodeIso3 string `json:"country_code_iso3"` CountryName string `json:"country_name"` CountryCapital string `json:"country_capital"` CountryTld string `json:"country_tld"` ContinentCode string `json:"continent_code"` InEu bool `json:"in_eu"` Postal string `json:"postal"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` Timezone string `json:"timezone"` UtcOffset string `json:"utc_offset"` CountryCallingCode string `json:"country_calling_code"` Currency string `json:"currency"` CurrencyName string `json:"currency_name"` Languages string `json:"languages"` CountryArea float64 `json:"country_area"` CountryPopulation int `json:"country_population"` Asn string `json:"asn"` Org string `json:"org"` Hostname string `json:"hostname"` Error bool `json:"error"` Reason string `json:"reason"` Reserved bool `json:"reserved"` }
type MethodSignature ¶ added in v0.12.0
type MethodSignature struct { ID int `json:"id"` TextSignature string `json:"text_signature"` HexSignature string `json:"hex_signature"` BytesSignature string `json:"bytes_signature"` }
func GetMethodSignature ¶ added in v0.12.0
func GetMethodSignature(methodID string) (MethodSignature, error)
func (MethodSignature) SignatureID ¶ added in v0.12.0
func (m MethodSignature) SignatureID() int
type MethodSignatureResponse ¶ added in v0.12.0
type MethodSignatureResponse struct { Count int `json:"count"` Next interface{} `json:"next"` Previous interface{} `json:"previous"` Results []MethodSignature `json:"results"` }
type TokenBalancesResponse ¶ added in v0.2.0
type Transaction ¶ added in v0.11.0
type Transaction struct { BlockNumber string `json:"blockNumber"` TimeStamp string `json:"timeStamp"` Hash string `json:"hash"` Nonce string `json:"nonce"` BlockHash string `json:"blockHash"` From string `json:"from"` ContractAddress string `json:"contractAddress"` To string `json:"to"` TokenID string `json:"tokenID"` TokenName string `json:"tokenName"` TokenSymbol string `json:"tokenSymbol"` TokenDecimal string `json:"tokenDecimal"` TransactionIndex string `json:"transactionIndex"` Gas string `json:"gas"` GasPrice string `json:"gasPrice"` GasUsed string `json:"gasUsed"` CumulativeGasUsed string `json:"cumulativeGasUsed"` Input string `json:"input"` Confirmations string `json:"confirmations"` }
func GetFirstTransactionsByContract ¶ added in v0.11.0
func GetFirstTransactionsByContract(numTxs int64, contractAddress common.Address) ([]Transaction, error)
type TransactionsResponse ¶ added in v0.11.0
type TransactionsResponse struct { Status string `json:"status"` Message string `json:"message"` Result []Transaction `json:"result"` }
Click to show internal directories.
Click to hide internal directories.