@@ -134,10 +134,7 @@ console.log("Token Mint Address:", result.mint.toString());
134
134
```
135
135
### Create NFT Collection on 3Land
136
136
``` typescript
137
- const optionsWithBase58: StoreInitOptions = {
138
- privateKey: " " ,
139
- isMainnet: true , // if false, collection will be created on devnet 3.land (dev.3.land)
140
- };
137
+ const isDevnet = true ; // (Optional) if not present TX takes place in Mainnet
141
138
142
139
const collectionOpts: CreateCollectionOptions = {
143
140
collectionName: " " ,
@@ -147,18 +144,16 @@ const optionsWithBase58: StoreInitOptions = {
147
144
};
148
145
149
146
const result = await agent .create3LandCollection (
150
- optionsWithBase58 ,
151
- collectionOpts
147
+ collectionOpts ,
148
+ isDevnet , // (Optional) if not present TX takes place in Mainnet
152
149
);
153
150
```
154
151
155
152
### Create NFT on 3Land
156
153
When creating an NFT using 3Land's tool, it automatically goes for sale on 3.land website
157
154
``` typescript
158
- const optionsWithBase58: StoreInitOptions = {
159
- privateKey: " " ,
160
- isMainnet: true , // if false, listing will be on devnet 3.land (dev.3.land)
161
- };
155
+ const isDevnet = true ; // (Optional) if not present TX takes place in Mainnet
156
+ const withPool = true ; // (Optional) only present if NFT will be created with a Liquidity Pool for a specific SPL token
162
157
const collectionAccount = " " ; // hash for the collection
163
158
const createItemOptions: CreateSingleOptions = {
164
159
itemName: " " ,
@@ -170,15 +165,15 @@ const createItemOptions: CreateSingleOptions = {
170
165
{ trait_type: " " , value: " " },
171
166
],
172
167
price: 0 , // 100000000 == 0.1 sol, can be set to 0 for a free mint
168
+ splHash: " " , // present if listing is on a specific SPL token, if not present sale will be on $SOL, must be present if "withPool" is true
169
+ poolName: " " , // Only present if "withPool" is true
173
170
mainImageUrl: " " ,
174
- splHash: " " , // present if listing is on a specific SPL token, if not present sale will be on $SOL
175
171
};
176
- const isMainnet = true ;
177
172
const result = await agent .create3LandNft (
178
- optionsWithBase58 ,
179
173
collectionAccount ,
180
174
createItemOptions ,
181
- isMainnet
175
+ isDevnet , // (Optional) if not present TX takes place in Mainnet
176
+ withPool
182
177
);
183
178
184
179
```
@@ -471,6 +466,38 @@ Update the address a drift vault is delegated to.
471
466
const signature = await agent .updateDriftVaultDelegate (" 41Y8C4oxk4zgJT1KXyQr35UhZcfsp5mP86Z2G7UUzojU" , " new-address" )
472
467
```
473
468
469
+ ### Get Voltr Vault Position Values
470
+
471
+ Get the current position values and total value of assets in a Voltr vault.
472
+
473
+ ``` typescript
474
+ const values = await agent .voltrGetPositionValues (" 7opUkqYtxmQRriZvwZkPcg6LqmGjAh1RSEsVrdsGDx5K" )
475
+ ```
476
+
477
+ ### Deposit into Voltr Strategy
478
+
479
+ Deposit assets into a specific strategy within a Voltr vault.
480
+
481
+ ``` typescript
482
+ const signature = await agent .voltrDepositStrategy (
483
+ new BN (" 1000000000" ), // amount in base units (e.g., 1 USDC = 1000000)
484
+ " 7opUkqYtxmQRriZvwZkPcg6LqmGjAh1RSEsVrdsGDx5K" , // vault
485
+ " 9ZQQYvr4x7AMqd6abVa1f5duGjti5wk1MHsX6hogPsLk" // strategy
486
+ )
487
+ ```
488
+
489
+ ### Withdraw from Voltr Strategy
490
+
491
+ Withdraw assets from a specific strategy within a Voltr vault.
492
+
493
+ ``` typescript
494
+ const signature = await agent .voltrWithdrawStrategy (
495
+ new BN (" 1000000000" ), // amount in base units (e.g., 1 USDC = 1000000)
496
+ " 7opUkqYtxmQRriZvwZkPcg6LqmGjAh1RSEsVrdsGDx5K" , // vault
497
+ " 9ZQQYvr4x7AMqd6abVa1f5duGjti5wk1MHsX6hogPsLk" // strategy
498
+ )
499
+ ```
500
+
474
501
### Get a Solana asset by its ID
475
502
476
503
``` typescript
0 commit comments