Skip to main content
delegatedSponsorTransaction sends an unsigned Solana transaction to Dynamic’s gas sponsorship endpoint and returns a VersionedTransaction with the sponsor as fee payer. Pass the result to delegatedSignTransaction with an explicit signerAddress so the delegated wallet signs as the user, not as the new fee payer.
For most cases, pass sponsor: true to delegatedSignTransaction instead of calling this method directly.

Function signature

Parameters

Returns

Promise<VersionedTransaction> — the sponsored transaction, always returned as a VersionedTransaction.

Example

Last modified on August 18, 2026