@@ -26,7 +26,7 @@ public void Run()
26
26
{
27
27
Wallet . Wallet wallet = new ( MnemonicWords ) ;
28
28
29
- RequestResult < ResponseValue < BlockHash > > blockHash = rpcClient . GetRecentBlockHash ( ) ;
29
+ RequestResult < ResponseValue < LatestBlockHash > > blockHash = rpcClient . GetLatestBlockHash ( ) ;
30
30
31
31
ulong minBalanceForExemptionMultiSig =
32
32
rpcClient . GetMinimumBalanceForRentExemption ( TokenProgram . MultisigAccountDataSize ) . Result ;
@@ -91,7 +91,7 @@ public void Run()
91
91
string createMultiSigAndMintSignature = Examples . SubmitTxSendAndLog ( txBytes ) ;
92
92
Examples . PollConfirmedTx ( createMultiSigAndMintSignature ) ;
93
93
94
- blockHash = rpcClient . GetRecentBlockHash ( ) ;
94
+ blockHash = rpcClient . GetLatestBlockHash ( ) ;
95
95
96
96
msgData = new TransactionBuilder ( ) . SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
97
97
. SetFeePayer ( ownerAccount )
@@ -154,7 +154,7 @@ public void Run()
154
154
{
155
155
Wallet . Wallet wallet = new ( MnemonicWords ) ;
156
156
157
- RequestResult < ResponseValue < BlockHash > > blockHash = rpcClient . GetRecentBlockHash ( ) ;
157
+ RequestResult < ResponseValue < LatestBlockHash > > blockHash = rpcClient . GetLatestBlockHash ( ) ;
158
158
159
159
ulong minBalanceForExemptionMultiSig =
160
160
rpcClient . GetMinimumBalanceForRentExemption ( TokenProgram . MultisigAccountDataSize ) . Result ;
@@ -227,7 +227,7 @@ public void Run()
227
227
{
228
228
Wallet . Wallet wallet = new ( MnemonicWords ) ;
229
229
230
- RequestResult < ResponseValue < BlockHash > > blockHash = rpcClient . GetRecentBlockHash ( ) ;
230
+ RequestResult < ResponseValue < LatestBlockHash > > blockHash = rpcClient . GetLatestBlockHash ( ) ;
231
231
232
232
ulong minBalanceForExemptionMultiSig =
233
233
rpcClient . GetMinimumBalanceForRentExemption ( TokenProgram . MultisigAccountDataSize ) . Result ;
@@ -359,7 +359,7 @@ public void Run()
359
359
{
360
360
Wallet . Wallet wallet = new ( MnemonicWords ) ;
361
361
362
- RequestResult < ResponseValue < BlockHash > > blockHash = rpcClient . GetRecentBlockHash ( ) ;
362
+ RequestResult < ResponseValue < LatestBlockHash > > blockHash = rpcClient . GetLatestBlockHash ( ) ;
363
363
364
364
ulong minBalanceForExemptionMultiSig =
365
365
rpcClient . GetMinimumBalanceForRentExemption ( TokenProgram . MultisigAccountDataSize ) . Result ;
@@ -427,7 +427,7 @@ public void Run()
427
427
string signature = Examples . SubmitTxSendAndLog ( txBytes ) ;
428
428
Examples . PollConfirmedTx ( signature ) ;
429
429
430
- blockHash = rpcClient . GetRecentBlockHash ( ) ;
430
+ blockHash = rpcClient . GetLatestBlockHash ( ) ;
431
431
432
432
433
433
// Then we create an account which will be the token's mint authority
@@ -479,7 +479,7 @@ public void Run()
479
479
signature = Examples . SubmitTxSendAndLog ( txBytes ) ;
480
480
Examples . PollConfirmedTx ( signature ) ;
481
481
482
- blockHash = rpcClient . GetRecentBlockHash ( ) ;
482
+ blockHash = rpcClient . GetLatestBlockHash ( ) ;
483
483
484
484
// Here we mint tokens to an account using the mint authority multi sig
485
485
msgData = new TransactionBuilder ( ) . SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
@@ -526,7 +526,7 @@ public void Run()
526
526
signature = Examples . SubmitTxSendAndLog ( txBytes ) ;
527
527
Examples . PollConfirmedTx ( signature ) ;
528
528
529
- blockHash = rpcClient . GetRecentBlockHash ( ) ;
529
+ blockHash = rpcClient . GetLatestBlockHash ( ) ;
530
530
531
531
// After doing this, we freeze the account to which we just minted tokens
532
532
// Notice how the signers used are different, because the `freezeAuthority` has different signers
@@ -563,7 +563,7 @@ public void Run()
563
563
signature = Examples . SubmitTxSendAndLog ( txBytes ) ;
564
564
Examples . PollConfirmedTx ( signature ) ;
565
565
566
- blockHash = rpcClient . GetRecentBlockHash ( ) ;
566
+ blockHash = rpcClient . GetLatestBlockHash ( ) ;
567
567
568
568
// Because we're actually cool people, we now thaw that same account and then set the authority to nothing
569
569
msgData = new TransactionBuilder ( ) . SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
@@ -627,7 +627,7 @@ public void Run()
627
627
{
628
628
Wallet . Wallet wallet = new ( MnemonicWords ) ;
629
629
630
- RequestResult < ResponseValue < BlockHash > > blockHash = rpcClient . GetRecentBlockHash ( ) ;
630
+ RequestResult < ResponseValue < LatestBlockHash > > blockHash = rpcClient . GetLatestBlockHash ( ) ;
631
631
632
632
ulong minBalanceForExemptionMultiSig =
633
633
rpcClient . GetMinimumBalanceForRentExemption ( TokenProgram . MultisigAccountDataSize ) . Result ;
@@ -703,7 +703,7 @@ public void Run()
703
703
string signature = Examples . SubmitTxSendAndLog ( txBytes ) ;
704
704
Examples . PollConfirmedTx ( signature ) ;
705
705
706
- blockHash = rpcClient . GetRecentBlockHash ( ) ;
706
+ blockHash = rpcClient . GetLatestBlockHash ( ) ;
707
707
708
708
msgData = new TransactionBuilder ( ) . SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
709
709
. SetFeePayer ( ownerAccount )
@@ -749,7 +749,7 @@ public void Run()
749
749
signature = Examples . SubmitTxSendAndLog ( txBytes ) ;
750
750
Examples . PollConfirmedTx ( signature ) ;
751
751
752
- blockHash = rpcClient . GetRecentBlockHash ( ) ;
752
+ blockHash = rpcClient . GetLatestBlockHash ( ) ;
753
753
754
754
msgData = new TransactionBuilder ( ) . SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
755
755
. SetFeePayer ( ownerAccount )
@@ -786,7 +786,7 @@ public void Run()
786
786
signature = Examples . SubmitTxSendAndLog ( txBytes ) ;
787
787
Examples . PollConfirmedTx ( signature ) ;
788
788
789
- blockHash = rpcClient . GetRecentBlockHash ( ) ;
789
+ blockHash = rpcClient . GetLatestBlockHash ( ) ;
790
790
791
791
792
792
msgData = new TransactionBuilder ( ) . SetRecentBlockHash ( blockHash . Result . Value . Blockhash )
@@ -845,7 +845,7 @@ public void Run()
845
845
{
846
846
Wallet . Wallet wallet = new ( MnemonicWords ) ;
847
847
848
- RequestResult < ResponseValue < BlockHash > > blockHash = rpcClient . GetRecentBlockHash ( ) ;
848
+ RequestResult < ResponseValue < LatestBlockHash > > blockHash = rpcClient . GetLatestBlockHash ( ) ;
849
849
850
850
ulong minBalanceForExemptionMultiSig =
851
851
rpcClient . GetMinimumBalanceForRentExemption ( TokenProgram . MultisigAccountDataSize ) . Result ;
@@ -946,7 +946,7 @@ public void Run()
946
946
{
947
947
Wallet . Wallet wallet = new ( MnemonicWords ) ;
948
948
949
- RequestResult < ResponseValue < BlockHash > > blockHash = rpcClient . GetRecentBlockHash ( ) ;
949
+ RequestResult < ResponseValue < LatestBlockHash > > blockHash = rpcClient . GetLatestBlockHash ( ) ;
950
950
951
951
ulong minBalanceForExemptionMultiSig =
952
952
rpcClient . GetMinimumBalanceForRentExemption ( TokenProgram . MultisigAccountDataSize ) . Result ;
0 commit comments