Class Body8
Contract deployment specification for raw bytecode deployment.
public class Body8
- Inheritance
-
Body8
- Inherited Members
Properties
Abi
The contract ABI array.
[JsonProperty("abi", Required = Required.Always)]
[Required]
public ICollection<object> Abi { get; set; }
Property Value
AdditionalProperties
[JsonExtensionData]
public IDictionary<string, object> AdditionalProperties { get; set; }
Property Value
Bytecode
The contract bytecode as a hex string.
[JsonProperty("bytecode", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string Bytecode { get; set; }
Property Value
ChainId
The blockchain network identifier. Common values include: 1 (Ethereum), 8453 (Base), 137 (Polygon), 56 (BSC), 43114 (Avalanche), 42161 (Arbitrum), 10 (Optimism).
[JsonProperty("chainId", Required = Required.Always)]
[Range(1, 2147483647)]
public int ChainId { get; set; }
Property Value
ConstructorParams
Object containing constructor parameters for the contract deployment (e.g., { param1: 'value1', param2: 123 }).
[JsonProperty("constructorParams", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public IDictionary<string, object> ConstructorParams { get; set; }
Property Value
From
The wallet address or ENS name that will deploy the contract.
[JsonProperty("from", Required = Required.Always)]
[Required(AllowEmptyStrings = true)]
public string From { get; set; }
Property Value
Salt
Optional salt value for deterministic contract deployment.
[JsonProperty("salt", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public string Salt { get; set; }