You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -58,16 +57,26 @@ The verification process is chain-specific and can be computed with a [balance d
58
57
59
58
### UTXO chains (Bitcoin and Dogecoin)
60
59
60
+
#### Address Indication
61
+
61
62
-`sourceAddressIndicator`: Represents the index of the transaction input, formatted as a **0x-prefixed 32-byte string**.
62
63
- If the specified input does not exist or lacks an associated address, the attestation request is rejected.
64
+
65
+
#### Data Calculation
66
+
63
67
-`sourceAddress`: Address associated with the specified transaction input.
64
68
-`spentAmount`: Calculated as `Sum of all inputs with sourceAddress - Sum of all outputs with sourceAddress`. The value can be negative.
65
69
-`blockTimestamp`: The **mediantime** of the block.
66
70
67
71
### Account-based chains (XRPL)
68
72
73
+
#### Address Indication
74
+
69
75
-`sourceAddressIndicator`: The [standard address hash](#standard-address-hash) of the address in question.
70
76
- If the indicated address is not among the transaction signers and its balance was not decreased, the attestation request is rejected.
77
+
78
+
#### Data Calculation
79
+
71
80
-`spentAmount`: Difference between the balance of the address **after** and **before** the transaction. Can be negative.
72
81
-`blockTimestamp`: The **close_time** of the ledger, converted to Unix time.
73
82
@@ -119,7 +128,7 @@ In particular, no summary is made for coinbase transactions.
119
128
For XRPL, `sourceAddressIndicator` is [standardAddressHash](#standard-address-hash) of the indicated address.
120
129
If the `sourceAddressIndicator` does not match any of the addresses who signed the transaction or whose balance was decreased by the transaction, the summary is not made.
Assertion whether a block with the specified `blockNumber` is **confirmed** with additional data to compute the **block production rate** within a given time window.
12
11
13
12
## Supported chains
14
13
15
-
-`BTC` (Bitcoin)
16
-
-`DOGE` (Dogecoin)
17
-
-`XRP` (XRP Ledger)
18
-
- Test networks: `testBTC` (Bitcoin Testnet v3), `testDOGE`, `testXRP`
An attestation request that fetches data from the given url and then edits the information with a jq transformation.
8
+
Data retrieval from **Web2 JSON APIs** with JQ transformations. This attestation type allows smart contracts to access and process external JSON data in a verifiable way.
9
+
10
+
:::warning[Testnet Only]
11
+
12
+
JsonApi attestation type is currently only available on Flare Testnet Coston2 and Songbird Testnet Coston.
Information about a transaction on an external chain that is classified as a **native currency payment**.
15
14
Each supported blockchain specifies how a payment transaction should be formatted to be provable using this attestation type. These provable payments mimic traditional banking transactions where entity A sends a native currency to entity B, with an optional payment reference.
16
15
17
16
## Supported chains
18
17
19
-
-`BTC` (Bitcoin)
20
-
-`DOGE` (Dogecoin)
21
-
-`XRP` (XRP Ledger)
22
-
- Test networks: `testBTC` (Bitcoin Testnet v3), `testDOGE`, `testXRP`
@@ -110,12 +109,15 @@ Chain-specific explanations are provided in the sections that follow.
110
109
111
110
The payment summary for Bitcoin and Dogecoin is derived using specified indices for a transaction input and output.
112
111
113
-
-**Conditions**:
114
-
- If the specified input or output does not exist, or lacks an address (e.g., outputs using `OP_RETURN`), no summary is generated.
115
-
- Coinbase transactions are not summarized.
116
-
-**Data Sources**:
117
-
- For Bitcoin, all transaction details are retrieved using the `getrawtransaction` endpoint (verbosity 2) and `getblock`. This requires a Bitcoin node version ≥ 25.0.
118
-
- For Dogecoin, since `getrawtransaction` with verbosity 2 is not supported, alternative methods must be used to access input transaction data.
112
+
#### Conditions
113
+
114
+
- If the specified input or output does not exist, or lacks an address (e.g., outputs using `OP_RETURN`), no summary is generated.
115
+
- Coinbase transactions are not summarized.
116
+
117
+
#### Data Sources
118
+
119
+
- For Bitcoin, all transaction details are retrieved using the `getrawtransaction` endpoint (verbosity 2) and `getblock`. This requires a Bitcoin node version ≥ 25.0.
120
+
- For Dogecoin, since `getrawtransaction` with verbosity 2 is not supported, alternative methods must be used to access input transaction data.
@@ -133,12 +135,15 @@ The payment summary for Bitcoin and Dogecoin is derived using specified indices
133
135
134
136
The payment summary on XRPL is applicable only for transactions of type `Payment`.
135
137
136
-
-**Conditions**:
137
-
- Only `Payment` transactions are summarized; other transaction types are ignored.
138
-
- A successful payment has exactly one sender and at most one receiver. If unsuccessful, no receiver is recorded.
139
-
-**Data Sources**:
140
-
- Transaction details are obtained via the [`tx`](https://xrpl.org/tx.html) method.
141
-
- Changes made by the transaction are recorded in the `meta` field (or `metaData` if fetched via the `ledger` method) under `AffectedNodes`. Balance changes are found within `ModifiedNodes`, by comparing `FinalFields` and `PreviousFields`.
138
+
#### Conditions
139
+
140
+
- Only `Payment` transactions are summarized; other transaction types are ignored.
141
+
- A successful payment has exactly one sender and at most one receiver. If unsuccessful, no receiver is recorded.
142
+
143
+
#### Data Sources
144
+
145
+
- Transaction details are obtained via the [`tx`](https://xrpl.org/tx.html) method.
146
+
- Changes made by the transaction are recorded in the `meta` field (or `metaData` if fetched via the `ledger` method) under `AffectedNodes`. Balance changes are found within `ModifiedNodes`, by comparing `FinalFields` and `PreviousFields`.
0 commit comments