Table of Contents

Class calls

Namespace
Thirdweb.Api
Assembly
Thirdweb.dll
public class calls
Inheritance
calls
Inherited Members

Properties

AdditionalProperties

[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }

Property Value

IDictionary<string, object>

ContractAddress

The smart contract address or ENS name.

[JsonProperty("contractAddress", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string ContractAddress { get; set; }

Property Value

string

Method

The contract function signature to call (e.g., 'function approve(address spender, uint256 amount)' or function balanceOf(address)). Must start with 'function' followed by the function name and parameters as defined in the contract ABI.

[JsonProperty("method", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
[RegularExpression("^function\\s+\\w+")]
public string Method { get; set; }

Property Value

string

Params

Array of parameters to pass to the contract method, in the correct order and format.

[JsonProperty("params", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public ICollection<object> Params { get; set; }

Property Value

ICollection<object>

Value

Amount of native token to send with the transaction in wei. Required for payable methods.

[JsonProperty("value", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string Value { get; set; }

Property Value

string