{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/avalanche/main/json-schema/Transaction.json",
"title": "Transaction",
"type": "object",
"properties": {
"blockHash": {
"type": "string",
"description": "Block hash of the transaction",
"examples": [
"0x2a47bebed93db4a21cc8339980f004cc67f17d0dff4a368001e450e7be2edaa0"
]
},
"blockNumber": {
"type": "string",
"description": "Block number of the transaction",
"examples": [
"45396106"
]
},
"from": {
"type": "string",
"description": "Sender address",
"examples": [
"0x737F6b0b8A04e8462d0fC7076451298F0dA9a972"
]
},
"gas": {
"type": "string",
"description": "Gas limit for the transaction",
"examples": [
"80000"
]
},
"gasPrice": {
"type": "string",
"description": "Gas price used",
"examples": [
"52000000000"
]
},
"maxFeePerGas": {
"type": "string",
"description": "Maximum fee per gas",
"examples": [
"52000000000"
]
},
"maxPriorityFeePerGas": {
"type": "string",
"description": "Maximum priority fee per gas",
"examples": [
"2000000000"
]
},
"txHash": {
"type": "string",
"description": "Transaction hash",
"examples": [
"0xfd91150d236ec5c3b1ee325781affad5b0b4d7eb0187c84c220ab115eaa563e8"
]
},
"txStatus": {
"type": "string",
"description": "Transaction status",
"examples": [
"1"
]
},
"input": {
"type": "string",
"description": "Input data",
"examples": [
"0xa9059cbb00000000000000000000000040e832c3df9562dfae5a86a4849f27f687a9b46b00000000000000000000000000000000000000000000000000000000c68b2a69"
]
},
"nonce": {
"type": "string",
"description": "Nonce value",
"examples": [
"0"
]
},
"to": {
"type": "string",
"description": "Recipient address",
"examples": [
"0x9702230a8ea53601f5cd2dc00fdbc13d4df4a8c7"
]
},
"transactionIndex": {
"type": "number",
"description": "Transaction index",
"examples": [
1
]
},
"value": {
"type": "string",
"description": "Value transferred in the transaction",
"examples": [
"0"
]
},
"type": {
"type": "number",
"description": "Transaction type",
"examples": [
2
]
},
"chainId": {
"type": "string",
"description": "Chain ID of the network",
"examples": [
"43114"
]
},
"receiptCumulativeGasUsed": {
"type": "string",
"description": "Cumulative gas used",
"examples": [
"668508"
]
},
"receiptGasUsed": {
"type": "string",
"description": "Gas used",
"examples": [
"44038"
]
},
"receiptEffectiveGasPrice": {
"type": "string",
"description": "Effective gas price",
"examples": [
"27000000000"
]
},
"receiptRoot": {
"type": "string",
"description": "Receipt root",
"examples": [
"0xe5b018c29a77c8a92c4ea2f2d7e58820283041a52e14a0620d90d13b881e1ee3"
]
},
"blockTimestamp": {
"type": "number",
"description": "Block timestamp",
"examples": [
1715621840
]
},
"contractAddress": {
"type": "string",
"description": "Contract address (optional)",
"examples": [
"0x0000000000000000000000000000000000000000"
]
},
"erc20Transfers": {
"description": "ERC20 transfers",
"type": "array",
"items": {
"$ref": "#/components/schemas/ERCTransfer"
}
},
"erc721Transfers": {
"description": "ERC721 transfers",
"type": "array",
"items": {
"$ref": "#/components/schemas/ERCTransfer"
}
},
"erc1155Transfers": {
"description": "ERC1155 transfers",
"type": "array",
"items": {
"$ref": "#/components/schemas/ERCTransfer"
}
},
"internalTransactions": {
"description": "Internal transactions (optional)",
"type": "array",
"items": {
"$ref": "#/components/schemas/WebhookInternalTransaction"
}
},
"accessList": {
"description": "Access list (optional)",
"type": "array",
"items": {
"$ref": "#/components/schemas/AccessListData"
}
},
"networkToken": {
"description": "Network token info (optional)",
"allOf": [
{
"$ref": "#/components/schemas/NetworkTokenInfo"
}
]
}
},
"required": [
"blockHash",
"blockNumber",
"from",
"gas",
"gasPrice",
"maxFeePerGas",
"maxPriorityFeePerGas",
"txHash",
"txStatus",
"input",
"nonce",
"to",
"transactionIndex",
"value",
"type",
"chainId",
"receiptCumulativeGasUsed",
"receiptGasUsed",
"receiptEffectiveGasPrice",
"receiptRoot",
"blockTimestamp",
"erc20Transfers",
"erc721Transfers",
"erc1155Transfers"
]
}