@@ -114,7 +114,7 @@ public static async Task<string> InitializeCandyMachine(
114
114
( byte ) TokenStandard . NonFungible ,
115
115
CandyMachineProgramId
116
116
) ;
117
- var blockHash = await rpcClient . GetRecentBlockHashAsync ( ) ;
117
+ var blockHash = await rpcClient . GetLatestBlockHashAsync ( ) ;
118
118
var candyAccountSize = GetSpaceForCandyMachine ( candyMachineData ) ;
119
119
var minimumRent = await rpcClient . GetMinimumBalanceForRentExemptionAsync ( ( long ) candyAccountSize ) ;
120
120
var transaction = new TransactionBuilder ( )
@@ -154,7 +154,7 @@ public static async Task<string> AddConfigLines(
154
154
configLines ,
155
155
CandyMachineProgramId
156
156
) ;
157
- var blockHash = await rpcClient . GetRecentBlockHashAsync ( ) ;
157
+ var blockHash = await rpcClient . GetLatestBlockHashAsync ( ) ;
158
158
var transaction = new TransactionBuilder ( )
159
159
. SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
160
160
. SetFeePayer ( account )
@@ -213,7 +213,7 @@ public static async Task<string> MintOneToken(
213
213
RecentSlothashes = RECENT_SLOTHASHES
214
214
} ;
215
215
var candyMachineInstruction = CandyMachineProgram . MintV2 ( mintNftAccounts , CandyMachineProgramId ) ;
216
- var blockHash = await rpcClient . GetRecentBlockHashAsync ( ) ;
216
+ var blockHash = await rpcClient . GetLatestBlockHashAsync ( ) ;
217
217
var computeInstruction = ComputeBudgetProgram . SetComputeUnitLimit ( COMPUTE_UNITS ) ;
218
218
candyMachineInstruction = new TransactionInstruction {
219
219
Data = candyMachineInstruction . Data ,
@@ -291,7 +291,7 @@ public static async Task<string> MintOneTokenWithGuards(
291
291
CandyGuardProgramId
292
292
) ;
293
293
294
- var blockHash = await rpcClient . GetRecentBlockHashAsync ( ) ;
294
+ var blockHash = await rpcClient . GetLatestBlockHashAsync ( ) ;
295
295
var computeInstruction = ComputeBudgetProgram . SetComputeUnitLimit ( COMPUTE_UNITS ) ;
296
296
candyMachineInstruction = new TransactionInstruction {
297
297
Data = candyMachineInstruction . Data ,
@@ -350,7 +350,7 @@ out var _
350
350
resultData ,
351
351
CandyGuardProgramId
352
352
) ;
353
- var blockHash = await rpcClient . GetRecentBlockHashAsync ( ) ;
353
+ var blockHash = await rpcClient . GetLatestBlockHashAsync ( ) ;
354
354
var transaction = new TransactionBuilder ( )
355
355
. SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
356
356
. SetFeePayer ( account )
@@ -385,7 +385,7 @@ public static async Task<string> AddGuards(
385
385
resultData ,
386
386
CandyGuardProgramId
387
387
) ;
388
- var blockHash = await rpcClient . GetRecentBlockHashAsync ( ) ;
388
+ var blockHash = await rpcClient . GetLatestBlockHashAsync ( ) ;
389
389
var transaction = new TransactionBuilder ( )
390
390
. SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
391
391
. SetFeePayer ( account )
@@ -414,7 +414,7 @@ public static async Task<string> WrapCandyMachine(
414
414
wrapAccounts ,
415
415
CandyGuardProgramId
416
416
) ;
417
- var blockHash = await rpcClient . GetRecentBlockHashAsync ( ) ;
417
+ var blockHash = await rpcClient . GetLatestBlockHashAsync ( ) ;
418
418
var transaction = new TransactionBuilder ( )
419
419
. SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
420
420
. SetFeePayer ( account )
@@ -436,7 +436,7 @@ public static async Task<string> Withdraw(
436
436
CandyMachine = candyMachineAccount
437
437
} ;
438
438
var withdrawInstruction = CandyMachineProgram . Withdraw ( withdrawAccounts , CandyMachineProgramId ) ;
439
- var blockHash = await rpcClient . GetRecentBlockHashAsync ( ) ;
439
+ var blockHash = await rpcClient . GetLatestBlockHashAsync ( ) ;
440
440
var transaction = new TransactionBuilder ( )
441
441
. SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
442
442
. SetFeePayer ( account )
@@ -458,7 +458,7 @@ public static async Task<string> WithdrawGuards(
458
458
Authority = account
459
459
} ;
460
460
var withdrawInstruction = CandyGuardProgram . Withdraw ( withdrawAccounts , CandyMachineProgramId ) ;
461
- var blockHash = await rpcClient . GetRecentBlockHashAsync ( ) ;
461
+ var blockHash = await rpcClient . GetLatestBlockHashAsync ( ) ;
462
462
var transaction = new TransactionBuilder ( )
463
463
. SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
464
464
. SetFeePayer ( account )
0 commit comments