This repository was archived by the owner on Mar 11, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -7,4 +7,4 @@ utilize to create and use their tokens.
77
88Full documentation is available at https://spl.solana.com/token
99
10- JavaScript binding are available in the ` ./js ` directory.
10+ JavaScript bindings are available in the ` ./js ` directory.
Original file line number Diff line number Diff line change @@ -427,6 +427,18 @@ typedef enum Token_TokenInstruction_Tag {
427427 * 3. `[]` Rent sysvar
428428 */
429429 Token_TokenInstruction_InitializeAccount2,
430+ /* *
431+ * Given a wrapped / native token account (a token account containing SOL)
432+ * updates its amount field based on the account's underlying `lamports`.
433+ * This is useful if a non-wrapped SOL account uses `system_instruction::transfer`
434+ * to move lamports to a wrapped token account, and needs to have its token
435+ * `amount` field updated.
436+ *
437+ * Accounts expected by this instruction:
438+ *
439+ * 0. `[writable]` The native token account to sync with its underlying lamports.
440+ */
441+ Token_TokenInstruction_SyncNative,
430442} Token_TokenInstruction_Tag;
431443
432444typedef struct Token_TokenInstruction_Token_InitializeMint_Body {
You can’t perform that action at this time.
0 commit comments