Skip to main content
Schema: stellar.core Table: fact_operations Type: Base Table This table contains the lowest granularity of data avaiable to the network. It contains all details regarding operations that were executed as part of a transaction set. Be careful - the table contains both failed and successful operations. The details record will return varying information about an operation according to the operation type. Learn more about Stellar operations: https://developers.stellar.org/docs/learn/fundamentals/transactions/operations-and-transactions

Columns

Column NameData TypeDescription
IDNUMBERUnique identifier for the operation.
CLOSED_ATTIMESTAMP_NTZTimestamp when the ledger was closed and committed to the network. Ledgers are expected to close ~every 5 seconds.
BLOCK_TIMESTAMPTIMESTAMP_NTZA clone of closed_at for join convenience.
ACCOUNTTEXTThe account involved in the operation.
AMOUNTFLOATFloat representation of the amount of an asset sent/offered/etc.
ASSETTEXT
ASSET_CODETEXTThe 4 or 12 character code representation of the asset on the network.
ASSET_ISSUERTEXTThe account address of the original asset issuer that created the asset.
ASSET_TYPETEXTThe identifier for type of asset code, can be an alphanumeric with 4 characters, 12 characters or the native asset to the network, XLM.
ASSET_IDTEXTThe Farm Hash encoding of Asset Code + Asset Issuer + Asset Type. This field is optimized for cross table joins since integer joins are less expensive than the original asset id components.
AUTHORIZEBOOLEANIndicates whether the trustline is authorized.
BALANCE_IDTEXTThe balance id of the claimable balance.
BUYING_ASSET_CODETEXTThe 4 or 12 character code representation of the asset being bought.
BUYING_ASSET_ISSUERTEXTThe account address of the original asset issuer for the buying asset.
BUYING_ASSET_TYPETEXTThe identifier for type of buying asset code.
BUYING_ASSET_IDTEXTThe identifier of the asset being bought.
FROM_ACCOUNTTEXTThe account address from which the payment/contract originates.
FUNDERTEXTThe account address that funds a new account.
HIGH_THRESHOLDNUMBERThe sum of the weight of all signatures that sign a transaction for the high threshold operation. The weight must exceed the set threshold for the operation to succeed.
HOME_DOMAINTEXTThe domain that hosts this account’s stellar.toml file.
INFLATION_DESTTEXTDeprecated: The account address to receive an inflation payment when they are disbursed on the network.
INTO_ACCOUNTTEXTThe account address receiving the deleted account’s lumens.
LIMIT_AMOUNTFLOATThe upper bound amount of an asset that an account can hold.
LOW_THRESHOLDNUMBERThe sum of the weight of all signatures that sign a transaction for the low threshold operation. The weight must exceed the set threshold for the operation to succeed.
MASTER_KEY_WEIGHTNUMBERThe weight of the master key, which is the private key for this account. If a master key is ‘0’, the account is locked and cannot be used.
MED_THRESHOLDNUMBERThe sum of the weight of all signatures that sign a transaction for the medium threshold operation. The weight must exceed the set threshold for the operation to succeed.
NAMETEXTThe key for a data entry in manage data operations.
OFFER_IDNUMBERThe unique id for the offer.
PATHVARIANTPath for path payment operations.
PRICEARRAYThe ratio of selling asset to buying asset.
PRICE_RVARIANTPrecise representation of the buy and sell price of the assets on an offer. The n is the numerator, the d is the denominator. By calculating the ratio of n/d you can calculate the price of the bid or ask.
SELLING_ASSET_CODETEXTThe 4 or 12 character code representation of the asset being sold.
SELLING_ASSET_ISSUERTEXTThe account address of the original asset issuer for the selling asset.
SELLING_ASSET_TYPETEXTThe identifier for type of selling asset code.
SELLING_ASSET_IDTEXTThe identifier of the asset being sold.
SET_FLAGSARRAYArray of numeric values of flags set for a trustline.
SET_FLAGS_SARRAYArray of string values of flags set for a trustline.
SIGNER_ACCOUNT_IDTEXTThe address of the account of the signer no longer sponsored
SIGNER_KEYTEXTThe address of the signer.
SIGNER_WEIGHTNUMBERThe weight of the new signer.
SOURCE_AMOUNTFLOATThe originating amount sent designated in the source asset.
SOURCE_ASSET_CODETEXTThe 4 or 12 character code representation of the source asset.
SOURCE_ASSET_ISSUERTEXTThe account address of the original source asset issuer.
SOURCE_ASSET_TYPETEXTThe identifier for type of source asset code.
SOURCE_ASSET_IDTEXTThe identifier of the source asset.
SOURCE_MAXFLOATThe maximum amount to be sent in source asset.
STARTING_BALANCEFLOATThe amount of XLM sent to newly created account.
TO_ACCOUNTTEXTThe address of the account receiving payment funds.
TRUSTEETEXTThe issuing account address.
TRUSTORTEXTThe trusting account address.
TRUSTLINE_ASSETTEXTThe asset of the trustline.
VALUETEXTThe value for a data entry in manage data operations.
CLEAR_FLAGSARRAYArray of numeric values of flags cleared for a trustline.
CLEAR_FLAGS_SARRAYArray of string values of flags cleared for a trustline.
DESTINATION_MINTEXTThe minimum amount to be received in destination asset.
BUMP_TOTEXTThe new desired value of the source account’s sequence number.
SPONSORTEXTThe account address of the sponsor who is paying the reserves for this ledger entry.
SPONSORED_IDTEXTThe account address of the account being sponsored.
BEGIN_SPONSORTEXTThe account address that initiated the sponsorship.
AUTHORIZE_TO_MAINTAIN_LIABILITIESBOOLEANIndicates whether the trustline is authorized for maintaining liabilities.
CLAWBACK_ENABLEDBOOLEANIndicates whether the asset can be clawed back by the issuer.
LIQUIDITY_POOL_IDTEXTUnique identifier for a liquidity pool. There cannot be duplicate pools for the same asset pair. Once a pool has been created for the asset pair, another cannot be created.
RESERVE_A_ASSET_TYPETEXTThe type of the first reserve asset.
RESERVE_A_ASSET_IDTEXTThe identifier of the first reserve asset.
RESERVE_A_ASSET_CODETEXTThe code of the first reserve asset.
RESERVE_A_ASSET_ISSUERTEXTThe issuer of the first reserve asset.
RESERVE_A_MAX_AMOUNTFLOATMaximum amount for first reserve asset deposit.
RESERVE_A_DEPOSIT_AMOUNTFLOATActual amount deposited for first reserve asset.
RESERVE_B_ASSET_TYPETEXTThe type of the second reserve asset.
RESERVE_B_ASSET_IDTEXTThe identifier of the second reserve asset.
RESERVE_B_ASSET_CODETEXTThe code of the second reserve asset.
RESERVE_B_ASSET_ISSUERTEXTThe issuer of the second reserve asset.
RESERVE_B_MAX_AMOUNTFLOATMaximum amount for second reserve asset deposit.
RESERVE_B_DEPOSIT_AMOUNTFLOATActual amount deposited for second reserve asset.
MIN_PRICEFLOATMinimum exchange rate for deposit operation.
MIN_PRICE_RVARIANTA fractional representation of the prices of the two assets in a pool. The n is the numerator (value of asset a) and the d is the denominator (value of asset b).
MAX_PRICEFLOATMaximum exchange rate for deposit operation.
MAX_PRICE_RVARIANTA fractional representation of the prices of the two assets in a pool. The n is the numerator (value of asset a) and the d is the denominator (value of asset b).
SHARES_RECEIVEDFLOAT
RESERVE_A_MIN_AMOUNTFLOAT
RESERVE_B_MIN_AMOUNTFLOAT
SHARESFLOATNumber of shares withdrawn from pool.
RESERVE_A_WITHDRAW_AMOUNTFLOATActual withdrawal amount for first reserve asset.
RESERVE_B_WITHDRAW_AMOUNTFLOATActual withdrawal amount for second reserve asset.
SOURCE_ACCOUNTTEXTThe account that originated the transaction.
OP_SOURCE_ACCOUNT_MUXEDTEXTMuxed source account for the operation.
TRANSACTION_IDNUMBERThe transaction identifier containing this operation.
TYPENUMBERThe mechanism that calculates pricing and division of shares for the pool. With the initial AMM rollout, the only type of liquidity pool allowed to be created is a constant product pool.
TYPE_STRINGTEXTThe verbose type of operation.
LEDGER_SEQUENCENUMBERThe sequence number of the ledger.
OP_ACCOUNT_MUXEDTEXTMuxed account identifier.
OP_ACCOUNT_MUXED_IDNUMBERRecord that contains details based on the type of operation executed. Each operation will return its own relevant details, with the rest of the details as null
LEDGER_KEY_HASHTEXTHash of the ledgerKey which is a subset of the ledgerEntry. The subset of ledgerEntry fields depends on ledgerEntryType.
BATCH_IDTEXTString representation of the run id for a given DAG in Airflow. Takes the form of “scheduled__<batch_end_date>-<dag_alias>”. Batch ids are unique to the batch and help with monitoring and rerun capabilities.
BATCH_RUN_DATETIMESTAMP_NTZThe start date for the batch interval. When taken with the date in the batch_id, the date represents the interval of ledgers processed. The batch run date can be seen as a proxy of closed_at for a ledger.
BATCH_INSERT_TSTIMESTAMP_NTZThe timestamp in UTC when a batch of records was inserted into the database. This field can help identify if a batch executed in real time or as part of a backfill. The timestamp should not be used during ad hoc analysis and is useful for data engineering purposes.
ASSET_BALANCE_CHANGESVARIANTChanges in asset balances.
PARAMETERSVARIANTParameters for contract function calls.
PARAMETERS_DECODEDVARIANTDecoded contract parameters.
FUNCTIONTEXTFunction type for invoke_host_function.
ADDRESSTEXTAddress for Soroban contract creation.
SOROBAN_OPERATION_TYPETEXTType of Soroban operation.
EXTEND_TONUMBERLedger extension target.
CONTRACT_IDTEXTSoroban contract identifier.
CONTRACT_CODE_HASHTEXTHash of Soroban contract code.
OPERATION_RESULT_CODETEXTResult code of the operation.
OPERATION_TRACE_CODETEXTTrace code of the operation.
BEGIN_SPONSOR_MUXEDTEXTIf the initiating sponsorship account is multiplexed, the virtual address.
BEGIN_SPONSOR_MUXED_IDNUMBERIf the initiating sponsorship account is multiplexed, the integer representation of the virtual address.
CLAIMABLE_BALANCE_IDTEXTThe balance id of the claimable balance which is no longer sponsored
CLAIMANTTEXTThe account address of the account which claimed the claimable balance
CLAIMANTSVARIANTAn unstructured field that lists account addresses eligible to claim a balance and the conditions which must be satisfied to claim the balance (typically time bound conditions)
CLAIMANT_MUXEDTEXTIf the account is multiplexed, the virtual address of the account which claimed the claimable balance
CLAIMANT_MUXED_IDNUMBERIf the account is multiplexed, an integer representation of the muxed account which claimed the balance
DATA_ACCOUNT_IDTEXTThe account address of the account whose data entry is no longer sponsored
DATA_NAMETEXTThe name of the data entry which is no longer sponsored
DETAILS_JSONVARIANTJSON record containing operation-specific details.
FROM_MUXEDTEXTIf the account is multiplexed, the virtual address of the sender account
FROM_MUXED_IDNUMBERIf the account is multiplexed, the integer representation of the virtual address of the sender account
FUNDER_MUXEDTEXTIf the account is multiplexed, the virtual address of the account funding the new account
FUNDER_MUXED_IDNUMBERIf the account is multiplexed, the integer representation of the account funding the new account
INTO_MUXEDTEXTIf the account is multiplexed, the virtual address of the account receive the deleted account’s lumens
INTO_MUXED_IDNUMBERIf the account is multiplexed, the integer representation of the account receiving the deleted account’s lumens
LEDGERS_TO_EXPIRENUMBERThe number of ledgers after which the operation will expire if its not executed.
OP_ACCOUNT_IDTEXTThe address of the account. The address is the account’s public key encoded in base32. All account addresses start with a ‘G’.
TO_MUXEDTEXTIf the account is multiplexed, the virtual address of the account receiving the payment
TO_MUXED_IDNUMBERIf the account is multiplexed, the integer representation of the virtual address of the recipient account
TRUSTEE_MUXEDTEXTIf the issuing account address is multiplexed, the virtual address of the trustee
TRUSTEE_MUXED_IDNUMBERIf the issuing account address is multiplexed, the integer representation of the virtual address of the trustee
TRUSTLINE_ACCOUNT_IDTEXTThe address of the account whose trustline is no longer sponsored
TRUSTOR_MUXEDTEXTIf the trusting account is multiplexed, the virtual address of the account
TRUSTOR_MUXED_IDNUMBERIf the trusting account is multiplexed, the integer representation of the virtual address of the account
FACT_OPERATIONS_IDTEXTUnique primary key for the dimension table, used as the main identifier for each record.
INSERTED_TIMESTAMPTIMESTAMP_NTZTimestamp when this record was inserted.
MODIFIED_TIMESTAMPTIMESTAMP_NTZTimestamp when this record was last modified.