Skip to content

Commit fb319d7

Browse files
committed
Add instruction
1 parent d86332e commit fb319d7

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

p-interface/src/instruction.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -498,6 +498,21 @@ pub enum TokenInstruction {
498498
/// 3. `..+M` `[signer]` M signer accounts.
499499
WithdrawExcessLamports = 38,
500500

501+
/// Transfer lamports from a native SOL account to a destination account.
502+
///
503+
/// This is useful to unwrap lamports from a wrapped SOL account.
504+
///
505+
/// Accounts expected by this instruction:
506+
///
507+
/// 0. `[writable]` The source account.
508+
/// 1. `[writable]` The destination account.
509+
/// 2. `[signer]` The source account's owner/delegate.
510+
///
511+
/// Data expected by this instruction:
512+
///
513+
/// - `u64` The amount of lamports to transfer.
514+
UnwrapLamports,
515+
501516
/// Executes a batch of instructions. The instructions to be executed are
502517
/// specified in sequence on the instruction data. Each instruction
503518
/// provides:

0 commit comments

Comments
 (0)