Why is 'undefined' returned when i make the following 'dasApi' request? #1201
Unanswered
freewillyjenkins
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
import { createUmi } from '@metaplex-foundation/umi-bundle-defaults';
import { dasApi } from "@metaplex-foundation/digital-asset-standard-api";
const httpsEndpoint =
https://maximum-magical-wave.solana-mainnet.quiknode.pro/${process.env.QUICKNODE_API_KEY}
const umi = createUmi(httpsEndpoint).use(dasApi())
const asset = await umi.rpc.call(
'getAsset',
[
'CgR9FHnrh16az7ztTCMnzdq4HjMmAZcx6dBRszgipump'
]
);
console.log(asset)
I tested the request with other token addresses and it works, but i don't know what it is about certain token addresses that return undefined
Beta Was this translation helpful? Give feedback.
All reactions