Skip to content

Commit 6feb8f8

Browse files
fix(docs): update definitinos of two attestation types
1 parent 7f7869d commit 6feb8f8

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

docs/fdc/attestation-types/balance-decreasing-transaction.mdx

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ A transaction is considered "balance decreasing" for the specified address if:
3333

3434
## Response
3535

36-
| Field | Solidity Type | Description |
37-
| -------------------------- | ------------- | ---------------------------------------------------------------------- |
38-
| `blockNumber` | `uint64` | Block number containing the transaction. |
39-
| `blockTimestamp` | `uint64` | Timestamp of the block containing the transaction. |
40-
| `sourceAddressHash` | `bytes32` | Standard hash of the address indicated by `sourceAddressIndicator`. |
41-
| `spentAmount` | `int256` | Amount spent by the source address in minimal units (can be negative). |
42-
| `standardPaymentReference` | `bytes32` | Standardized payment reference of the transaction, if available. |
36+
| Field | Solidity Type | Description |
37+
| -------------------------- | ------------- | ---------------------------------------------------------------------------------------------- |
38+
| `blockNumber` | `uint64` | Block number containing the transaction. |
39+
| `blockTimestamp` | `uint64` | Timestamp of the block containing the transaction. |
40+
| `sourceAddressHash` | `bytes32` | Standard hash of the address indicated by `sourceAddressIndicator`. |
41+
| `spentAmount` | `int256` | Amount spent by the source address in minimal units (can be negative). |
42+
| `standardPaymentReference` | `bytes32` | Standard payment reference of the transaction. Zero value if the transaction has no reference. |
4343

4444
:::warning[Standard Payment Reference]
4545

@@ -79,6 +79,7 @@ The verification process is chain-specific and can be computed with a [balance d
7979

8080
- `spentAmount`: Difference between the balance of the address **after** and **before** the transaction. Can be negative.
8181
- `blockTimestamp`: The **close_time** of the ledger, converted to Unix time.
82+
- `standardPaymentReference`: [Standard payment reference] for `Payment` transactions, otherwise zero.
8283

8384
:::note[Lowest used timestamp]
8485

docs/fdc/attestation-types/payment.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ These provable payments mimic traditional banking transactions where entity A se
2323

2424
## Request
2525

26-
| Field | Solidity Type | Description |
27-
| --------------- | ------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
28-
| `transactionId` | `bytes32` | Unique ID of the payment transaction. |
29-
| `inUtxo` | `uint256` | For UTXO-based chains, this is the index of the transaction input associated with the source address. Set to `0` for non-UTXO chains. |
30-
| `utxo` | `uint256` | For UTXO-based chains, this is the index of the transaction output associated with the receiving address. Set to `0` for non-UTXO chains. |
26+
| Field | Solidity Type | Description |
27+
| --------------- | ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
28+
| `transactionId` | `bytes32` | Unique ID of the payment transaction. |
29+
| `inUtxo` | `uint256` | For UTXO chains, if the value is less than `2**16`, this field is the index of the transaction input with the source address. Otherwise, it represents the `standardAddressHash` of the input address for which the payment proof will be constructed. For non-UTXO chains, this is always `0`. |
30+
| `utxo` | `uint256` | For UTXO chains, if the value is less than `2**16`, this field is the index of the transaction output with the receiving address. Otherwise, it represents the `standardAddressHash` of the output address for which the payment proof will be constructed. For non-UTXO chains, this is always `0`. |
3131

3232
## Response
3333

0 commit comments

Comments
 (0)