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
Copy file name to clipboardExpand all lines: src/content/cre/getting-started/part-4-writing-onchain-go.mdx
+25-25Lines changed: 25 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ pageId: "getting-started-part-4"
7
7
metadata:
8
8
description: "Getting started Part 4 (Go): write verified workflow results onchain to smart contracts and complete your first end-to-end workflow."
9
9
datePublished: "2025-11-04"
10
-
lastModified: "2025-11-04"
10
+
lastModified: "2025-12-09"
11
11
---
12
12
13
13
import { Aside } from"@components"
@@ -103,7 +103,7 @@ contract CalculatorConsumer is ReceiverTemplate {
103
103
}
104
104
```
105
105
106
-
The contract is already deployed for you on Sepolia at the following address: <ahref="https://sepolia.etherscan.io/address/0xF3abEAa889e46c6C5b9A0bD818cE54Cc4eAF8A54#code"target="_blank"rel="noopener noreferrer">`0xF3abEAa889e46c6C5b9A0bD818cE54Cc4eAF8A54`</a>. You will use this address in your configuration file.
106
+
The contract is already deployed for you on Sepolia at the following address: <ahref="https://sepolia.etherscan.io/address/0x10785f51B1Fccd94b7e386FDc83b9d50C71C0e52#code"target="_blank"rel="noopener noreferrer">`0x10785f51B1Fccd94b7e386FDc83b9d50C71C0e52`</a>. You will use this address in your configuration file.
107
107
108
108
## Step 2: Generate the consumer contract binding
109
109
@@ -143,7 +143,7 @@ Add the `CalculatorConsumer` contract address to your `config.staging.json`:
-**`[USER LOG]`**: You can see all of your `logger.Info()` calls showing the complete workflow execution, including the offchain value (`result=56`), onchain value (`result=22`), final calculation (`result=78`), and the transaction hash.
235
+
-**`[USER LOG]`**: You can see all of your `logger.Info()` calls showing the complete workflow execution, including the offchain value (`result=77`), onchain value (`result=22`), final calculation (`result=99`), and the transaction hash.
236
236
-**`[SIMULATION]`**: These are system-level messages from the simulator showing its internal state.
237
-
-**`Workflow Simulation Result`**: This is the final return value of your workflow. The `MyResult` struct contains all the values (56 + 22 = 78) and the transaction hash confirming the write operation succeeded.
237
+
-**`Workflow Simulation Result`**: This is the final return value of your workflow. The `MyResult` struct contains all the values (77 + 22 = 99) and the transaction hash confirming the write operation succeeded.
238
238
239
239
## Step 7: Verify the result onchain
240
240
@@ -250,21 +250,21 @@ Click the URL (or copy and paste it into your browser) to see the full details o
250
250
251
251
**What are you seeing on a blockchain explorer?**
252
252
253
-
You'll notice the transaction's `to` address is not the `CalculatorConsumer` contract you intended to call. Instead, it's to a **Forwarder** contract. Your workflow sends a secure report to the Forwarder, which then verifies the request and makes the final call to the `CalculatorConsumer` on your workflow's behalf. To learn more, see the [Onchain Write guide](/cre/guides/workflow/using-evm-client/onchain-write).
253
+
You'll notice the transaction's `to` address is not the `CalculatorConsumer` contract you intended to call. Instead, it's to a **Forwarder** contract. Your workflow sends a secure report to the Forwarder, which then verifies the request and makes the final call to the `CalculatorConsumer` on your workflow's behalf. To learn more, see the [Onchain Write guide](/cre/guides/workflow/using-evm-client/onchain-write/overview).
254
254
255
255
### **2. Check the contract state**
256
256
257
257
While your wallet interacted with the Forwarder, the `CalculatorConsumer` contract's state was still updated. You can verify this change directly on Etherscan:
258
258
259
-
- Navigate to the `CalculatorConsumer` contract address: <ahref="https://sepolia.etherscan.io/address/0xF3abEAa889e46c6C5b9A0bD818cE54Cc4eAF8A54#readContract"target="_blank"rel="noopener noreferrer">`0xF3abEAa889e46c6C5b9A0bD818cE54Cc4eAF8A54`</a>.
259
+
- Navigate to the `CalculatorConsumer` contract address: <ahref="https://sepolia.etherscan.io/address/0x10785f51B1Fccd94b7e386FDc83b9d50C71C0e52#readContract"target="_blank"rel="noopener noreferrer">`0x10785f51B1Fccd94b7e386FDc83b9d50C71C0e52`</a>.
260
260
- Expand the `latestResult` function and click **Query**. The values should match the `finalResult`, `offchainValue`, and `onchainValue` from your workflow logs.
261
261
262
262
This completes the end-to-end loop: triggering a workflow, fetching data, reading onchain state, and verifiably writing the result back to a public blockchain.
263
263
264
264
To learn more about implementing consumer contracts and the secure write process, see these guides:
265
265
266
266
-**[Building Consumer Contracts](/cre/guides/workflow/using-evm-client/onchain-write/building-consumer-contracts)**: Learn how to create your own secure consumer contracts with proper validation.
267
-
-**[Onchain Write Guide](/cre/guides/workflow/using-evm-client/onchain-write)**: Dive deeper into the write patterns.
267
+
-**[Onchain Write Guide](/cre/guides/workflow/using-evm-client/onchain-write/overview-go)**: Dive deeper into the write patterns.
Copy file name to clipboardExpand all lines: src/content/cre/getting-started/part-4-writing-onchain-ts.mdx
+27-23Lines changed: 27 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ pageId: "getting-started-part-4"
7
7
metadata:
8
8
description: "Getting started Part 4 (TypeScript): write verified workflow results onchain to smart contracts and complete your first end-to-end workflow."
9
9
datePublished: "2025-11-04"
10
-
lastModified: "2025-11-04"
10
+
lastModified: "2025-12-09"
11
11
---
12
12
13
13
import { Aside } from"@components"
@@ -103,7 +103,7 @@ contract CalculatorConsumer is ReceiverTemplate {
103
103
}
104
104
```
105
105
106
-
The contract is already deployed for you on Sepolia at the following address: <ahref="https://sepolia.etherscan.io/address/0xF3abEAa889e46c6C5b9A0bD818cE54Cc4eAF8A54#code"target="_blank"rel="noopener noreferrer">`0xF3abEAa889e46c6C5b9A0bD818cE54Cc4eAF8A54`</a>. You will use this address in your configuration file.
106
+
The contract is already deployed for you on Sepolia at the following address: <ahref="https://sepolia.etherscan.io/address/0x10785f51B1Fccd94b7e386FDc83b9d50C71C0e52#code"target="_blank"rel="noopener noreferrer">`0x10785f51B1Fccd94b7e386FDc83b9d50C71C0e52`</a>. You will use this address in your configuration file.
107
107
108
108
## Step 2: Update your workflow configuration
109
109
@@ -116,7 +116,7 @@ Add the `CalculatorConsumer` contract address to your `config.staging.json`:
-**`[USER LOG]`**: You can see all of your `logger.info()` calls showing the complete workflow execution, including the offchain value (`62`), onchain value (`22`), final calculation (`84`), and the transaction hash.
237
+
-**`[SIMULATION]`**: These are system-level messages from the simulator showing its internal state.
238
+
-**`Workflow Simulation Result`**: This is the final return value of your workflow. The `MyResult` object contains all the values (62 + 22 = 84) and the transaction hash confirming the write operation succeeded.
239
+
236
240
## Step 5: Verify the result onchain
237
241
238
242
### **1. Check the Transaction**
@@ -247,21 +251,21 @@ Click the URL (or copy and paste it into your browser) to see the full details o
247
251
248
252
**What are you seeing on a blockchain explorer?**
249
253
250
-
You'll notice the transaction's `to` address is not the `CalculatorConsumer` contract you intended to call. Instead, it's to a **Forwarder** contract. Your workflow sends a secure report to the Forwarder, which then verifies the request and makes the final call to the `CalculatorConsumer` on your workflow's behalf. To learn more, see the [Onchain Write guide](/cre/guides/workflow/using-evm-client/onchain-write).
254
+
You'll notice the transaction's `to` address is not the `CalculatorConsumer` contract you intended to call. Instead, it's to a **Forwarder** contract. Your workflow sends a secure report to the Forwarder, which then verifies the request and makes the final call to the `CalculatorConsumer` on your workflow's behalf. To learn more, see the [Onchain Write guide](/cre/guides/workflow/using-evm-client/onchain-write/overview).
251
255
252
256
### **2. Check the contract state**
253
257
254
258
While your wallet interacted with the Forwarder, the `CalculatorConsumer` contract's state was still updated. You can verify this change directly on Etherscan:
255
259
256
-
- Navigate to the `CalculatorConsumer` contract address: <ahref="https://sepolia.etherscan.io/address/0xF3abEAa889e46c6C5b9A0bD818cE54Cc4eAF8A54#readContract"target="_blank"rel="noopener noreferrer">`0xF3abEAa889e46c6C5b9A0bD818cE54Cc4eAF8A54`</a>.
260
+
- Navigate to the `CalculatorConsumer` contract address: <ahref="https://sepolia.etherscan.io/address/0x10785f51B1Fccd94b7e386FDc83b9d50C71C0e52#readContract"target="_blank"rel="noopener noreferrer">`0x10785f51B1Fccd94b7e386FDc83b9d50C71C0e52`</a>.
257
261
- Expand the `latestResult` function and click **Query**. The values should match the `finalResult`, `offchainValue`, and `onchainValue` from your workflow logs.
258
262
259
263
This completes the end-to-end loop: triggering a workflow, fetching data, reading onchain state, and verifiably writing the result back to a public blockchain.
260
264
261
265
To learn more about implementing consumer contracts and the secure write process, see these guides:
262
266
263
267
-**[Building Consumer Contracts](/cre/guides/workflow/using-evm-client/onchain-write/building-consumer-contracts)**: Learn how to create your own secure consumer contracts with proper validation.
264
-
-**[Onchain Write Guide](/cre/guides/workflow/using-evm-client/onchain-write)**: Dive deeper into the write patterns.
268
+
-**[Onchain Write Guide](/cre/guides/workflow/using-evm-client/onchain-write/overview-ts)**: Dive deeper into the write patterns.
Copy file name to clipboardExpand all lines: src/content/cre/guides/workflow/using-evm-client/generating-bindings.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -403,4 +403,4 @@ This generated test file demonstrates real-world patterns for testing complex wo
403
403
404
404
## Where to go next
405
405
406
-
Now that you know how to generate bindings, you can use them to [read data from](/cre/guides/workflow/using-evm-client/onchain-read) or [write data to](/cre/guides/workflow/using-evm-client/onchain-write) your contracts, or [trigger workflows from events](/cre/guides/workflow/using-triggers/evm-log-trigger).
406
+
Now that you know how to generate bindings, you can use them to [read data from](/cre/guides/workflow/using-evm-client/onchain-read) or [write data to](/cre/guides/workflow/using-evm-client/onchain-write/overview) your contracts, or [trigger workflows from events](/cre/guides/workflow/using-triggers/evm-log-trigger).
Copy file name to clipboardExpand all lines: src/content/cre/guides/workflow/using-evm-client/onchain-read-ts.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -377,6 +377,6 @@ This pattern provides better organization, reusability, and type safety across y
377
377
378
378
## Next steps
379
379
380
-
- Learn how to [write data to contracts](/cre/guides/workflow/using-evm-client/onchain-write)
380
+
- Learn how to [write data to contracts](/cre/guides/workflow/using-evm-client/onchain-write/overview)
381
381
- Explore the [EVM Client SDK Reference](/cre/reference/sdk/evm-client-ts) for all available methods
382
382
- See [Part 3](/cre/getting-started/part-3-reading-onchain-value) and [Part 4](/cre/getting-started/part-4-writing-onchain) of the Getting Started guide for more examples
Copy file name to clipboardExpand all lines: src/content/cre/guides/workflow/using-evm-client/onchain-write/generating-reports-single-values.mdx
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -250,7 +250,7 @@ func main() {
250
250
251
251
## Learn more
252
252
253
-
-**[Onchain Write Overview](/cre/guides/workflow/using-evm-client/onchain-write)**: Understand all onchain write approaches
253
+
-**[Onchain Write Overview](/cre/guides/workflow/using-evm-client/onchain-write/overview)**: Understand all onchain write approaches
254
254
-**[Submitting Reports Onchain](/cre/guides/workflow/using-evm-client/onchain-write/submitting-reports-onchain)**: Submit your generated report to the blockchain
255
255
-**[Generating Reports: Structs](/cre/guides/workflow/using-evm-client/onchain-write/generating-reports-structs)**: Manually encode and generate reports for struct data
256
256
-**[Building Consumer Contracts](/cre/guides/workflow/using-evm-client/onchain-write/building-consumer-contracts)**: Create contracts that can receive your reports
0 commit comments