I am trying to send a compressed NFT with a canopy depth of 0, meaning i have to submit a proofpath with a 24 key length. This always gives me a transaction too large error. Is there a way to optimize this?
This is the code I am using:
const assetWithProof = await getAssetWithProof(umi, publicKey(assetId));
console.log("Asset with proof:", assetWithProof);
const transferIxs: TransactionInstruction[] = transfer(umi, {
...assetWithProof,
leafOwner: publicKey(asset.ownership.owner),
newLeafOwner: publicKey(toPubkey),
})