usando getTokenSupply en solana web 3 pude obtener la cantidad y los decimales, ¿cómo puedo obtener el nombre del token y otros metadatos?
let from_pairs = new anchor.web3.PublicKey("DUru78GcRB8Ucg24Gy6WNTyufuyBhqcL5wppZJkckQHz") const NETWORK = anchor.web3.clusterApiUrl('devnet'); const Connection = new anchor.web3.Connection(NETWORK); const data = await Connection.getTokenSupply(from_pairs) console.log(data, data2)producción
Si desea el nombre del token y otros metadatos, probablemente desee consultar la token-list Solana. Consulte el repositorio en https://github.com/solana-labs/token-list