Skip to content

Commit 24a7e6f

Browse files
add test tx content
1 parent b47bdb1 commit 24a7e6f

File tree

2 files changed

+27
-9
lines changed

2 files changed

+27
-9
lines changed

docs/cdk/get-started/deploy-validium/node/run-node-services.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,6 @@ cd ~/cdk-validium/zkevm-bridge-service-0.3.1/
8383

8484
## Congratulations
8585

86-
You have now set up and deployed a full CDK validium network.
86+
You have now set up and deployed a full CDK validium network.
87+
88+
Check the next section to find out how to send a test transaction.
Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,31 @@
11
## Test transactions
22

3-
Once everything is up and running you can test by sending a transaction.
3+
Once everything is up and running you can do a quick test of the running stack by sending a zero-value transaction.
44

5-
!!! warning
6-
Work in progress.
5+
Run the following command where the mnemonic is for testing and the address can be any account address.
76

7+
```sh
8+
cast send --legacy --mnemonic 'code code code code code code code code code code code quality' --value 0 --gas-price 0 --rpc-url http://127.0.0.1:8123 0x0bb7AA0b4FdC2D2862c088424260e99ed6299148
9+
```
810

9-
<!--
10-
At the end of the tutorial, there should be some commands in order to verify that everything is working. If you follow the document as-is, you would probably need to do a bridge in order to get any value on L2. So it would probably be useful to show how to do that.
11+
You should see something like this as output:
1112

12-
Alternatively, we should probably run the genesis creation step with the `--test` flag in order to start L2 with some pre-mined value. Users in Discord seem to be trying to modify the [1createGenesis.js](https://github.com/0xPolygon/cdk-validium-contracts/blob/c6743885226690788b3474fa216622023f48bd98/deployment/1_createGenesis.js#L297) file to get value on L2 by default. This should work as well.
13+
```sh
14+
blockHash 0x5d6d45f46e54c5d0890dd8a4ede989dc8042d7d3aeada375ea11d2e77c91a298
15+
blockNumber 1
16+
contractAddress
17+
cumulativeGasUsed 21000
18+
effectiveGasPrice 0
19+
from 0x85dA99c8a7C2C95964c8EfD687E95E632Fc533D6
20+
gasUsed 21000
21+
logs []
22+
logsBloom 0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
23+
root 0x97b15537641583db08f1e3db15cb1e89212ed8d147670a11f93f368d5960e72f
24+
status 1
25+
transactionHash 0xd5443cff8dcc1147ead09d978d3abe9179615aa3eecbe4819c6768390bc467a3
26+
transactionIndex 0
27+
type 0
28+
to 0x66ec…89fd
29+
```
1330

14-
One quick way to verify that transactions can be mined is to send a zero-priced transaction. E.g
15-
-->
31+
Status `1` signifies a successful transaction.

0 commit comments

Comments
 (0)