Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jun 07 11:41

    juanfranblanco on master

    Code generation support for res… (compare)

  • May 17 20:13

    juanfranblanco on master

    Updating json.net packages and … (compare)

  • May 06 09:35

    juanfranblanco on master

    Bug on generated types Not sup… (compare)

  • May 01 04:42

    juanfranblanco on master

    added shell script to build .Ne… Merge pull request #677 from ma… (compare)

  • Apr 28 17:33

    juanfranblanco on master

    Adding pantheon (compare)

  • Apr 28 16:01

    juanfranblanco on master

    Adding net472 and AOT to batch … (compare)

  • Apr 28 09:02

    juanfranblanco on master

    Small testing changes (compare)

  • Apr 26 10:16

    juanfranblanco on master

    Improve IpcClient new IpcClien… Revert "Improve IpcClient" Thi… Create SimpleIpcClient.cs Simp… and 1 more (compare)

  • Apr 26 08:37

    juanfranblanco on master

    #676 Mainnet not configured to … (compare)

  • Apr 21 19:29

    dependabot[bot] on nuget

    Bump System.Net.Http in /src/Ne… (compare)

  • Apr 21 19:28

    dependabot[bot] on nuget

    Bump System.Net.Http from 4.1.0… (compare)

  • Apr 21 19:26

    dependabot[bot] on nuget

    Bump System.Net.Http in /src/Ne… (compare)

  • Mar 05 18:14

    juanfranblanco on master

    Logos update Merge branch 'master' of https:… (compare)

  • Feb 24 12:18

    juanfranblanco on master

    Update bug_report.md (compare)

  • Feb 24 12:16

    juanfranblanco on master

    Update README.md (compare)

  • Nov 19 2020 14:34

    juanfranblanco on master

    Create2 contract address calcul… (compare)

  • Nov 15 2020 13:02

    juanfranblanco on master

    More .net 5 Hd wallet .net 5 Hd wallet testing .net 5.0 (compare)

  • Nov 12 2020 13:34

    juanfranblanco on master

    #655 adding cancellation token … (compare)

  • Nov 11 2020 22:07

    juanfranblanco on master

    Rsk custom field now uses hex .Net5 initial migration, Abi de… Hd blazor test start migration … (compare)

  • Nov 10 2020 09:27

    juanfranblanco on master

    Adding a seed to secure random … (compare)

blockmonk
@blockmonk
@juanfranblanco okay coming
Hüseyin Uslu
@bonesoul
is there a way to check if the contract is deployed within a given address?
Mobin Khorushi
@Mobin-khorushi
@juanfranblanco Hello sir! is there any guide to make a simple ETH miner with this Nethereum in C# ? didn't find anything in docs also the WebGeth with my account gives No Connection or machine refused
Juan Blanco
@juanfranblanco
@bonesoul use Eth.GetCode
@Mobin-khorushi you should be able to control the miner, you will need to enable mining in geth, open rpc etc
geth --rpc --rpccorsdomain "*" --mine --ws --rpcapi "eth,web3,personal,net,miner,admin,debug" --rpcaddr "0.0.0.0" --http.addr "0.0.0.0"
this opens everything
SuperCS92
@SuperCS92
Hello! I'm using ankr as ethereum provider to connect to bsc testnet this is how i'm instantiating my web3 in nethereum:
var url = "https://apis.ankr.com/09c7e023013344b3b011ab94c682786c/b397ab919a6787d2a31ead4eb73a55d8/binance/full/test";
var privateKey = "0x000000000220000000example";
var account = new Account(privateKey);
var web3 = new Web3(account, url);
but I'm getting this error : Nethereum.JsonRpc.Client.RpcClientUnknownException: Error occurred when trying to send rpc requests(s) ---> System.Net.Http.HttpRequestException: Response status code does not indicate success: 401 ().
at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode () <0x4570490 + 0x0004a> in <1c0d0f2fbfa64217a3be42e4805334a5>:0
at Nethereum.JsonRpc.Client.RpcClient.SendAsync (Nethereum.JsonRpc.Client.RpcMessages.RpcRequestMessage request, System.String route) <0xba35128 + 0x001a0> in <1ce9aa914e8f4e05b743c0dd63848233>:0
SuperCS92
@SuperCS92
has anybody be able use ankr to connect to bsc testnet from nethereum
blck
@bonhardt
hey, lets say a solidity contract have a function that takes bytes data
function name(bytes data) { (bytes32 decodedbyte1, bytes32 decodedbyte2, int192[] decodedint = abi.decode(data , (bytes32, bytes32, int192[]) }
i have the "data" available for me, but how do i do this abi.decode with Nethereum ?
youtpout
@youtpout

has anybody be able use ankr to connect to bsc testnet from nethereum

Hello, when I try ankr with ether.js no reply I change for getblock and it's work, I use this with nethereum and it's work too

working exemple
    async Task GetAccountBalance()
    {
       string url = "wss://bsc.getblock.io/mainnet/?api_key=xxxx";
        var web3 = new Web3(url);
        var balance = await web3.Eth.GetBalance.SendRequestAsync("publickeywalletbsc");
        Console.WriteLine($"Balance in Wei: {balance.Value}");

        var etherAmount = Web3.Convert.FromWei(balance.Value);
        Console.WriteLine($"Balance in Ether: {etherAmount}");
        this.bnb.Text = etherAmount + " bnb";
    }
youtpout
@youtpout
Hello I want to have transaction history like here ethers-io/ethers.js#326
My goal is to list all token for an accont like poocoin, can I do that with nethereum ?
William Entriken
@fulldecent
@juanfranblanco got it, thank you. Will catch up next on the Discord
Sammy Shi
@happysammy
hi how to solve the Nethereum websocket client close? I want to reconnect websocket, but I don't know how to do this.
netlock
@netlocks
hello
I have a question
How to send tokens in batches in Nethereum to reduce the gas price
Samguy036
@Samguy036
@juanfranblanco when i compile one of the contracts by solidity extension with soljson-v0.5.17+commit. I get an exception says: Error generating code:
Cannot read property 'toString' of null. do you probably know what's going on ?
Dương Trịnh
@kamapcrazy
Hi everyone,
I'm trying to decode the input data to list of ParameterOutput.
I'm able to decode most of the data type, except "tuple[]"
Could someone have example on how to decode those kind of data.
Here my extension for getting decoded parameter value:
public static object GetParameterValue( this ParameterOutput parameterOutput )
        {
            if ( parameterOutput.Parameter.Type == "tuple" )
            {
                var result = new List<ParameterDto>();
                foreach ( var tupleValue in parameterOutput.Result as List<ParameterOutput> )
                {
                    result.Add( new ParameterDto
                    {
                        Name = tupleValue.Parameter.Name,
                        Type = tupleValue.Parameter.Type,
                        Order = tupleValue.Parameter.Order,
                        Value = tupleValue.GetParameterValue()
                    } );
                }
                return result;
            }

            if ( parameterOutput.Parameter.Type == "tuple[]" )
            {

                var result = new List<ParameterDto>();
                return result;
            }

            var endcodedValue = parameterOutput.Parameter.ABIType.Encode( parameterOutput.Result );
            var decodedValue = parameterOutput.Parameter.ABIType.Decode( endcodedValue, parameterOutput.Parameter.DecodedType );
            return decodedValue;
        }
mpaulbrown21
@mpaulbrown21

Hi all!

Question about generating C# code from a solidity contract. I'm using the Nethereum.Autogen.ContractApi package. My solidity contract has a uint24 public variable. When I attempt to generate the C# code by rebuilding my .csproj, TestOutputDtoBase class does not have a type representing my variable.

This gets generated.

   [FunctionOutput]
    public class TestOutputDTOBase : IFunctionOutputDTO 
    {
        [Parameter("uint24", "", 1)]
        public virtual  ReturnValue1 { get; set; } // ReturnValue1 has no type...
    }

I assume this is because C# does not have a uint24 datatype. I'm hoping to provide my own custom datatype.

Is this a bug, or is this a known feature? I assume known feature. I haven't been able to find documentation on this, or any related issues in github.
Also awesome work on this @juanfranblanco! Thanks for all the work you have done on Nethereum!

Marcelo Ceccon
@marceloceccon
Night. Has anyone had any luck with using X-Auth-Token: with Nethereum? blockdaemon.com uses X-Auth-Token for both the web sockets and RPC.
mpaulbrown21
@mpaulbrown21
To my question earlier, realized there is a whole section on untyped contracts.
Juan Blanco
@juanfranblanco

SUPPORT IS IN DISCORD NOW
https://discord.gg/u3Ej2BReNn
I don't monitor this very often.. so please go there if you need anything

@mpaulbrown21 this is just an issue with the code generator, it will be fixed in the next release
as that might be why you are having that issue
Dương Trịnh
@kamapcrazy
Thanks for information @juanfranblanco
tungtdtd
@tungtdtd
Hello i am newbie. Can you give me example to call func of smart contract
I want to call swap func of a smart contract
tungtdtd
@tungtdtd
the smart contract is not deployed by me
0xf110fec3075d7531141b6bf16b11604cb028a17b
@juanfranblanco
Dương Trịnh
@kamapcrazy
Hello i am newbie. Can you give me example to call func of smart contract
@tungtdtd check this playground for an example contract call.
http://playground.nethereum.com/csharp/id/1012
tungtdtd
@tungtdtd

Hello i am newbie. Can you give me example to call func of smart contract
@tungtdtd check this playground for an example contract call.
http://playground.nethereum.com/csharp/id/1012

a check ib e với dc ko ạ

kostyamospan
@kostyamospan
image.png
Hi guys, im trying to deploy contract with c# using autogenerated nethereum services. And im facing into this error. Maybe someone know, why is this happening. Thanks
tangxinchen
@tangxinchen:matrix.org
[m]
大佬们 有人在吗
咱有没有授权转账的demo呀
我这调用报错
USDT智能合约
tangxinchen
@tangxinchen:matrix.org
[m]
help
tangxinchen
@tangxinchen:matrix.org
[m]
Ladies and gentlemen, is there a demo of TransferFrom this method? I call this method and it returns an error. I'm just a beginner, could you please help me?
Call the Ethereum USDT contract
Steve Ruben
@csharpyoudull
I created a local private node and am trying to send ether from one account to another, in the JS console this works without issue but when using C# / nethereum I get the following error: Nethereum.JsonRpc.Client.RpcResponseException: insufficient funds for gas * price + value
I have verified the account sending from contains 2k+ ether as the coinbase
image.png