Questions tagged [nethereum]
59 questions
0
votes
0 answers
Uniswap v2 permit calculation nethereum
I'm writing code in c# (nethereum) to pull liquidity out of pair using removeLiquidityETHWithPermitSupportingFeeOnTransferTokens function from UniswapV2Router02 contract
I encountered issue when calculating signature for permit, getting error…

Griffin1212
- 1
- 1
0
votes
0 answers
Nethereum - Event ABI to DTO
Is anyone aware of a way - to take a given ABI string for a single contract event and convert it to a Nethereum.DTO? I have looked through the github and docs but do not see anything.
Alternatively, a way to parse a contract event out - if you have…

Cody Popham
- 992
- 5
- 14
0
votes
1 answer
How to use async func inside Nethereum StreamingWebSocketClient subscription
After getting log inside subscribe method I want to call async function, but Subscribe function only takes Action, so using async-await keyword is not possible.
How can I use await keyword inside this subscription ?
code example:
public…

user19291301
- 127
- 8
0
votes
1 answer
.net Generate good private key for Ethereum account
We're using Nethereum (https://docs.nethereum.com/en/latest/) to develop a .net based DApp for the Ethereum network. Part of the functionality will involve allowing a user to create a new Ethereum account.
According to the Nethereum…

Thomas Kelly
- 1
- 2
0
votes
1 answer
How to get data from smart contract faster
I am currently using Nethereum, which is a C# wrapper to web3 where it makes about 1.2k requests within an hour on one thread.
I need to make about 30k requests within 1 hour.
How can I quickly retrieve data from smart contracts?
Is it possible to…

Broid
- 1
0
votes
1 answer
What went wrong when I tried to compile nethereum for .net 6?
I wanna code using nethereum. I download nuget and make this simple program
It works.
Private Async Function doSomething() As Task
Dim privatekey = System.IO.File.ReadAllText("privatekey.txt")
'Dim publickey =…

user4951
- 32,206
- 53
- 172
- 282
0
votes
2 answers
Why I cannot send ftm with this simple code
Private Async Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim privatekey = System.IO.File.ReadAllText("privatekey.txt")
'Dim publickey = "0x898568c58466957bedaE0e2A2457beb158a150de" ''
Dim destination =…

user4951
- 32,206
- 53
- 172
- 282
0
votes
1 answer
How to decode Eth raw log data in C#
I have a list of raw log data retrieved from Covalent (https://api.covalenthq.com/v1/137/events/topics/). I know what the event this log corresponds to, but how do I decode it into this event?
It looks like…

flutterisbae
- 305
- 3
- 10
0
votes
1 answer
Unity WebGL Metamask Connection - nethereumUnityInstance is not defined in javascript
I tried to connect Metamask wallet to Unity WebGL.
Here is the github sample project link that I refered.
https://github.com/Nethereum/Nethereum.Unity.Webgl
I installed the same version of Unity to let the sample project work properly.
Unity…

Eugene Aspire
- 1
- 1
0
votes
1 answer
I need sign message in C# via EIP-191
c# signing not equal node.js signing
node.js produces correct result
I have code in node.js
import { Wallet, utils } from 'ethers'
const privateKey = '0xcd180f4628bf1fceb5ab9e2e22df38d6d1dee52667926c997c58a318890aa4ee'
const wallet = new…

XOTAB
- 1
- 1
0
votes
1 answer
Matic/Polygon transactions stopped working without code change using Nethereum
Recently(Maybe correlated to EIP-1559 upgrade) matic transactions that would previously work have stopped working for me, even basic ones like transferring native currency. These transactions still work on other chains(tested on bsc).
Here's and…

Isaac Phillips
- 57
- 1
- 6
0
votes
3 answers
Trying to transfer ERC20 token using C# .NET Nethereum package
Can someone help me successfully send ERC20 tokens using the Nethereum package in C# .NET?
I am able to successfully get account balances, but when I try to send, it just sits there....
I am using the Infura.io project api also with the below…

user2634840
- 1
- 2
0
votes
1 answer
Nethereum EthECKey not working. Scripts are not compiled
If i add this line to my code then it refuses to compile!(This happens with All scripts in unity, even empty ones)
string publicKey = Nethereum.Signer.EthECKey.GetPublicAddress(privatekey);
Code:
using System.Collections;
using System;
using…
0
votes
2 answers
Nethereum Call Binance Smart Chain contract function like balanceOf or transfer via Blazor WebAssembly
I'm developing a web application with Blazor WebAssembly. I want to call some functions in my token's contract. I've installed Nethereum.Web nuget package to my project. But I don't want to call a contract from Ethereum Mainnet, it has to be Binance…

Ege Bozoglu
- 11
- 3
0
votes
1 answer
How to get array of object from smart contract using Nethereum
I have function in smart contract:
struct DrugBox {
uint256 weight; // weight is accumulated by delegation
uint256 creationDate;
address producer;
string drugName;
uint256 id;
}
function getAllBoxes()…

Karyna Dorosh
- 43
- 5