1

I want to fetch the delegated account/delegate of a specific NFT. Is this possible in either the native web3 API or Metaplex?

1 Answer 1

3

You can use the @solana/spl-token npm package to do it easily:

import {getAccount} from '@solana/spl-token';

const connection = ...; // make your connection
const accountAddress = ...; // get your account address
const accountInfo = await getAccount(connection, accountAddress);
console.log(accountInfo.delegate);

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.