Table of Contents

Class data

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

Properties

AdditionalProperties

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

Property Value

IDictionary<string, object>

BlockHash

The hash of the block containing this transaction.

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

Property Value

string

BlockNumber

The block number containing this transaction.

[JsonProperty("blockNumber", Required = Required.Always)]
public double BlockNumber { get; set; }

Property Value

double

BlockTimestamp

The timestamp of the block (Unix timestamp).

[JsonProperty("blockTimestamp", Required = Required.Always)]
public double BlockTimestamp { get; set; }

Property Value

double

ChainId

The chain ID where the transaction occurred.

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

Property Value

string

ContractAddress

Contract address created if this was a contract creation transaction.

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

Property Value

string

CumulativeGasUsed

Total gas used by all transactions in this block up to and including this one.

[JsonProperty("cumulativeGasUsed", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public double CumulativeGasUsed { get; set; }

Property Value

double

Data

The transaction input data.

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

Property Value

string

Decoded

Decoded transaction data (included when ABI is available).

[JsonProperty("decoded", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public Decoded2 Decoded { get; set; }

Property Value

Decoded2

EffectiveGasPrice

The effective gas price paid (in wei as string).

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

Property Value

string

FromAddress

The address that initiated the transaction.

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

Property Value

string

FunctionSelector

The function selector (first 4 bytes of the transaction data).

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

Property Value

string

Gas

The gas limit for the transaction.

[JsonProperty("gas", Required = Required.Always)]
public double Gas { get; set; }

Property Value

double

GasPrice

The gas price used for the transaction (in wei as string).

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

Property Value

string

GasUsed

The amount of gas used by the transaction.

[JsonProperty("gasUsed", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public double GasUsed { get; set; }

Property Value

double

Hash

The transaction hash.

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

Property Value

string

MaxFeePerGas

Maximum fee per gas (EIP-1559).

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

Property Value

string

MaxPriorityFeePerGas

Maximum priority fee per gas (EIP-1559).

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

Property Value

string

Nonce

The transaction nonce.

[JsonProperty("nonce", Required = Required.Always)]
public double Nonce { get; set; }

Property Value

double

Status

The transaction status (1 for success, 0 for failure).

[JsonProperty("status", Required = Required.Always)]
public double Status { get; set; }

Property Value

double

ToAddress

The address that received the transaction.

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

Property Value

string

TransactionIndex

The index of the transaction within the block.

[JsonProperty("transactionIndex", Required = Required.Always)]
public double TransactionIndex { get; set; }

Property Value

double

TransactionType

The transaction type (0=legacy, 1=EIP-2930, 2=EIP-1559).

[JsonProperty("transactionType", Required = Required.DisallowNull, NullValueHandling = NullValueHandling.Ignore)]
public double TransactionType { get; set; }

Property Value

double

Value

The value transferred in the transaction (in wei as string).

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

Property Value

string