Table of Contents

Class Body8

Namespace
Thirdweb.Api
Assembly
Thirdweb.dll

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

ICollection<object>

AdditionalProperties

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

Property Value

IDictionary<string, object>

Bytecode

The contract bytecode as a hex string.

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

Property Value

string

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

int

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

IDictionary<string, object>

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

string

Salt

Optional salt value for deterministic contract deployment.

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

Property Value

string