Table Details
| Property | Value |
|---|---|
| Table Name | bitcoin.assets.btc_credit_debit |
| Table Status | Production-Ready |
| Unique Key | block_timestamp::date, block_number, transaction_hash, unique_index_id, address |
| Clustering Key(s) | block_timestamp::date, _address_short |
| Search Optimization | block_timestamp, block_number, transaction_hash, address, _address_short |
Table Columns
| Column Name | Data Type | Description |
|---|---|---|
| address | VARCHAR(130) | Wallet or contract address of the account. On EVM chains, a 42-character hex string (0x-prefixed). On other chains, the native address format applies. |
| value | NUMBER(38,5) | Amount of native currency (e.g. ETH, MATIC) transferred with this transaction or trace, in the chain’s smallest unit (Wei for EVM chains). Zero for calls that don’t move native currency. |
| block_timestamp | TIMESTAMP_NTZ(9) | Timestamp (UTC) of the block that contains this record. |
| block_number | NUMBER(38,0) | Sequential number of the block that contains this record. Starts at 0 (genesis block) and increments by 1 for each new block. |
| block_hash | VARCHAR(66) | Cryptographic hash of the block header that contains this record. Uniquely identifies a block. |
| transaction_index | NUMBER(38,0) | Zero-based position of the transaction within its block. The first transaction in a block has index 0. |
| transaction_hash | VARCHAR(66) | Hash of the transaction that produced this record. Uniquely identifies a transaction within the blockchain. |
| input_index | NUMBER(38,0) | Zero-based index of this input within the transaction’s input list. |
| output_index | NUMBER(38,0) | Zero-based index of this output within the transaction’s output list (equivalent to vout). |
| unique_index_id | VARCHAR(16777216) | Unique index identifier for this credit/debit record within the Bitcoin assets pipeline. |
| _address_short | VARCHAR(130) | Short prefix of the address for search optimization. |
| _created_at | TIMESTAMP_NTZ(9) | Timestamp of when the entry was created in the database. |
| _updated_at | TIMESTAMP_NTZ(9) | Timestamp of when the entry was last updated in the database. |