Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [c#]

The tag has no usage guidance.

1
vote
0answers
23 views

Programmatically send ERC20 tokens to user wallet. How does transfer work?

I have been researching how to securely send and transfer ERC20 tokens from the contract address to a new user wallet. Tokens will be earned through participation on my platform. Based on results I ...
1
vote
1answer
19 views

Create account on Ethereum using Nethereum C#

I have studied the documents for creating a new account using Nethereum.. var ecKey = Nethereum.Signer.EthECKey.GenerateKey(); var privateKey = ecKey.GetPrivateKeyAsBytes().ToHex(); var account = new ...
1
vote
0answers
21 views

How to Connect IPFS client in xamarin forms.?

i need to start ipfs client in My xamarin forms app.Now with the emulator it is working but when it comes to device i don't know how to connect.?I want to connection for both platform(ios and android)....
0
votes
1answer
8 views

unable to connect to TestChain by Code

I am new at Ethereum and intended to connect to a test chain by c#. my code runs greatly on my old laptop win7, but on newer one Win10 it just waits forever. this is my code. has anyone any idea? ...
0
votes
1answer
16 views

What is the max ethereum allowed in a private network for the whole network?

When I build a private chain setup, what is the maximum Geth ethereum I can have for the life of the network. Another way of asking the question would be: What is the maximum ethereum one account can ...
1
vote
0answers
56 views

passing byte[] to smart contract using nethereum

I made a solidity function that allow a user to send multiple transactions with the same nonce as a singleton Tx signer: function multipleTransferPreSigned ( bytes[] _signature, address[] ...
0
votes
1answer
30 views

Command “geth --rpcapi eth,web3,personal --rpc” throws Fatal Error

After deploying an private Ethereum blockchain with Azure Template "Proof of Work" we are not able to run the following command successfully. "geth --rpcapi eth,web3,personal --rpc" following image ...
1
vote
1answer
146 views

(C#) Sending custom ERC20 tokens

I have the following code var transactionMessage = new TransferFunction { FromAddress = accountFrom, To = accountTo, AmountToSend = tokens, Gas ...
1
vote
0answers
29 views

How would I connect subscribe to the websocket to get transactions of a certain address with Nethereum(C#)?

I can only find tutorials on how to do it with Web3.JS. With Infura btw (wss://mainnet.infura.io:443/ws)
1
vote
0answers
256 views

Nethereum C# automated ether transfer

I wish to automate the transfer of ether to a list of people. Assume the list is in a csv. I wrote some code to automate the process. class Program { int nonce = 0; static void Main(string[] ...
0
votes
1answer
339 views

Nethereum // Infura/RPCclients

I am having a heck of a time getting transactions to post on mainnet. The issue is not my wallet balance or gas related. A balance lookup on the same contract works correctly.. However, i cannot get ...
0
votes
1answer
44 views

Is it good approach to interact with smart contract using c# library instead of Web3-js?

I'm learning Ethereum, and having web application development experience mostly with Microsoft Technologies such as ASP.NET MVC and WebAPI. I've learned Solidity recently!. After reading about ...
0
votes
0answers
26 views

How do I convert my web application payment system to Ethereum

I am new to Ethereum, and I have many question at the point, I am a C# person and work on ASP.Net I have a web application that is currently hosted on a shared Cloud hosting plan, the application uses ...
0
votes
0answers
195 views

create ethereum wallet using c#

I already learn how to create encrypted private key using Nethereum and I find how to create account. var ecKey = Nethereum.Signer.EthECKey.GenerateKey(); var privateKey = ecKey.GetPrivateKeyAsBytes()...
0
votes
1answer
230 views

Nethereum contract function call throwing exception on return: hex string has length 64, want 40 for common.Address

Both a call returning and address and a call returning an int256 fail with the same error: Nethereum.JsonRpc.Client.RpcResponseException HResult=0x80131500 Message=invalid argument 0: hex string ...
0
votes
1answer
152 views

Visual Studio using C# cannot find web3.Miner.Start.SendRequestAsync

The active using statements of the code are: using System; using System.Threading; using System.Threading.Tasks; using System.IO; using Nethereum.Web3; using Nethereum.Web3.Accounts; using Nethereum....
0
votes
0answers
61 views

A call to Function.CallAsync<int>(); crashes without any message or log

I am calling a function of a contract using C# and Nethereum via Function.CallAsync(); The function defined in solidity returns a uint256 and works as expected in Remix. This crashes the process. ...
0
votes
1answer
179 views

What is the Nethereum analog of “web3.version.network”?

I am just getting started with Nethereum and I want to ensure I am connected to the correct network.
0
votes
1answer
375 views

Create hash in c# and validate in solidity

I'm trying to build an app that will call a contract from javascript. I want the contract to validate that the parameters weren't tampered with. In order to do that, my plan was to figure out the ...
1
vote
1answer
321 views

C# - Convert Ethereum ABI Address To String (Solidity)

I'm new to Ethereum so please excuse my ignorance. Ethereum seems to have an ABI serialization protocol called Solidity. The spec is here: https://github.com/ethereum/wiki/wiki/Ethereum-Contract-ABI ...
4
votes
1answer
686 views

how to call smart contract function in C#.net core

protected async void Page_Load(object sender, EventArgs e) { var senderAddress = "0x605a1f8d368cbdd4d0a5cbad74f75c428660f17b"; var password = "zxcasdqwe123"; ...
1
vote
1answer
461 views

How to check if a transaction has completed correctly or has been rejected by some assert check [duplicate]

We have developed a simple Smart Contract which offers this following public transaction method: function bid(uint256 _userCode, uint256 _amount) public { assert(_userCode> 0); ...
0
votes
1answer
87 views

Ethereum keystrore file is not created

Keystore file is not created when I am creating a new Ethereum wallet account using nethereum and UWP. Also the newly created account is not in the private net. The new account is created using the ...
1
vote
4answers
2k views

How do you start learning about blockchain programming? [closed]

I am new to this technology. I have worked with C#,Javascript and JQuery to build web applications. I have been reading about how to start building DApps and there is so much data about Ethereum, ...
2
votes
2answers
219 views

Nethereum “WebException: The underlying connection was closed: The connection was closed unexpectedly.”

I'm trying to call a contract function from asp.net backend, using a public node. var abi = @"[{""constant"":false,""inputs"": [{""name"":""addr"",""type"":""address""}, {""...
1
vote
2answers
437 views

ethereum offline signer c#

is there any C# version of the offline signer for transaction. like ethereumjs-tx var Tx = require('ethereumjs-tx') var privateKey = new Buffer('...
1
vote
1answer
492 views

Miner.Start not working, unable to mine contract using Nethereum testChain (Geth v1.6.6)

Been testing Nethereum and attempting to get a basic test class running as per the Nethereum documentation, but having trouble when running the mining command. I am using Geth v1.6.6 Running the ...
2
votes
1answer
786 views

Gemini API Read Response / Content?

So I'm trying to test an authenticated response from Gemini. I get a "response", but not what I expect... it comes back as an html string, not "an array of balances" like the API suggests I should get....
12
votes
2answers
2k views

How can I sign a transaction using c#?

I want to create a signed transaction using C#, which will later be used by Nethereum via JSON-RPC to call eth_sendRawTransaction. I have the raw transaction and the private key, now how do I sign ...
3
votes
1answer
689 views

Nethereum and UWP on .Net c#

Is there a way to make Nethereum work with an UWP app ? Because when I try to download the package with nuget It raise an error. I enter the following command in Nuget Package Manager: Install-...
15
votes
5answers
15k views

Is there a C# implementation available for Ethereum?

Is there a C# / .NET / Mono implementation available for Ethereum to interact with nodes and/or the blockchain?