Class Calls
public class Calls
- Inheritance
-
Calls
- Inherited Members
Properties
AdditionalProperties
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
Property Value
ContractAddress
The smart contract address or ENS name.
[JsonProperty("contractAddress", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string ContractAddress { get; set; }
Property Value
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
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
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; }