Questions tagged [nethereum]
Questions related to the C# .NET Ethereum Web3 RPC Client Library, named nethereum
143 questions
1 vote
0 answers
34 views
What is the current proper way to verify that a signed transaction is legit?
I got this simple program of sending 0.1 matic to it's own address. The program is working. So many things is just "right" Dim nonce = Await HelperNethereum.Polygon.Web3.Eth....
1 vote
1 answer
28 views
How to get Debt Ratio of DeltaPrime Account?
I'm going to create a C# application to track my positions in De-Fi protocols. I'm going to use Nethereum library to deal with Smart Contracts. I'm new to the Blockchain world. However, I've already ...
1 vote
1 answer
48 views
I am unable to call a contracts read and write on the same block (as 2 consecutive calls)
I have a project where I am required to read and write to the same block ie. Call a view function to check if there is a match on the specific block If there is a match from the previous call, call a ...
4 votes
1 answer
203 views
How to sign Ethereum message in C#
I`m trying to convert this code to c# const message = response.data.message; const jsonProvider = new ethers.providers.JsonRpcProvider(RPC_URL) const ethersSigner = new ethers.Wallet(privatekey, ...
1 vote
0 answers
73 views
Create Call Data for function input using Nethereum
I want to call it a smart contract function. I am signing the transaction using Metamask so I need to create call data for the transaction. I want to use Nethereum for creating the call data of the ...
1 vote
0 answers
246 views
Send Tron transaction with Ethereum compatible address
Is it possible to make a transaction for the Tron network with the Nethereum library? As you know, Tron addresses can be converted to Ethereum format with the help of the following site https://...
0 votes
1 answer
185 views
Decode "pending transactions" from socket without calling RPC for every transaction?
Initial goal: catch transactions from address (when address calls "swap" events or "addliquidity" events, or does transfer on PancakeSwap router). I want to catch that kind of ...
1 vote
2 answers
778 views
Nethereum: any pancakeswap contract function call results in "execution_reverted", all transactions fail with same error
I'm completely new to web3, and I do realise that there is small portion of information on the web3 for developers, especially when it comes to debugging and issue solving. My main goal is just to ...
1 vote
1 answer
126 views
Async call to GetBlockWithTransactionsByNumber frequently returns 'NULL' block (Nethereum)
Calling GetBlockWithTransactionsByNumber asynchronoulsy from within a ProcessorForContract frequently returns NULLs. If I execute the following: HexBigInteger blockNumber = new HexBigInteger(sl.Log....
0 votes
2 answers
165 views
Interacting with deployed smartcontract with Nethereum(.NET) and Infura
I'm able to deploy my contract to sepolia. I have ABI, Bytecode of deployed contract. in .NET environment in register method I have: { var senderAddress = "...
2 votes
1 answer
634 views
How to sign a transaction using metamask or other wallets in nethereum
I searched a lot on the internet and in the documentation, but I still haven't found the answer to my question. I want to know how to sign a transaction through an external wallet using the nethereum ...
1 vote
1 answer
43 views
Is this method technically and logically correct?
I am implementing a practice project on the topic of token pre-sale. Currently, I have created the project in such a way that, for example, a user who is going to participate in the token pre-sale ...
0 votes
1 answer
199 views
Nethereum External Signer (C#) extending EthExternalSignerBase issue with SignExternallyAsync
I am currently having issues extending EthExternalSignerBase. I have an API that signs messages, similar to an Amazon KMS. One of the issues I am running into is deriving the ECDSASignature response, ...
1 vote
0 answers
57 views
Nethereum listen to an event after send transaction
Solidity code for creating a new contract calling createRainfallPolicy: event PolicyCreated(address _policy, string _insuredId); function createRainfallPolicy(/*Params*/) public { RainfallPolicy ...
0 votes
1 answer
832 views
Sending transaction to Uniswap/Pancakeswap Router using Nethereum failing
I'm trying to send a transaction to the Uniswap or Pancakeswap V3 router using Nethereum for a token swap via "exactInputSingle", but first I'm performing a gas estimate for the transaction. ...