Skip to content

Commit bc57a18

Browse files
authored
Update spl-to-light-reference.mdx
1 parent e768d0c commit bc57a18

1 file changed

Lines changed: 0 additions & 18 deletions

File tree

resources/spl-to-light-reference.mdx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -134,24 +134,6 @@ const signatures = await connection.getSignaturesForAddress(ata);
134134

135135
`@lightprotocol/compressed-token` interface functions match the `@solana/spl-token` API. Use `rpc` (from `createRpc`) instead of `connection`.
136136

137-
#### Instruction API return types
138-
139-
Some instruction builders return a single instruction, others return a 2D array (`TransactionInstruction[][]`) where each inner array is one transaction. The 2D shape handles cases where cold balances need loading in a separate preceding transaction.
140-
141-
| Return type | APIs |
142-
|:--|:--|
143-
| `TransactionInstruction` | `createAssociatedTokenAccountInterfaceInstruction`, `createMintToInterfaceInstruction`, `createLightTokenTransferInstruction`, `createWrapInstruction` |
144-
| `TransactionInstruction[][]` | `createTransferInterfaceInstructions`, `createLoadAtaInstructions`, `createUnwrapInstructions` |
145-
146-
For batch builders, loop over the array and build a transaction from each entry:
147-
148-
```typescript
149-
for (const ixs of instructions) {
150-
const tx = new Transaction().add(...ixs);
151-
await sendAndConfirmTransaction(rpc, tx, [payer, owner]);
152-
}
153-
```
154-
155137
### Create mint
156138

157139
Create a mint account with optional token metadata. The light token program sponsors rent-exemption.

0 commit comments

Comments
 (0)