Closed marekyggdrasil closed 3 years ago
grin-wallet -r "https://grinnode.live:3413" owner_api
Password:
20201220 07:55:46.473 WARN grin_wallet_controller::controller - Starting HTTP Foreign API on Owner server at 127.0.0.1:3420.
20201220 07:55:46.473 WARN grin_wallet_controller::controller - Starting HTTP Owner API server at 127.0.0.1:3420.
20201220 07:55:46.473 WARN grin_wallet_controller::controller - HTTP Owner listener started
HTTP Owner successfully started.
Before runnning the script, we need to make sure to edit the configuration in wallet_v3.py please note that '513a15f3-812c-4409-b19b-c8c135f27e10' is a valid transaction ID
#change to your grin owner_api sercret file
api_sercet_file = '/Users/path/.grin/main/.owner_api_secret'
#change to you wallet password
wallet_password = 'oldpassword'
#call this following function at the end of wallet_v3.py
#pp.pprint(wallet.get_stored_tx(None,"513a15f3-812c-4409-b19b-c8c135f27e10"))
python3 /Users/workstation/Downloads/wallet_v3.py
{ 'coms': [ { 'c': '0968b8e02e0b3c156a37e26b1cc83b8b4510a8d876a220c2d958129a3593191d2d'},
{ 'c': '08b03caaf3d79cea6ced042be594ed3b9acfdbf84f3fa7920535c14a14a07a58cc'},
{ 'c': '0845a5d06c6b09b183d8cf15c231043d85743be8deb5629769a2dec34905b320f9'},
{ 'c': '0805003e2b3c7677f5617b744d056890ea46c0eeb163fa43df3b04c1dfdb66db26',
'p': '3089d7296f0719fee1b41eb6f535fc14fd3b5473e32d564eeca0872e167944bb9f43939955a883a1085b500c206dc7402ddab998a8822946ad0946c3b69d200700d386bd32e112a2964b6f19ad0c88596d79a64e459032376f0f7a5542359a242bb1e683b2f1c9861d8f9d60ec1c6dbd85d63012bb5b633a6cc4c78908ea0f767c568b43245f44eabaae78b07cf3341fc371a8dfeb54030fd403c2bcfb7e7727c467cecf1a11eefbb5ed18d6d6ca3bd58d0c43da901e25ef0620c25191ec821dffc1f6f4ee60142a1aeab8e73c5b00ead11d6f8dd627887f188bfe2fa8abf77be5da427d454cf8c7a8f1cf015d79e00102687ae42eff75972fe0cc8ea069dd10fa5afce346d8c10c2a46623f0697622dfd81d9dc767b3fc86a7c3e9dde1705daee127f5de991b81c23534d94d28aa26bc9cf4c2f1479d5a6699fc8b3f3f09d6fa866d6be43a9a450c2bd32ba72a93c1d88dc78758f09a7f1f7a6f0ce049815a15adc038c8620b162119c01f808b480518778e78097a4dc5632d2270ff1adc4fe737159ac78bd182184363bf005b2ae32db8b5c6ea79bd34bf5b285185bcd65ee4c046bd8330a7749c175d4354fad6392945cb8695edaa821f1632641602d15052a22954a634bd46ac795a63c066ebf64bbd973767124b6e3ba89fdc2a3d0b2296c0f5eedf477d08b3c1010b765c1fb5d2ea55f019979f3ea84c2de9512fbd316f9358066792a0fe70decdb4aef9c763509947931c16a82f6406096049856f9706d6368752fe2947cc42b3ea490e803a623a497f5a19dff097758179b3ee189f073345d87f44c87a349169e6959c42161f436409c7b8d6e14a02255136a82e1eff36720edd1d54275d565f0ade5d8356c9f7280b1bc68e2faef9bb527001e1c7410622ca2c87be3cf66643e58856fb4847fc3fbdd46296114920a88ec8a7148088299ba'},
{ 'c': '085b20d2d557f9b5478f9eb6faa629401bb843c4f47c5505e94ae21e3e85cb865a',
'p': '00d31a9cb050319c13cf33f947af156928a093e88ffa672a252617e8d04d10fa31a65e07dbc02efe00f680f2c6bfe3b08c277c42dcfbcdf959311add8101227d010ce7c4d32b8833ac69796397534e48347a59cd32d222b3e9c96b4f79fe9a67062a5af4bf6d939939d444c6b6f13842baf630fc3158d61fe29e27fd5b07195ceedcc8ceb5a907c9f3d49bb14ea04b6b9ba29c300020cdca617a72447f714893342e2176be4d3e8d3226a095044e97495bdf650f231795b424e7a82fb1206717a138eca61a9c0eb3f3c9f6440800668519b0d1b7dd39969de0ee3d012e9a7f518610f7ac51931e99b1ab792c7db55a163f932d4e39363e624271748ded593e9d64645dafb0d4b96f167a16ff5b35a3bb2faabf17e8260521a4a7adad62f71f9ef31c17a6ef1fa6320131484f52499059e56ba7cf1e23d46f4f388d2469e80243af430150d77cd4adaaa523ed9c5c71461b362847f958278804594b89f58bce7b9f9e00a8cbcba34b973dd58e03b148a072b82d97c06a5d363a88dc32c83383084a17405d4dabc745d29383720fac9f4f5ffdfded3255d78f99e564a9eb7b71bf6bf7642b1fb947d826440a64967cfe30c1aa3a0952413dba6990ffc0dccb416dc73096f5b5769a3ce199f7456116ab4944a3a3fc024a512bb78897d9d32f8fe0915fdc8afd88e73a9b4b6094dda804fd9d05dd0336df3dc0e1f116d289316dc4fefcb630fef1a3763afb1f41fdb8227250a09a43666158d55f5e0af0b16c6529e99a1488c4230ba09c79ec0152d80f8a8e04368dbcc5029a53b63c099e16f46873f4ca79bf83cc7d8a812f07590be15cb708b1371de2843d5c4d4bcb34aebb9131fa93816443c96ace4c473d1c157b5abd3e1d2708654c3c466ae8645abd3b732b66538f8e3c15801edb572aca95787c2450145d64a182810b53aeacc040db86388e72'}],
'fee': '24000000',
'id': '513a15f3-812c-4409-b19b-c8c135f27e10',
'off': '13f5cda55667b601c851cd867150787553d26e52ea52370dc3ea98a2609035bd',
'sigs': [],
'sta': 'S3',
'ver': '4:3'}
Nice! Thanks! Closing.
Description Testing the post transaction method from the Owner API
Prerequisites
Test procedure
Expected result:
Check if retrieves the stored transaction associated with a TxLogEntry. Can be used even after the transaction has completed. Either the Transaction Log ID or the Slate UUID must be supplied. Check if both are supplied, the Transaction Log ID is preferred.
Provide requests and response full payloads as well as wallet and node logs.
Include the output of command
and your environment