Important
Please follow up strictly these value to have best experience 😉.
- Powerful tool to convert
SS58 accounttosr25519::Pubkey: https://polkadot.subscan.io/tools/format_transform - Alice: from
5GrwvaEF5zXb26Fz9rcQpDWS57CtERHpNehXCPcNoHGKutQYto0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d - Bob: from
5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694tyto0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48
- Initially, Alice has a UTXO 1,125,899,906,842,624.
- She transfers to BOB a UTXO 842,624; but she doesn't have a UTXO $842,624. So she has to use her 1,125,899,906,842,624.
TransactionInputcontainsoutpointis UTXO 1,125,899,906,842,624;sigscriptis signed data of "simple transaction" (refer toruntime/src/utxo.rs:354).- There will be 2
TransactionOutputs:TransactionOutputcontainsvalueis UTXO 842,624;pubkeyis Bob addressTransactionOutputcontainsvalueis UTXO 1,125,899,906,000,000;pubkeyis Alice address
flowchart LR
AliceBefore[Alice <br/> UTXO 1,125,899,906,842,624] --> T{Transaction}
T -->|Change| AliceAfter[Alice <br/> UTXO 842,624]
T -->|Receive| Bob[Bob <br/> UTXO 1,125,899,906,000,000]
Check balance
- Switch to Chain State, select
utxo,utxoOf - Input:
0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d - Press + button
- Verify Alice has a UTXO hash
utxo.utxoOf: Option<H256>
0xc670c5f69081da78af400552edcafa3f0f31e84db1b50dd70776e0f87477b3dc
- Then select
utxo,utxoStore - Input:
0xc670c5f69081da78af400552edcafa3f0f31e84db1b50dd70776e0f87477b3dc - Press + button
- Verify Alice has a UTXO value
utxo.utxoStore: Option<AcademyPowRuntimeUtxoTransactionOutput>
{
value: 1,125,899,906,842,624
pubkey: 0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d
}
Alice transfers UTXO 842,624 to Bob, get back UXTO 1,125,899,906,000,000
Input
-
inputs[0].outpoint: 0xc670c5f69081da78af400552edcafa3f0f31e84db1b50dd70776e0f87477b3dc -
inputs[0].sigscript: 0xa23674686467cf6a3d755987276e1dbb71b4800ff99f2721e7d4fd52774fe43086ed5a385b5cde80a346be5eb7afd3e95ef1dd9b9069deee889cd432891ba481 -
outputs[0].value: 842624 -
outputs[0].pubkey: 0x8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 -
outputs[1].value: 1125899906000000 -
outputs[1].pubkey: 0xd43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d
Then submit unsigned transaction
Events
- New UTXO hash of Bob: 0x60bfe689ea5d2f0e2380a146289067465a3608b9ef20ef9e152cf501c0040dba
- New UTXO hash of Alice: 0x426e4f172479a674b4c044c34a77453bdf4ddbdf8b3993d586a05d9cffe57bd3
Check balance
- Switch to Chain State, select
utxo,utxoStore
Alice:
- Input:
0x426e4f172479a674b4c044c34a77453bdf4ddbdf8b3993d586a05d9cffe57bd3 - Press + button
- Verify Alice has a UTXO 1,125,899,906,000,000
Bob:
- Input:
0x60bfe689ea5d2f0e2380a146289067465a3608b9ef20ef9e152cf501c0040dba - Press + button
- Verify Bob has a UTXO 842,624
Note
If you would love to play in your own way, refer to scripts/generate-signature/generate-signature.js to generate your own custom signed data!



