nNexGateHub
Browse NexGateHub
GPT

PDA Authority & CPI Pattern

// Invoke SPL Token transfer where the PDA is the signer let seeds = &[b"vault", mint.key().asref(), &[vaultbump]]; let signer = &[&seeds[..]]; token::transfer( CpiContext::newwithsigner( ctx.accounts.tokenprogram.toa

Prompt text

Original English text. Replace placeholders with your own details.

Source & attribution

Awesome Prompts · Awesome Prompts

Source-listed license: GPL-3.0. Prompt text is preserved; titles and previews may be shortened for display. Source examples are not NexGateHub test results.

View original source ↗ · Source credits & licenses

Explore more prompts →