Skip to content

Commit

Permalink
Add payment info example
Browse files Browse the repository at this point in the history
  • Loading branch information
StefansArya committed Mar 22, 2022
1 parent 72aad79 commit 11a27d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example/payment-info.json
@@ -0,0 +1 @@
{"_":{"moduleJS":["https://cdn.jsdelivr.net/npm/@blackprint/nodes@0.4.1/dist/nodes-decoration.mjs","https://cdn.jsdelivr.net/npm/@blackprint/nodes-polkadot.js@0.3.x/dist/nodes-polkadotjs.mjs","https://cdn.jsdelivr.net/npm/@blackprint/nodes@0.4.x/dist/nodes-input.mjs","https://cdn.jsdelivr.net/npm/@blackprint/nodes@0.4/dist/nodes-data.mjs","https://cdn.jsdelivr.net/npm/@blackprint/nodes@0.4.x/dist/nodes-console.mjs"]},"Decoration/Group/Default":[{"i":0,"x":867,"y":215,"data":{"title":"Get the payment fee for the transaction","color":"","width":1031.6666666666672,"height":361.5384615384618}},{"i":1,"x":54,"y":213,"data":{"title":"Prepare some transactions and combine it into single transaction","color":"","width":800.9157509157504,"height":362.61904761904657}}],"Polkadot.js/Account/Transfer/Balance":[{"i":2,"x":605,"y":295,"output":{"Txn":[{"i":6,"name":"Txn","parentId":0}]},"_cable":{"Txn":[{"x":841,"y":433,"branch":[{"x":1144,"y":433,"branch":[{"id":0}]}]}]}}],"Input/TextBox":[{"i":3,"x":303,"y":364,"data":{"value":"1KczAVb5pokkvsKoX8eEwxVnmwq8wNo9jgYDm4sHR9Z9nNQ"},"output":{"Value":[{"i":2,"name":"Address"}]}},{"i":4,"x":907,"y":306,"data":{"value":"1KczAVb5pokkvsKoX8eEwxVnmwq8wNo9jgYDm4sHR9Z9nNQ"},"output":{"Value":[{"i":6,"name":"Sender"}]}},{"i":5,"x":1281,"y":460,"comment":"1e12 = 1 WND","data":{"value":"1e12"},"output":{"Value":[{"i":7,"name":"In"}]}},{"i":13,"x":72,"y":410,"comment":"Try change me, and you will see different transaction fee","data":{"value":"0.1e12"},"output":{"Value":[{"i":12,"name":"In"}]}}],"Polkadot.js/Transaction/PaymentInfo":[{"i":6,"x":1185,"y":311,"output":{"Info":[{"i":9,"name":"Object"}]}}],"Data/String/To/Number":[{"i":7,"x":1518,"y":504,"output":{"Out":[{"i":8,"name":"B"}]}},{"i":12,"x":309,"y":454,"output":{"Out":[{"i":2,"name":"Value","parentId":0}]},"_cable":{"Out":[{"x":557,"y":462,"branch":[{"id":0}]}]}}],"Data/Number/Divide":[{"i":8,"x":1610,"y":487,"output":{"Value":[{"i":10,"name":"Any"}]}}],"Data/Object/GetValue":[{"i":9,"x":1391,"y":302,"comment":"Get the fee from the object","data":{"props":"partialFee"},"output":{"Value":[{"i":8,"name":"A"}]}}],"Console/Log":[{"i":10,"x":1699,"y":307,"comment":"The transaction fee in WND"}],"Polkadot.js/Connection/WebSocket":[{"i":11,"x":57,"y":49,"data":{"rpcURL":"wss://rpc.shibuya.astar.network"},"output":{"API":[{"i":2,"name":"API","parentId":0}]},"_cable":{"API":[{"x":541,"y":342,"branch":[{"id":0}]}]}}],"Decoration/Text/Notes":[{"i":14,"x":493,"y":52,"data":{"value":"In case if you want to test with different network\n\nwss://ws.test.azero.dev\nwss://rpc.shibuya.astar.network\nwss://westend-rpc.polkadot.io"}}]}

0 comments on commit 11a27d8

Please sign in to comment.