-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
When trying to fetch wallets on solana mainnet the response always returns 0 tokens:
package main
import (
"coin_market_tracker/env"
"fmt"
"github.com/covalenthq/covalent-api-sdk-go/chains"
"github.com/covalenthq/covalent-api-sdk-go/covalentclient"
"github.com/covalenthq/covalent-api-sdk-go/quotes"
"github.com/covalenthq/covalent-api-sdk-go/services"
)
func main() {
env.LoadKeysFromEnv()
var Client = covalentclient.CovalentClient(env.GetApiKeys().CovalentHqApiKey)
solAddress := "ENcEhwjQbXKxsPyEJWSVnn8S2mZfczMeKpLJhBDBHsHg"
currency := quotes.USD
NoSpam := false
resp, _ := Client.BalanceService.GetTokenBalancesForWalletAddress(chains.SolanaMainnet, solAddress, services.GetTokenBalancesForWalletAddressQueryParamOpts{
QuoteCurrency: ¤cy,
NoSpam: &NoSpam,
})
fmt.Println(len(resp.Data.Items), "tokens found") // prints: 0 tokens found
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels