Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of depreacted RPC calls that will soon be removed #465

Open
Woody4618 opened this issue Aug 29, 2024 · 2 comments
Open

Usage of depreacted RPC calls that will soon be removed #465

Woody4618 opened this issue Aug 29, 2024 · 2 comments

Comments

@Woody4618
Copy link

Hey, there are bunch of RPC calls that are deprecated and will be removed very soon.
You can find the deprecated calls here:
https://github.com/anza-xyz/agave/wiki/Agave-v2.0-Transition-Guide

I searched your SDK for usage of these calls and looks like you are using

confirmTransaction
getConfirmedBlock
getConfirmedBlocks
getConfirmedBlocksWithLimit
getConfirmedTransaction
getConfirmedSignaturesForAddress2
getRecentBlockhash
getFees
getFeeCalculatorForBlockhash
getFeeRateGovernor
getSnapshotSlot
getStakeActivation

These calls will not be usable anymore soon after breakpoint when Agave 2.0 goes live.

You can find the all the usages in the code using this bash script:
https://gist.githubusercontent.com/cloakd/2366d9c5d415c27a1f26f10de0b8be93/raw/d0d3a25dda23586ba9704f7985fb06093032ec72/check_words.sh

Here you can find a replacement implementation for rust and JS client side for get stake activation:
https://github.com/solana-developers/solana-rpc-get-stake-activation

All other calls have replacement calls here:
https://github.com/anza-xyz/agave/wiki/Agave-v2.0-Transition-Guide

If you know users of the SDK would also be great if you could inform them about the deprecated calls so nothing breaks when the calls actually get removed on mainnet.

@Woody4618
Copy link
Author

These are the occasion of the calls in the SDK:


/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Programs/Abstract/BaseClient.cs:178:        public async Task<ResponseValue<ErrorResult>> ConfirmTransaction(string hash, ulong validBlockHeight, Commitment commitment = Commitment.Finalized)
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Programs/Abstract/BaseClient.cs:180:            return await TransactionConfirmationUtils.ConfirmTransaction(this.RpcClient, this.StreamingRpcClient, hash, validBlockHeight, commitment);
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/TransactionUtils.cs:26:        public static async Task<ResponseValue<ErrorResult>> ConfirmTransaction(IRpcClient rpc, IStreamingRpcClient streamingRpcClient, 
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/TransactionUtils.cs:68:        public static async Task<ResponseValue<ErrorResult>> ConfirmTransaction(IRpcClient rpc, IStreamingRpcClient streamingRpcClient,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:105:            var res = sut.GetConfirmedBlock(79662905);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:203:            var res = sut.GetConfirmedBlock(79662905, Commitment.Confirmed);
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:262:            return await SendRequestAsync<BlockInfo>("getConfirmedBlock",
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:271:        /// <inheritdoc cref="IRpcClient.GetConfirmedBlock"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:272:        public RequestResult<BlockInfo> GetConfirmedBlock(ulong slot, Commitment commitment = Commitment.Finalized,
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:209:        RequestResult<BlockInfo> GetConfirmedBlock(ulong slot, Commitment commitment = Commitment.Finalized,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:624:            var res = sut.GetConfirmedBlocks(79_499_950, 79_500_000);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:656:                var res = sut.GetConfirmedBlocks(79_499_950, 79_500_000, Commitment.Processed);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:708:            var res = sut.GetConfirmedBlocks(79_499_950, 79_500_000, Commitment.Confirmed);
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:292:            return await SendRequestAsync<List<ulong>>("getConfirmedBlocks",
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:297:        /// <inheritdoc cref="IRpcClient.GetConfirmedBlocks"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:298:        public RequestResult<List<ulong>> GetConfirmedBlocks(ulong startSlot, ulong endSlot = 0,
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:318:        RequestResult<List<ulong>> GetConfirmedBlocks(ulong startSlot, ulong endSlot = 0, Commitment commitment = Commitment.Finalized);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:762:            var res = sut.GetConfirmedBlocksWithLimit(79_699_950, 2);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:816:            var res = sut.GetConfirmedBlocksWithLimit(79_699_950, 2, Commitment.Confirmed);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:850:                var res = sut.GetConfirmedBlocksWithLimit(79_699_950, 2, Commitment.Processed);
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:311:            return await SendRequestAsync<List<ulong>>("getConfirmedBlocksWithLimit",
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:320:        /// <inheritdoc cref="IRpcClient.GetConfirmedBlocksWithLimit"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:321:        public RequestResult<List<ulong>> GetConfirmedBlocksWithLimit(ulong startSlot, ulong limit,
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:359:        RequestResult<List<ulong>> GetConfirmedBlocksWithLimit(ulong startSlot,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:401:            var res = sut.GetConfirmedTransaction("5as3w4KMpY23MP5T1nkPVksjXjN7hnjHKqiDxRMxUNcw5XsCGtStayZib1kQdyR2D9w8dR11Ha9Xk38KP3kbAwM1", Commitment.Confirmed);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:461:            var res = sut.GetConfirmedTransaction("5as3w4KMpY23MP5T1nkPVksjXjN7hnjHKqiDxRMxUNcw5XsCGtStayZib1kQdyR2D9w8dR11Ha9Xk38KP3kbAwM1", Commitment.Processed);
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:441:            return await SendRequestAsync<TransactionMetaSlotInfo>("getConfirmedTransaction",
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:451:        /// <inheritdoc cref="IRpcClient.GetConfirmedTransaction(string, Commitment, int)"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:452:        public RequestResult<TransactionMetaSlotInfo> GetConfirmedTransaction(string signature,
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:1131:        RequestResult<TransactionMetaSlotInfo> GetConfirmedTransaction(string signature, Commitment commitment = Commitment.Finalized, int maxSupportedTransactionVersion = 0);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:35:            batch.GetConfirmedSignaturesForAddress2("9we6kjtbcZ2vy3GSLLsZTEhbAqXPTRvEyoxa8wxSqKp5", 200, null, null);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:36:            batch.GetConfirmedSignaturesForAddress2("88ocFjrLgHEMQRMwozC7NnDBQUsq2UoQaqREFZoDEex", 200, null, null);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:37:            batch.GetConfirmedSignaturesForAddress2("4NSREK36nAr32vooa3L9z8tu6JWj5rY3k4KnsqTgynvm", 200, null, null);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:119:            batch.GetConfirmedSignaturesForAddress2("9we6kjtbcZ2vy3GSLLsZTEhbAqXPTRvEyoxa8wxSqKp5", 200, null, null,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:121:            batch.GetConfirmedSignaturesForAddress2("88ocFjrLgHEMQRMwozC7NnDBQUsq2UoQaqREFZoDEex", 200, null, null,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:123:            batch.GetConfirmedSignaturesForAddress2("4NSREK36nAr32vooa3L9z8tu6JWj5rY3k4KnsqTgynvm", 200, null, null,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:175:            batch.GetConfirmedSignaturesForAddress2("9we6kjtbcZ2vy3GSLLsZTEhbAqXPTRvEyoxa8wxSqKp5", 200, null, null,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:177:            batch.GetConfirmedSignaturesForAddress2("88ocFjrLgHEMQRMwozC7NnDBQUsq2UoQaqREFZoDEex", 200, null, null,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:179:            batch.GetConfirmedSignaturesForAddress2("4NSREK36nAr32vooa3L9z8tu6JWj5rY3k4KnsqTgynvm", 200, null, null,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:275:            batch.GetConfirmedSignaturesForAddress2("9we6kjtbcZ2vy3GSLLsZTEhbAqXPTRvEyoxa8wxSqKp5", 200, null, null,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:277:            batch.GetConfirmedSignaturesForAddress2("88ocFjrLgHEMQRMwozC7NnDBQUsq2UoQaqREFZoDEex", 200, null, null,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBatchTests.cs:279:            batch.GetConfirmedSignaturesForAddress2("4NSREK36nAr32vooa3L9z8tu6JWj5rY3k4KnsqTgynvm", 200, null, null,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientSignaturesTest.cs:65:            var result = sut.GetConfirmedSignaturesForAddress2("4Rf9mGD7FeYknun5JczX5nGLTfQuS1GRjNVfkEMKE92b", limit: 3);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientSignaturesTest.cs:106:                var res = sut.GetConfirmedSignaturesForAddress2("4Rf9mGD7FeYknun5JczX5nGLTfQuS1GRjNVfkEMKE92b", commitment: Types.Commitment.Processed);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientSignaturesTest.cs:163:            var result = sut.GetConfirmedSignaturesForAddress2(
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientSignaturesTest.cs:227:            var result = sut.GetConfirmedSignaturesForAddress2(
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientSignaturesTest.cs:291:            var result = sut.GetConfirmedSignaturesForAddress2(
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:765:            return await SendRequestAsync<List<SignatureStatusInfo>>("getConfirmedSignaturesForAddress2",
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:781:        /// <inheritdoc cref="IRpcClient.GetConfirmedSignaturesForAddress2"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:782:        public RequestResult<List<SignatureStatusInfo>> GetConfirmedSignaturesForAddress2(string accountPubKey,
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcBatchWithCallbacks.cs:151:        public void GetConfirmedSignaturesForAddress2(string accountPubKey, ulong limit = 1000,
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcBatchWithCallbacks.cs:167:            _composer.AddRequest("getConfirmedSignaturesForAddress2", parameters, callback);
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:841:        RequestResult<List<SignatureStatusInfo>> GetConfirmedSignaturesForAddress2(string accountPubKey, ulong limit = 1000,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:1002:            var result = sut.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientBlockTests.cs:1082:            var result = sut.GetRecentBlockHash(Commitment.Processed);
/Users/jonasmac2/Documents/GitHub/Solnet/docs/articles/hello_world.md:146:var recentHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/README.md:213:var blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/README.md:231:var blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/README.md:280:var blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/README.md:333:var recentHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/README.md:345:var recentHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TransactionDecodingExample.cs:29:            RequestResult<ResponseValue<BlockHash>> blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/StakeExample.cs:31:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/StakeExample.cs:71:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/StakeExample.cs:112:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/StakeExample.cs:149:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/StakeExample.cs:204:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/StakeExample.cs:257:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TransactionBuilderExample.cs:29:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TransactionBuilderExample.cs:60:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TransactionBuilderExample.cs:130:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TransactionBuilderExample.cs:179:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TransactionBuilderExample.cs:235:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TransactionBuilderExample.cs:296:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TransactionBuilderExample.cs:401:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TransactionBuilderExample.cs:455:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:29:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:94:            blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:157:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:230:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:362:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:430:            blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:482:            blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:529:            blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:566:            blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:630:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:706:            blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:752:            blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:789:            blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:848:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/MultisigExamples.cs:949:            RequestResult<ResponseValue<BlockHash>> blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/HelloWorldExample.cs:45:                    var recentHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/InstructionDecoderExample.cs:28:            var blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/AssociatedTokenAccountsExample.cs:35:            RequestResult<ResponseValue<BlockHash>> blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TokenSwapExample.cs:39:            RequestResult<ResponseValue<BlockHash>> blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TokenSwapExample.cs:115:            blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TokenSwapExample.cs:164:            blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TokenSwapExample.cs:209:            blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TokenSwapExample.cs:250:            blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TokenSwapExample.cs:271:            blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TokenSwapExample.cs:292:            blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TokenSwapExample.cs:314:            blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/TokenSwapExample.cs:333:            blockHash = RpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Examples/NameServiceProgramExamples.cs:55:            var blockHash = rpcClient.GetRecentBlockHash();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:571:            return await SendRequestAsync<ResponseValue<BlockHash>>("getRecentBlockhash",
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:598:        /// <inheritdoc cref="IRpcClient.GetRecentBlockHash"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:599:        public RequestResult<ResponseValue<BlockHash>> GetRecentBlockHash(Commitment commitment = Commitment.Finalized)
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:730:        RequestResult<ResponseValue<BlockHash>> GetRecentBlockHash(Commitment commitment = Commitment.Finalized);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientFeeTests.cs:63:            var result = sut.GetFees();
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientFeeTests.cs:117:            var result = sut.GetFees(Commitment.Confirmed);
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:546:            return await SendRequestAsync<ResponseValue<FeesInfo>>("getFees",
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:550:        /// <inheritdoc cref="IRpcClient.GetFees"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:551:        public RequestResult<ResponseValue<FeesInfo>> GetFees(Commitment commitment = Commitment.Finalized)
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:458:        RequestResult<ResponseValue<FeesInfo>> GetFees(Commitment commitment = Commitment.Finalized);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientFeeTests.cs:146:            var result = sut.GetFeeCalculatorForBlockhash("GJxqhuxcgfn5Tcj6y3f8X4FeCDd2RQ6SnEMo1AAxrPRZ");
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientFeeTests.cs:172:            var result = sut.GetFeeCalculatorForBlockhash("GJxqhuxcgfn5Tcj6y3f8X4FeCDd2RQ6SnEMo1AAxrPRZ", Commitment.Confirmed);
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:524:            return await SendRequestAsync<ResponseValue<FeeCalculatorInfo>>("getFeeCalculatorForBlockhash", parameters);
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:527:        /// <inheritdoc cref="IRpcClient.GetFeeCalculatorForBlockhash"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:528:        public RequestResult<ResponseValue<FeeCalculatorInfo>> GetFeeCalculatorForBlockhash(string blockhash,
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:429:        RequestResult<ResponseValue<FeeCalculatorInfo>> GetFeeCalculatorForBlockhash(string blockhash,
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientFeeTests.cs:33:            var result = sut.GetFeeRateGovernor();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:535:            return await SendRequestAsync<ResponseValue<FeeRateGovernorInfo>>("getFeeRateGovernor");
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:538:        /// <inheritdoc cref="IRpcClient.GetFeeRateGovernor"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:539:        public RequestResult<ResponseValue<FeeRateGovernorInfo>> GetFeeRateGovernor()
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:442:        RequestResult<ResponseValue<FeeRateGovernorInfo>> GetFeeRateGovernor();
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientTest.cs:622:            var result = sut.GetSnapshotSlot();
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:714:            return await SendRequestAsync<ulong>("getSnapshotSlot");
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:717:        /// <inheritdoc cref="IRpcClient.GetSnapshotSlot"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:718:        public RequestResult<ulong> GetSnapshotSlot() => GetSnapshotSlotAsync().Result;
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:925:        RequestResult<ulong> GetSnapshotSlot();
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientTest.cs:729:            var result = sut.GetStakeActivation("CYRJWqiSjLitBAcRxPvWpgX3s5TvmN2SuRY3eEYypFvT");
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientTest.cs:756:            var result = sut.GetStakeActivation("CYRJWqiSjLitBAcRxPvWpgX3s5TvmN2SuRY3eEYypFvT", 4);
/Users/jonasmac2/Documents/GitHub/Solnet/test/Solnet.Rpc.Test/SolanaRpcClientTest.cs:783:            var result = sut.GetStakeActivation("CYRJWqiSjLitBAcRxPvWpgX3s5TvmN2SuRY3eEYypFvT", 4, Commitment.Processed);
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:847:            return await SendRequestAsync<StakeActivationInfo>("getStakeActivation",
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:855:        /// <inheritdoc cref="IRpcClient.GetStakeActivation"/>
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/SolanaRpcClient.cs:856:        public RequestResult<StakeActivationInfo> GetStakeActivation(string publicKey, ulong epoch = 0,
/Users/jonasmac2/Documents/GitHub/Solnet/src/Solnet.Rpc/IRpcClient.cs:956:        RequestResult<StakeActivationInfo> GetStakeActivation(string publicKey, ulong epoch = 0,

@BifrostTitan
Copy link
Contributor

Thanks for the heads up! I will push an update later today to remove all the deprecated functions and have it mimic the rust/js lib

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants