Questions tagged [nethereum]

59 questions
1
vote
1 answer

Nethereum works well in unity editor, but not in android device

I'm using nethereum & unity with infura. (I'm developing an DApp.) I wrote some code for minting new NFT, and tested, and it worked very well. However, after build, it doesn't work in android device. So I checked an error using android logcat, but…
설소설
  • 69
  • 7
1
vote
1 answer

It takes too long to send transaction to the smart contract which is already deployed. (Nethereum + Unity)

I'm making some dApp using Unity & Nethereum. I deployed one contract to the Ropsten Test Net using Remix. And I had abi & bytecode of that, so I made Definition & Service C# code using solodity package of VS Code. I wanted to mint new NFT, and…
설소설
  • 69
  • 7
1
vote
1 answer

Can't recreate off chain signed message on Solidity

Im using Nethereum on my server to sign a message as follows: string amount = "10"; string nonce = "1"; string msg1 = "asdasd"; var privateKey = "0x00000privateKey"; var signer1 = new EthereumMessageSigner(); var abiEnconde = new ABIEncode(); var…
1
vote
1 answer

Calculate Transaction Gas Fee

I am trying to find out the fee for a normal transaction on the Ethereum network !! //Get Network Gas Price For singl unit var GasPrice= await web3.Eth.GasPrice.SendRequestAsync(); //Assuming the number of major units is 21000 var TransactionLimit…
1
vote
1 answer

How to call write function of smart contract using C# Nethereum?

Everyone. I deployed this smart contract on Avalanche Testnet. contract Storage { uint256 number; /** * @dev Store value in variable * @param num value to store */ function store(uint256 num) public { number = num; } /** * @dev Return…
LiYiChong
  • 11
  • 2
1
vote
0 answers

Contract function with transaction

I have a question about programming VB.NET & Nethereum. The contract address works flawlessly. For testing purposes I have built in a maintrace - pause function that can be set via function. In the Remix tool + Metamask, the pause and resume…
mr.pepe
  • 11
  • 2
1
vote
1 answer

How do I get the balance of a specific token on the BSC using Nethereum and Quicknodes?

I have already purchased a node on quicknodes and have the API. I was able to retrieve my BNB balance by using this code, however, I would like to retrieve the balance of a specific token in my wallet other than BNB. Could someone point me in the…
Tye Beach
  • 21
  • 3
1
vote
1 answer

How to use local binance smart chain lightclient to access the blockchain with web3.js

I have downloaded and launched the lightclient node. ./lightd --chain-id "Binance-Chain-Tigris" --node tcp://dataseed1.binance.org:80 I[2021-03-25|03:19:19.040] Connecting to source HTTP client... I[2021-03-25|03:19:19.041] Constructing…
kivi_o
  • 103
  • 1
  • 9
0
votes
1 answer

Using Nethereum to estimate gas for exactInputSingle function call on UniSwap V3 Router contract

I'm trying to interact with the UniSwap V3 Router contract via Nethereum but have hit a road block. New to attempting to send transactions and would like some guidance on what I'm doing wrong. Also a little unsure if I need to convert certain…
Calculon
  • 61
  • 6
0
votes
0 answers

Chainsafe Gaming web3.unity Calling a function Without metamask interaction

I am making a WebGL game in unity in which two player can play match with each other. At the end of the game winner be decided by game. My game will call declareWinner function of my contract that you can see below. The issue is that it will always…
0
votes
0 answers

error occurred when trying to send rpc requests(s): eth_getbalance

I am trying to build a .net MAUI app with Nethereum to get a balance . but it does not work and it gives me the following error : error occurred when trying to send rpc requests(s): eth_getbalance the inner exception error : hostname nor servname…
user2596181
  • 103
  • 2
  • 8
0
votes
0 answers

Nethereum sending ether fail

Introduction I'm developing a .NET 6 environment that has an API for transferring ether from one wallet to another wallet. It uses the Nethereum library for that. Issue I'm getting the Transaction Hash of the ether transfer. But when I'm trying to…
0
votes
1 answer

RpcResponseException: Method eth_feeHistory not supported.: eth_feeHistory while using Ganache RPC

I am trying to build a Web3 Distributed Application using .Net Core. For Testing and development, I am using Ganache's private net. When I try to make a function call to a deployed smart contract from Netherium Web3 object like this: var…
0
votes
0 answers

SendTransactionAsync only works with public key

I am trying to call a function from my contract using Netherums "SendTransactionAsync", however, it only works when the source is a public key rather than a private key. I am using Ganache private network to test my contract. Error: One or more…
Aws rayyan
  • 21
  • 4
0
votes
1 answer

Smart contract error: Ownable: caller is not the owner

When calling a method with the owner account, I get the above error... "Smart contract error: Ownable: caller is not the owner" Next, I will write my own codes: Write Contract Method: function setWalletLimit(address wallet, uint256 amount,uint day)…
user20388123