{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "OriginationOperation", "allOf": [ { "type": "object", "additionalProperties": false, "properties": { "type": { "type": "string", "description": "Type of the operation, `origination` - deployment / contract creation operation." }, "id": { "type": "integer", "description": "Unique ID of the operation, stored in the TzKT indexer database", "format": "int64" }, "level": { "type": "integer", "description": "The height of the block from the genesis block, in which the operation was included", "format": "int32" }, "timestamp": { "type": "string", "description": "Datetime of the block, in which the operation was included (ISO 8601, e.g. `2020-02-20T02:40:57Z`)", "format": "date-time" }, "block": { "type": "string", "description": "Hash of the block, in which the operation was included" }, "hash": { "type": "string", "description": "Hash of the operation" }, "counter": { "type": "integer", "description": "An account nonce which is used to prevent operation replay", "format": "int32" }, "initiator": { "description": "Information about the initiator of the contract call", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Alias" } ] }, "sender": { "description": "Information about the account, created a contract", "oneOf": [ { "$ref": "#/components/schemas/Alias" } ] }, "senderCodeHash": { "type": "integer", "description": "Hash of the sender contract code, or `null` is the sender is not a contract", "format": "int32", "nullable": true }, "nonce": { "type": "integer", "description": "An account nonce which is used to prevent internal operation replay", "format": "int32", "nullable": true }, "gasLimit": { "type": "integer", "description": "A cap on the amount of gas a given operation can consume", "format": "int32" }, "gasUsed": { "type": "integer", "description": "Amount of gas, consumed by the operation", "format": "int32" }, "storageLimit": { "type": "integer", "description": "A cap on the amount of storage a given operation can consume", "format": "int32" }, "storageUsed": { "type": "integer", "description": "Amount of storage, consumed by the operation", "format": "int32" }, "bakerFee": { "type": "integer", "description": "Fee to the baker, produced block, in which the operation was included (micro tez)", "format": "int64" }, "storageFee": { "type": "integer", "description": "The amount of funds burned from the sender account for contract storage in the blockchain (micro tez)", "format": "int64" }, "allocationFee": { "type": "integer", "description": "The amount of funds burned from the sender account for contract account creation (micro tez)", "format": "int64" }, "contractBalance": { "type": "integer", "description": "The contract origination balance (micro tez)", "format": "int64" }, "contractDelegate": { "description": "Information about the baker (delegate), which was marked as a delegate in the operation", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/Alias" } ] }, "code": { "description": "Contract code. Note: you can configure code format by setting `micheline` query parameter (`0 | 2` - raw micheline, `1 | 3` - raw micheline string).", "nullable": true }, "storage": { "description": "Initial contract storage value converted to human-readable JSON. Note: you can configure storage format by setting `micheline` query parameter.", "nullable": true }, "diffs": { "type": "array", "description": "List of bigmap updates (aka big_map_diffs) caused by the origination.", "nullable": true, "items": { "$ref": "#/components/schemas/BigMapDiff" } }, "status": { "type": "string", "description": "Operation status (`applied` - an operation applied by the node and successfully added to the blockchain,\n`failed` - an operation which failed with some particular error (not enough balance, gas limit, etc),\n`backtracked` - an operation which was a successful but reverted due to one of the following operations in the same operation group was failed,\n`skipped` - all operations after the failed one in an operation group)" }, "errors": { "type": "array", "description": "List of errors provided by the node, injected the operation to the blockchain. `null` if there is no errors", "nullable": true, "items": { "$ref": "#/components/schemas/OperationError" } }, "originatedContract": { "description": "Information about the originated ( deployed / created ) contract", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/OriginatedContract" } ] }, "tokenTransfersCount": { "type": "integer", "description": "Number of token transfers produced by the operation, or `null` if there are no transfers", "format": "int32", "nullable": true }, "quote": { "description": "Injected historical quote at the time of operation", "nullable": true, "oneOf": [ { "$ref": "#/components/schemas/QuoteShort" } ] } } } ] }