Skip to content

Commit

Permalink
format the test net doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricfung committed May 13, 2024
1 parent 4cacd2d commit 5d2f18e
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ This is the same UTXO model used in Bitcoin, but with different field names. Amo
Compact the raw transaction JSON and sign it with the private view and spend key as following.

```
$ mixin signrawtransaction -n mixin-node:8239 \
$ mixin -n mixin-node:8239 signrawtransaction \
-key 0d48c96d383d325a97eea5295cbf3afa7766c49db477b68fd8032ff7f59b0b00d77e434f96f3f42c2d1796662c7cc90497feaf3863a5815f27ba49fd5e29b906 \
-raw '{"version":5,"asset":"a99c2e0e2b1da4d648755ef19bd95139acbbe6564cfb06dec7cd34931ca72cdc","extra":"34366362393932382d653636632d343966392d386165632d366462366137346666663638","outputs":[{"type":0,"amount":"115.06849309","script":"fffe01","accounts":["XINPXu5NBXszhpZDRJ8iA26TbQ2oWTSq1tXqKKeVeYWgLSz8yXGTtVhMogynYytoMewYVFR541wauLhy1YV33zg445E49YA7"]}],"inputs":[{"hash":"20001842d6eff5129c11f7c053bf1209f0267bf223f1681c9cb9d19fc773a692","index":11}]}'
```
Expand Down Expand Up @@ -180,11 +180,18 @@ address: XINBpBaDKtcu5SBuuqE1pwMrdeFvyCwFChdjLS23ewKdoLbURL4iJYCXLvsXP1nVbB3C
view key: be25d97ba8eb80336998facfb033f71713f9c1cabdc417478f831c749fcd9001
spend key: 5189b286e5717ea36435a29dfb1aaddebad5e216b05e8b4de59693dfb9fe1f06
$ mixin signcustodiandeposit -receiver XINBpBaDKtcu5SBuuqE1pwMrdeFvyCwFChdjLS23ewKdoLbURL4iJYCXLvsXP1nVbB3CGRbWg6UgVH8AWVgjSgmenMsrgpRY -custodian 95974a5f8b90d685527f246605e13968dc73f3bc9a72e6db23128220a6579e08109c54394e977d46c2c6385faf05b4a25024ddb476588529b889f6d71912ab0b -asset a99c2e0e2b1da4d648755ef19bd95139acbbe6564cfb06dec7cd34931ca72cdc -chain 8dd50817c082cdcdd6f167514928767a4b52426997bd6d4930eca101c5ff8a27 -asset_key 0xa974c709cfb4566686553a20790685a47aceaa33 -transaction 0x13f805f2593c59becd0b89673390249415f833fc9c821288f69cce5e7c6eb09f -index 0 -amount 100.123
$ mixin signcustodiandeposit -receiver XINBpBaDKtcu5SBuuqE1pwMrdeFvyCwFChdjLS23ewKdoLbURL4iJYCXLvsXP1nVbB3CGRbWg6UgVH8AWVgjSgmenMsrgpRY \
-custodian CUSODIANPRIVATEVIEWPRIVATESPEND \
-asset a99c2e0e2b1da4d648755ef19bd95139acbbe6564cfb06dec7cd34931ca72cdc \
-chain 8dd50817c082cdcdd6f167514928767a4b52426997bd6d4930eca101c5ff8a27 \
-asset_key 0xa974c709cfb4566686553a20790685a47aceaa33 \
-transaction 0x13f805f2593c59becd0b89673390249415f833fc9c821288f69cce5e7c6eb09f \
-index 0 \
-amount 100.123
=>
77770005a99c2e0e2b1da4d648755ef19bd95139acbbe6564cfb06dec7cd34931ca72cdc000100000000000000000000000000000000000000000000000000000000000000000000000077778dd50817c082cdcdd6f167514928767a4b52426997bd6d4930eca101c5ff8a27002a3078613937346337303963666234353636363836353533613230373930363835613437616365616133330042307831336638303566323539336335396265636430623839363733333930323439343135663833336663396338323132383866363963636535653763366562303966000000000000000000050254c792e000000001000000050254c792e00001d4ec8c88d30f2f248d302cecbda039ba2a1bfa3f3d02b5f1857c35ff4f7fd98e30a08ef032692ce9551cd7104f742212f9238c888f3418674daf51d53cbca8860003fffe0100000000000000000001000100003ce842d817b3e65cbac0adc8a87bd8102340fda4f4f1f6fdc471c8acd920071be6c360e463863f5082198f225b823f0d33932bec5b6220c3c6cfb57f8cd1830c
77770005a99c2e0e2b1da4d648...3c6cfb57f8cd1830c
$ mixin -n 127.0.0.1:6861 sendrawtransaction -raw 77770005a99c2e0e2b1da4d648755ef19bd95139acbbe6564cfb06dec7cd34931ca72cdc000100000000000000000000000000000000000000000000000000000000000000000000000077778dd50817c082cdcdd6f167514928767a4b52426997bd6d4930eca101c5ff8a27002a3078613937346337303963666234353636363836353533613230373930363835613437616365616133330042307831336638303566323539336335396265636430623839363733333930323439343135663833336663396338323132383866363963636535653763366562303966000000000000000000050254c792e000000001000000050254c792e00001d4ec8c88d30f2f248d302cecbda039ba2a1bfa3f3d02b5f1857c35ff4f7fd98e30a08ef032692ce9551cd7104f742212f9238c888f3418674daf51d53cbca8860003fffe0100000000000000000001000100003ce842d817b3e65cbac0adc8a87bd8102340fda4f4f1f6fdc471c8acd920071be6c360e463863f5082198f225b823f0d33932bec5b6220c3c6cfb57f8cd1830c
$ mixin -n 127.0.0.1:6861 sendrawtransaction -raw 77770005a99c2e0e2b1da4d648...3c6cfb57f8cd1830c
=>
{"hash":"bf7f2bdbed2f77c452e91febd48c4a8f876e42895737d2616f9da956fb622888"}
```

0 comments on commit 5d2f18e

Please sign in to comment.