I would like to call a contract function using Nethereum C#.
Here is the contract in Etherscan (https://etherscan.io/token/0x8c9b261faef3b3c2e64ab5e58e04615f8c788099#readContract)
I want to call the function 24 "getCollectibleDetails".
Here is the code that I did so far, but it isn't working.
var web3 = new Web3("https://mainnet.infura.io");
var contract = web3.Eth.GetContract(abi, contractAddress);
var function = contract.GetFunction("getCollectibleDetails");
var parameters = new object[]
{
new
{
Data = 157517,
To = "0x8c9b261faef3b3c2e64ab5e58e04615f8c788099"
}
};
var result = function.GetData(parameters);
Anyone has faced this?
Thanks in advance for any help.