Skip to content

Instantly share code, notes, and snippets.

@ndcroos
Last active December 25, 2020 09:55
Show Gist options
  • Save ndcroos/48447f6c0a14e81709e6de5b7acd1857 to your computer and use it in GitHub Desktop.
Save ndcroos/48447f6c0a14e81709e6de5b7acd1857 to your computer and use it in GitHub Desktop.

Prerequisites:

* Version : grin-wallet 5.0.0 RC1
* Linux debian 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
* wallet 1 address (account name: default): grin1cwutd4sr0t0ac62764r9vz6wkgpmnmpheynh5tw56zvczvh8apdszxp25w
* wallet 2 address (account name: issue16): grin17wykdnfdhx7wg3tkgaemaj3g8dxs4t547fdsyfax426xzrgc50ksyuj5es

Step 1 : send funds from wallet (1) to wallet (2) using Tor: sender-initiated

Start listening via Tor:

grin-wallet -a issue16 listen
Password: 
20201223 21:17:24.383 WARN grin_wallet_controller::controller - Starting TOR Hidden Service for API listener at address 6oewntjnxg6oirlwi5z35srihngqvluv6jnqej5gvk2gcdiyupwzevad, binding to 127.0.0.1:3415
20201223 21:17:29.041 WARN grin_wallet_controller::controller - Starting HTTP Foreign listener API server at 127.0.0.1:3415.
20201223 21:17:29.042 WARN grin_wallet_controller::controller - HTTP Foreign listener started.
20201223 21:17:29.042 WARN grin_wallet_controller::controller - Slatepack Address is: grin17wykdnfdhx7wg3tkgaemaj3g8dxs4t547fdsyfax426xzrgc50ksyuj5es

Send:

grin-wallet send -d "http://6oewntjnxg6oirlwi5z35srihngqvluv6jnqej5gvk2gcdiyupwzevad.onion" 0.1
Password: 
No recipient Slatepack address or provided address invalid. No payment proof will be requested.
20201223 21:42:50.089 WARN grin_wallet_api::owner - Destination is not a valid Slatepack address. Will output Slatepack.
/home/nick-test/.grin/main/slatepack/ed850a27-5058-4c42-8959-68a15870cc88.S1.slatepack

Slatepack data follows. Please provide this output to the other party

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. bZtxyNutx53Nyec bpsByRNWjCGrQT2 BNxjBaW8388R9VR qCMLe7JLryDiGrV HuVNrtSbb7sj9a5 QHqg2T34s7aJDWx eHYviyB874psttX 6zLsNyaqgh8Eqn3 NSd1vGfvpQWMgX6 vzbp6cTXmdVpnGx KSgmHR9byHmCfJf 2S8fZcsDrQwn5yF YXpq2fV8gf7LK7r gjcvEeDi5pht8PF 1oX2Wh2K58QcgtP vDdTn12bQCweYwe 53w9QrKAr2UiCmH rftoRtKxtV3xsE7 53kzrtnyM2aYBMi 4uqjssfq7ma9yP3 FRmw8s. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/.grin/main/slatepack/ed850a27-5058-4c42-8959-68a15870cc88.S1.slatepack

The slatepack data is NOT encrypted

Command 'send' completed successfully

Checking the account after sending, just for information:

grin-wallet info
Password: 
20201223 21:43:29.312 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201223 21:43:29.345 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201223 21:43:29.355 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201223 21:43:29.356 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete

____ Wallet Summary Info - Account 'default' as of height 1015258 ____

 Confirmed Total                  | 0.000000000 
 Awaiting Confirmation (< 10)     | 0.000000000 
 Awaiting Finalization            | 4.877000000 
 Locked by previous transaction   | 5.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.000000000 

Command 'info' completed successfully

Receive:

grin-wallet -a issue16 receive -i /home/nick-test/.grin/main/slatepack/ed850a27-5058-4c42-8959-68a15870cc88.S1.slatepack
Password: 
20201223 21:52:57.900 WARN grin_wallet_api::owner - Attempting to send transaction via TOR
20201223 21:53:05.379 WARN grin_wallet_api::owner - Unable to send transaction via TOR
/home/nick-test/.grin/main/slatepack/ed850a27-5058-4c42-8959-68a15870cc88.S2.slatepack

Slatepack data follows. Please provide this output to the other party

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. RVuRjym7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PVe92ot5aT5zgQW irNQp12BPwTqK1t Yqaco8Qj7NB4PZT e7skZfhM578UemG Rey22QSoseYiBzr VvApj7XMjh7uFTU YW5NitAErPxAzh6 XH6yVM7tuGsyn2d VXjjXLMiFfHZ1Ch cK15SN4vWL5XKQR K9RT6JM787e8Sco rgBTr3iVGFBfYaF AF3x5fsrFBTewrn LHXaWJZgRK9aMtS aZzAoMvq5GS3oWL UpKADYbYfcg14JL 7w73y2omxP2P9Wn gBDcSwbJGTMvU1R seTaWKqoLFCVszs 3XPD1Sd7tvs7X9X JmHjeYVeHp1URea vBTmEhTPYdSjR8q BXPPWp2aVdzHANs zE3h37sZNgghG5t mwnvRfDGJfFQtYQ nHfPNmXLKxDAMRT P8whyrLomkdHPEa Wa3vkEVzzvfUe1q RTFn1XKxmJDcwDU umYUn7H5PX2eLJw WP7r5neTr4ZznX3 9CMxp8sFpEnjLxP 7rgGpZPWoyxQm6z E8W6R9AtUFhYrkG 6dirpp4S3AXR1X8 9Ls3C6NfdFFjSMg VNFatNu2eNX7gvK 7wQEJgiGmhh9bZQ M6VZgdtMRTRxKDR JbkZ3huJYGXa7tP 7Eo4aeom1jw82vX VxEkTURvJM3YNqd QipX9qCvFF5U2Nz RJoVcpP3YEZU6pf FSUnND32AH. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/.grin/main/slatepack/ed850a27-5058-4c42-8959-68a15870cc88.S2.slatepack

The slatepack data is encrypted for the recipient only

Command 'receive' completed successfully
grin-wallet finalize -i /home/nick-test/.grin/main/slatepack/ed850a27-5058-4c42-8959-68a15870cc88.S2.slatepack
Password: 
Transaction posted
Transaction finalized successfully
/home/nick-test/.grin/main/slatepack/ed850a27-5058-4c42-8959-68a15870cc88.S3.slatepack

Slatepack data follows.

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. JSkxgrMeE6FS69q B71i9ZPpsaYtaaG WgiBicw5YfgFxkq suWPLorxjWXAfz6 rnPtaVwr7ciMCZg 9ydodszjwAXJMkk ikPQKBBxHoE84YH ovtLZ8Rcoq8gZfc SGufQukWBN49roX BSP9pCkp6vbpN61 U7wGuZeDeXHvEsu K2DEP94tqvcm3Nu 8VxnEg9sxsD4CoQ Waa5YPnQk4QJvs9 4pm9edgVWZ2fu7B 8U2QSMT2SrxBPio ngzfttdegr9kDce FzwEbKd3bXAucaV mUwSQvigAZxr9QP AM7ezAbZKrrUpz5 7vBkgZM7rQ1jme5 hjebeVh6XVRm9FG GQW4JBujTvV738Z kFAcPhvh6KEFHtr uL6musxm8BKZJ7q 3RqTV8mHssHk5xX DNaVwJz1HBnwccu rm8QW9ZzhNYNuJ9 WD1o4iuocxojaXg 5Q5emddBXNqCNSL mBQrDrvRZHErB3E WtMRvyX9ytyGaAv xXp9aett4pDSAvU nt3VJghGYSCAt2W u86jMbFHRMFEpGB TyXdHf2rrisgrmU EPQEXoqn5FxN7QV bWpPPmy4X7NKy3L 9MRzjJAJ5JqXtd9 BjC88ZHP3LRbRuF HbBFgincSFhKDdS MEvcyiFSD6hteoN ggoZ2keHnbkdPED b1dgzJz7bdDuwzu 1otT7GxWX6gcty1 M4QuxaRvKDjwjrg 1QqNAxgQt5zaFAC uysiLB2friB5BYd oZs79bes5LoCCgP hY9F1Ad3DrKZiSW kMz2s54DUR1Knpi MXY447T2jdwuTXu LEtb4DnizF91gYn 561oCyDD4Jk8EK1 NSH7DMbqijF53mV P61D8jzLv3pLoWk nSGCpug25MALaAJ s4MMhxZwfU9owqg ZAwC6qS2zBppixs wEq5vZ2jPPR7waL MVnWLSwRnvDU7BH iPjUPEGz1oiomgR 9JvdUtKitVJ7Eic Qx1gVzuh7wWJZ7z GACaaGgS4Lka2um n7XnTCuPhGjCyMi mr4Qsx73saAh4SP FtiaYsG82FxqxkR HfMsMz9eFL5grXJ o9viGrtSDbsbgtB V99Yr6FEBte53gJ awVjr1qTpYXwefF FsyiQEocXtLHJ4t yVgj7719ZYjiDbb wb51Yg4AhsoaPEA PtUwXawUtYop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 VCEdKhPpayuXuzJ Cg1FBDoTfDxRJeG 58iquvVu1dYP6aj crF2R9gJK7iKoTP ErccqNaFcuLYBLJ JVAj4cvX4pBuRb3 zvtLnDZa4Px6cBG nTvx6WpPu1sh5rV DZMtE5iWrMvGwsN BfnHRLA9iuQABAh U5v6hnZXE1awrXd ogbcDbQBu6Vvdcx 8ipM53xXNAoR2DE pvtjEqWfWiYbTzd dZiTnZR5zg7sBLF bt2uEz97nm9nsKT tnQCxFP2vpZi7CC XDXD6MRvv5aCLwF n27GbRkcoeBdLay L6tyFQFBTcDf9qT v2up6foL4gHKzmG BiWuNpLuWUHEdgu pdLCS3V4BTimELY 946pf6qcaaMeCFP CJE7bRSvpSwtxnF a9XxHCN6. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/.grin/main/slatepack/ed850a27-5058-4c42-8959-68a15870cc88.S3.slatepack

The slatepack data is NOT encrypted

Command 'finalize' completed successfully

State of wallet (1):

grin-wallet info

____ Wallet Summary Info - Account 'default' as of height 1015274 ____

 Confirmed Total                  | 4.877000000 
 Awaiting Confirmation (< 10)     | 4.877000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.000000000 

Command 'info' completed successfully

State of wallet (2):

grin-wallet -a issue16 info
Password: 
20201223 22:04:55.156 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201223 22:04:55.172 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201223 22:04:55.186 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201223 22:04:55.191 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201223 22:04:55.191 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201223 22:04:55.192 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete

____ Wallet Summary Info - Account 'issue16' as of height 1015274 ____

 Confirmed Total                  | 0.100000000 
 Awaiting Confirmation (< 10)     | 0.100000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.000000000 

Command 'info' completed successfully

Step 2 : receiver-initiated (invoice) flow invoice -> pay -> finalize

Start wallet (1) Tor service:

grin-wallet listen
Password: 
20201223 22:09:02.771 WARN grin_wallet_controller::controller - Starting TOR Hidden Service for API listener at address yo4lnvqdplp5y2k62vdfmc2owib3t3bxzetxulou2cmycmxh5bnsplqd, binding to 127.0.0.1:3415
20201223 22:09:04.662 WARN grin_wallet_controller::controller - Starting HTTP Foreign listener API server at 127.0.0.1:3415.
20201223 22:09:04.662 WARN grin_wallet_controller::controller - HTTP Foreign listener started.
20201223 22:09:04.662 WARN grin_wallet_controller::controller - Slatepack Address is: grin1cwutd4sr0t0ac62764r9vz6wkgpmnmpheynh5tw56zvczvh8apdszxp25w

Send invoice from wallet (2) through tor:

grin-wallet -a issue16 invoice -d "http://yo4lnvqdplp5y2k62vdfmc2owib3t3bxzetxulou2cmycmxh5bnsplqd.onion" 0.1
Password: 
/home/nick-test/.grin/main/slatepack/f1715c4b-944e-4cd8-b584-82d9ef4fee1d.I1.slatepack

Slatepack data follows. Please provide this output to the other party

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. k2WXxDYpXLXHK2J Tpp16zmdjQGhuk1 Gxfha2v8jF55ZUT odXZcmo7mznX7LL r2UgRKGypZohWUR 2DsxLV5FwDqCJNL AH2MvzzEWh8voSx C6RLnpyeijGwAqB NLK4nbQctpxj1C3 DuWLRBng69RoGS2 ViFqiL5qDHMsmsG Dc5xw3wypJ3PQfr 17GDH4k1cJnZWdL W4E8FnRByBEBpK1 5ZRNXKZ6Brd72HL VtJyGnJFfLosdUq 5jbEgHTXwU9fj9w DGK6ECPykZyMUwA G765BUWprJ67sBn MPkA9eFZ27. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/.grin/main/slatepack/f1715c4b-944e-4cd8-b584-82d9ef4fee1d.I1.slatepack

The slatepack data is NOT encrypted

Command 'invoice' completed successfully

Payment:

grin-wallet pay -m -i /home/nick-test/.grin/main/slatepack/f1715c4b-944e-4cd8-b584-82d9ef4fee1d.I1.slatepack -d "invoice.tx.resp"
Password: 

This command will pay the amount specified in the invoice using your wallet's funds.
After you confirm, the following will occur: 

* 0.100000000 of your wallet funds will be added to the transaction to pay this invoice.
* The wallet will IMMEDIATELY attempt to send the resulting transaction to the wallet listening at: 'grin17wykdnfdhx7wg3tkgaemaj3g8dxs4t547fdsyfax426xzrgc50ksyuj5es'.
* If other wallet is not listening, the resulting transaction will output as a slatepack which you can manually send back to the invoice creator.

Please review the above information carefully before proceeding

To proceed, type the exact amount of the invoice as displayed above (or Q/q to quit) > 0.100000000
/home/nick-test/.grin/main/slatepack/f1715c4b-944e-4cd8-b584-82d9ef4fee1d.I2.slatepack

Slatepack data follows. Please provide this output to the other party

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. 3Ju3gGrYciYHg3b naR16dzQEjntw42 BtYkE2dSkeYCNtm yKJoUvXQViKwbVw tXDiFcjTXQtc5fB xkwva58FUgXxjhA wPtqm7ozH9cthVj mjaBnJbxG8HMsjY UkwtynANPR5VQdz 24eumhF9xsfvxJP LGBb4FvuZ7zP8aB TbEouSRbaELJFP7 XKgLdDiFJH37GwZ HTs2xn84CmRvEAb NwrdvbZKw8tXtmE WNrmaYCxmrFtp3i c9hhxn8E4MDXqWQ 96pHUNDhvWzMwxm LJzkgSqNdyWSq2g ADJ8ERoc1uNZCGa onjmxfkR2Gcu82H GxYTnTadNxDsbYT ABnTHUwmWpNs19c sPrTr75UrGaTw7q omBDwBxQeHAPFVP S6ij1yKwb55R7Ng uDriXdyvFu4w8us WsTYZux1KfSoquK ZvkurjFz7a7FHg4 9bBn6ac5J7NAdaB FZ4pVSWVhJNsrMz 3XVvhZ9P1oHAyKu gwwdVW1i3tDLHKN mR48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HcxpcB g6ju6xdd92XFYQ1 rW39oG25sGCzcD5 BfZRCmgC98hsvM9 PCJc3BnvdNcV3yB B73Y7KdnxUHraU1 otufLLJJyFGJjL7 zZvSBUkHMWBtv8o 9DRase9LnBzRgFJ BzYmcvF291Q6auQ dUzLrw8Cy8qKKtM a5DhmJtabXS9sE5 p7Vfnjywmjtwqj3 zVEYDG8gTpREeP6 ta6QFygDmEMs5mV vPZuH9A2SthJbTc UUiFmuRm7aVbWen zrWmvEX7mG. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/.grin/main/slatepack/f1715c4b-944e-4cd8-b584-82d9ef4fee1d.I2.slatepack

The slatepack data is encrypted for the recipient only

Command 'pay' completed successfully

Finalize:

grin-wallet -a issue16 finalize -i /home/nick-test/.grin/main/slatepack/f1715c4b-944e-4cd8-b584-82d9ef4fee1d.I2.slatepack
Password: 
Transaction posted
Transaction finalized successfully
/home/nick-test/.grin/main/slatepack/f1715c4b-944e-4cd8-b584-82d9ef4fee1d.I3.slatepack

Slatepack data follows.

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. Lo34RbDNhu6ngfH Lm69jQevicrxMC3 z2AFfzQAxLVPkWQ fUbfkWCvASBxp1s dBNmkhhVCYyPrfs QYWAgo2xq3agQ7M mMpiNB1wDNSGwkS wgqFKUyHJEhcbEa 7UNAidEevhK7fTb N6oXXJHkGRunNh1 rRpDJxRoDtYtJcY 2hkmPPahF6bLXjW XAzLjHSSSSaPoU2 SFLawBaCaQu4zgT zdm3AfmX1Lxb61A pw5FzFQPotHQYBL LsADedvtTBiFEqc c2TvCQ2CmZ2W8pg dTZcETtPHNuxngm drf5xgi5cJ9KvCi cwvzogACVyeCP5z i86e94QNgCqX9eD oovdmJazHKevTSz ywtvoraCxSwuXgw igXkPaca63v6sUd cXApsYbgAys85yY iZLTAi1tbG7DaEv jDHqUAFU21gx4S1 W2Mm14cJAzicHpy J65aPFHg15K4tRz FSu6Z4gHthGEReQ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xz6T1kaB PDFZJcMRfuYob9J cPQQX3vUq43j74C iDsNQcPWLEorZv1 RFGrbHXQnerEMEk J4qonJ3WFoQYRHd qM8zoh753e9XZ9i atEZJQvBwPpd1Ea w3oKB6A8ke9xb2v qX2Z2o9XzXnyqPb wg8vqTHokmBUbNE aeMtThbEo4VJPsG qwkPcWDzUoJn2Fk 16HJF5w6xqxJJWk yvURXSS294YZj6k qLpoj3mTRo7c8q9 XRtDu5Yzhpw5666 NXgdQHXr1NDMbmF CE1kdo3X2GQZfoY 2XdZ8PphCFkiy34 R1YgK1kCEpstAKs KY7aNpbfx17pVZX 6t21767bfmsf163 VMfuE8RnyRrra7S Eouk7G39w5QTHKK iokcrCzpYb2Fw3X AQrVcbE2S2sG6ZB W7L2LxpPbK9gRVZ 6iyrvhdDCvn8CPd vVhUuPMYxJWUrFn KebHKtPADt3Gp1x uCcXLLBNp8fXtqz HA1Gv67JXj34WcP tJHZz7eg5FZMBpk bsaWhZyKACrWoRC C4sT5F22Wd9nLAw hUMtp5K9FW4ejfG n6LyEzeLEhmtY7K fvNe2eJqy9Bh1VC CoUer7nQQre4wGD GzVHjDuWMABojPm JzcdEbxPkrvdTR7 7ohaqmKXdhVrC2S ggrM2rmXBNoVm8y StPPEg2jqZB28Lw LqKccoYhqFDeuae US5xJgnx4LoheUJ TKaJ8quGCTym8dT SURu5oeawv15ama gZiqYoWM6kFJTnc YtdNxek15RG67kV hS4ZVZaDwx6QJEL EF86qDKoFKjdfiX Bfxyrbb729SvTYP vwYfxjCTb9DGve2 93dJVFr1LBucx3c Bo5KYNoEEzbPjUd gzVoRvn4fFWkkn1 CKUToWuzscfjkkE qLDGM2EHSrGp8Qu 5iJS95euWKdQGfv KwtzWopPd1PAx87 CbJUecQP4UdWrNx fmkyVgduPDg1337 EngWzPRCnjrU5ng qZ6PLZVoRmLprV8 FpSHznAQvas9noe cbf4HpqhAK5EpBc xZcnN8QBW34MJ1Q fpxM9KjT3rYBFSr V1smL4PwsvNCKW2 qvYVjquq. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/.grin/main/slatepack/f1715c4b-944e-4cd8-b584-82d9ef4fee1d.I3.slatepack

The slatepack data is NOT encrypted

Command 'finalize' completed successfully

For information, state of wallet (2):

grin-wallet -a issue16 info
____ Wallet Summary Info - Account 'issue16' as of height 1015295 ____

 Confirmed Total                  | 0.100000000 
 Awaiting Confirmation (< 10)     | 0.000000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.100000000 

Command 'info' completed successfully

Strange, wallet (2) total seems not to have changed. It should be 0.2

Conclusion

@marekyggdrasil
Copy link

@ndcroos the listener is run properly but send and invoice commands are not

I will assume you send from wallet 1 to wallet 2 and then invoice from wallet to to wallet 1, if that is not the case please revise the addresses

instead of

grin-wallet send -d "http://6oewntjnxg6oirlwi5z35srihngqvluv6jnqej5gvk2gcdiyupwzevad.onion" 0.1

you should run

grin-wallet send -d grin17wykdnfdhx7wg3tkgaemaj3g8dxs4t547fdsyfax426xzrgc50ksyuj5es 0.1

then for the invoice instead of

grin-wallet -a issue16 invoice -d "http://yo4lnvqdplp5y2k62vdfmc2owib3t3bxzetxulou2cmycmxh5bnsplqd.onion" 0.1

you should run

grin-wallet -a issue16 invoice -d grin1cwutd4sr0t0ac62764r9vz6wkgpmnmpheynh5tw56zvczvh8apdszxp25w 0.1

you do not need to provide .onion address, wallet should be able to find the receipient based on the grin address and at least for send it should complete entire process, as for invoice and pay I am not sure, maybe you can research it?

and one more thing, I am not sure how relevant that is, but just in case lets do it this way, please instead of two accounts of same wallet please prepare two wallets, you can initiate a new wallet in different directory using grin-wallet init -h

@ndcroos
Copy link
Author

ndcroos commented Dec 24, 2020

@marekyggdrasil, thanks for the review.

I still don't know about the invoice not completing before.
I initiated a wallet in a different directory.
For wallet (2), I had to change some paths in grin-wallet.toml to point to those of the grin node.

Prerequisites:

* Version : grin-wallet 5.0.0 RC1
* Linux debian 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
* wallet 1 address (account name: default): grin1cwutd4sr0t0ac62764r9vz6wkgpmnmpheynh5tw56zvczvh8apdszxp25w
* wallet 2 address (account name: issue16): grin1zygggqt5exf3zux7zaycgj8jv7gj005rhalewa3ap9kf3h74220q50mp8y

Step 1 : send funds from wallet (1) to wallet (2) using Tor: sender-initiated

Wallet (2) starts listening via Tor:

~/grin-wallet-2$ grin-wallet listen
20201224 09:45:43.293 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 09:45:43.303 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password: 
20201224 09:45:50.124 WARN grin_wallet_controller::controller - Starting TOR Hidden Service for API listener at address ceiiialuzgjrc4g6c5eyishsm6isppudx57zo5r5bfwjrx6vkkph6rad, binding to 127.0.0.1:3415
20201224 09:45:55.930 WARN grin_wallet_controller::controller - Starting HTTP Foreign listener API server at 127.0.0.1:3415.
20201224 09:45:55.941 WARN grin_wallet_controller::controller - HTTP Foreign listener started.
20201224 09:45:55.941 WARN grin_wallet_controller::controller - Slatepack Address is: grin1zygggqt5exf3zux7zaycgj8jv7gj005rhalewa3ap9kf3h74220q50mp8y

Send from wallet (1) to wallet (2):

~$ grin-wallet send -d grin1zygggqt5exf3zux7zaycgj8jv7gj005rhalewa3ap9kf3h74220q50mp8y 0.1
Password: 
20201224 09:51:28.065 WARN grin_wallet_api::owner - Attempting to send transaction via TOR
20201224 09:51:50.641 WARN grin_wallet_api::owner - Unable to send transaction via TOR
/home/nick-test/.grin/main/slatepack/7feec744-1521-406d-be9a-b746cf828694.S1.slatepack

Slatepack data follows. Please provide this output to the other party

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. QwEWWgJCccwvKb6 bZq2SRWfsdj276G hsp84pZkU9JWqQR zZrqmuS8hQKy5Gp ojTFB2bvVWKrtNj uzaRMD6r4nATDbn TuGyWKhpWwKuipN p3igPwytidkxc7A 8UedJeeHfawcGWq pL5hbSNWeJp3nFW heDraumgEwz6Rdw 1Fkmgsjg6ytth28 BcbrD2iH7EK5xq4 bT5PnEhXoCQb24s EZJtPE3EoDpJhw5 xKybfc1hp7NrJYn edpLqd4BUW76hhS qx5GiF8mJp7n4dK DUp1GidhfRNVvsY DtxMDbomrnPqpmv KePSo9i1jRH6nxU 5arVR5XvquiEDHD CCJMEvNNDFM9Juv porL4igVcZvJ4f1 dij1JQow2nXcsu2 Urp2KeAiYdgdEPZ QmRhyvRhGw4jMyb HJMRrLrptL3iaEX rjmGgjVEdeTCDgm n5VssxbQS5s9nC1 uuZ993DW4VQCH1j pbWfMnBU2XUXFkQ VPvkwk5zcK1jNNA qZqUgGFyMv38V2p i4BX2MH3iD7BLVd WWAFXnSCfKxGcm4 NoG4Ugnejqjd1VR QFgfMF9K8CPr7eP qfCsyxQkkhaF4EZ RsE4sbzm13hBckL 7vqVRpSKW58ZZVk BUuTHQxU53EZmGn wDjivXTJUSAM8ut W9N86GeuWXJwmCU vBvdY6FCKZphL5k TRZgxfkMbH7rwA6 nPwqKWja1mkQtbD YtbLaFSSy2gQqMq xzW2RQGESxM8Ffk v1PPYvy6prf87me XsHZk2N7HVTW9wr kAj6Q1qUhUk8. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/.grin/main/slatepack/7feec744-1521-406d-be9a-b746cf828694.S1.slatepack

The slatepack data is encrypted for the recipient only

Command 'send' completed successfully

Receive:

~/grin-wallet-2$ grin-wallet receive -i /home/nick-test/.grin/main/slatepack/7feec744-1521-406d-be9a-b746cf828694.S1.slatepack
20201224 10:01:55.864 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 10:01:55.903 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password: 
20201224 10:02:01.262 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 10:02:01.262 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
20201224 10:02:01.521 WARN grin_wallet_api::owner - Attempting to send transaction via TOR
20201224 10:02:30.785 WARN grin_wallet_api::owner - Unable to send transaction via TOR
/home/nick-test/grin-wallet-2/slatepack/7feec744-1521-406d-be9a-b746cf828694.S2.slatepack

Slatepack data follows. Please provide this output to the other party

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. 2QjqSdmsi94JmkK 6hZjNUcjFEiFYYG msCrjWcVZSCJSKC E15Wmdf5Dcrrp4s 1AkJKwHZiBktW8k DQweNTE6WaWDGeS a2H15du33PqPjbU MxoiQgmCdWQW297 cp621MGKa8mHKXf 6CKSQjo5jj5Kr8g kJoPB1qKZ8NMoYc pdqsESX9J6btyxP 8waVvpRWVxyruqs DEV1yEsv1wLkmeM ntX6mJGpvMdVdKc t273k6dEq6W5EXY 7mfJgFvwd7WppwK D2ncyLTVkKy7ufS Wf7hHuHtKS6HYH9 ARUoS5R2eqCz9JE 2afDfUB5AKMkoAB 5Umy8Cvvny2BmpZ XSLb9EUNPSfz5n3 urQ4M563jWL4rNE Hjga3SWNSdqRe9N D62tBjXcq4u3hgQ 3n3Gwmn1U1KcAQW srQQ6ZrgQfWksJV Y63nj72GV4SZR3q 4MC13dJ3Wrm6Hjr y6dun8MtHRBkpk5 tGU7YFWRzoxosrM kdnWUe4Xabydb1U fo2q59W2QWWTHnB LuS2mpFFkBkeYnD uhPFRvr1HRE2tbS gKk8AWauUipuGD4 fDpqoeasKKeEbnL GTcjQEXGySGsV8z RgVM1epeEQbQdry BeUz1bvzm7wzEWe exSvqTam93P5Efh 2gt2u7whJgukBYW En9AknyhbePHaW6 indKPDpZCGvuwA7 mnzE8GA8uhBowfq LwetdLQ8NGksDsA xKqeD4erhrbUZJV W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ffhM4AX6RpQ1E 6bpeZbqzH9FjsNL rLfnBpi9RvN3BWz DWiikzoTMsfCSCF E3TcmqAPZqsTXD1 S7sCGmfaCDCMGys i5eVxWU2ziAXMwq 1cTYBgw8xaQjvo1 uo8Sgjbs8ReiGsV qd9gNsDnN1AiiLt eKb3BALdYyE2Bdv 9k9ZiUiKEHJkxQE 6aJsGLyXdP1PF4Z b. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/grin-wallet-2/slatepack/7feec744-1521-406d-be9a-b746cf828694.S2.slatepack

The slatepack data is encrypted for the recipient only

Command 'receive' completed successfully

Sender finalizes:

~$ grin-wallet finalize -i /home/nick-test/grin-wallet-2/slatepack/7feec744-1521-406d-be9a-b746cf828694.S2.slatepack
Password: 
Transaction posted
Transaction finalized successfully
/home/nick-test/.grin/main/slatepack/7feec744-1521-406d-be9a-b746cf828694.S3.slatepack

Slatepack data follows.

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. CkEXykzDp658uoU cyf5xTwF5ZAcWnq pRhbR4VCLhJYp9z L3CAFrxKzT5mXBW ssDiY9SMTYroEvZ VV6tox18kY6dnLW gfZdgf6AUoyHYNo NCn43TPGcMkppz3 WQ5eFzimBFHuC9S 5vWtRRa5cBoPf8Z Q8VmgU1DhLHWpV3 k2e5LHEVPTFY6RE KfQ5Ua5himjEe5N 1qt33zzhwrbJ6CF apQpZMWmj2xHui7 wHVBRHdeKKMUJZ2 T4cjxrZHDjvbEpA D3TPtv6QPi2RLge rXgmJcSAMSMN2Re eZw6kwsLVPNrP5i 2nEoaVeMGCsPu1Z rC881EmeizTk6bA FvgPbHErsUDnjmo 5HPMXW6pmPukwQy NKqQrbMHPEiKCuD vziSiDNr19b1CMg eaBHW7QJZpZLFfg JnghZ289N2KzRkN mUuXEwFetxrg7Se 1ZDP7UUq3ehWP4u V4MYyKjsXQm9QsZ xEBCsCwBpgEkKFi XFRz3crnuWFT4uJ G3YAExFCy8wzS6x FDj2isCzYawRXvY iBuaSnVeVQieCC1 AjKmWT4VHoDLmsB Tc6BUEze5bns3G5 1Z8XUV9xPD71psd jzn23LSN5hE3SiM SfpgG8gHNjah663 MVLuDtFsPeBeCXA uAr9b8fdXTPMj3e uNeefJiYd6TcAJG 1VeXRiq1nrSyku1 qaLGoyTA84Rmsmj yWG1kYUWtQi6Syi CVMvtT23xaESDDM LMaW8Aiqh3NHTkq kT78bGxHNwxwomF j9gx6KHb3vogKy5 pddtT5y91DH5EoL yHnXuWcidthssc2 5dNkvCWkaYaR2N5 9cX1Lrm58BXHU3Y 1PtWPfYVj6scBcH GiDZo8hpEfsyiyB Kbo7suUJMxpmvbq zQ6Dnx24QU9GB5s cL1WjSxGuJ3bxmG tDjEK2FucFZqzeJ rDNTv7vzgHsWkJ1 kE62BXXw6uGR991 N9471DEzU38KC28 mgDEsCEkN3ydNBN VAvg4DVDHuzGorD CjARmdyvJe1Ws2p Dm952kb1YR5wtK3 2RukhPMezQqzDEa VUYjXidWRJdXqtH fXfywNxo88M27s4 f9DQd4jhxEEwDcb Uz5gXAriVfT9mzp ubWcv3tdGKeCuUE VcwxixerMfbSAYS qRZLDfCdMGoQCH3 GzcnMtGFZ7XhTC5 dWdTVhRJKERMqSs foQGjxe1fyu1rEG SXb2gfbqZVqA3j9 eym3yoUbKMjnpYx RStSMKS3Lamy3hm 4Xiv7Bd982nEVWd AknEUpigHmNDpZW ciaX2ELsmkRWHNH AgcEC13Ck9Rc7DY UtYmrcA5b6bXvfF kwxB91JVi8923VN 3Nj4y4bHUikYoqP RpsBpCixdEtt8bD pXAQHdwBSXkxyfd RtQBFnSSthAs4F3 xEgqDKDQZvawse7 JZtHtnqRm8w22xk jk9tafSFCLUGewn kcsD9JDwm5BPhyT fH42eogfCCubST3 BaQobcJjzycdg8J uHN3xJB8zYE2oj5 nRkQccRFtpjYDXx jL2Zab5iT87kcL4 LHcGPcRFtGksw4s cfT1MStiSConuMa 4g2DKAycAFRtDJ7 Vvak7uprenafEsZ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5AzhuEK nvdBF3QJHHXFqzj MmdsM1kJ68Qh6T8 c6Zu9r8tirLw3HH 7NG19ZzMzsyuRoS ASsCdc7EFAyuCJE L2uy4yrRbda7C5o NFYLN8HbPv7e5P3 DUqtH6hVYQ5Wkdw FFNRQHEWRvjpmYk 5NqhQ8DYAiubyao c19fStQMSe8fvwy aCsYsNf. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/.grin/main/slatepack/7feec744-1521-406d-be9a-b746cf828694.S3.slatepack

The slatepack data is NOT encrypted

Command 'finalize' completed successfully

State of wallet (1):

~$ grin-wallet info
____ Wallet Summary Info - Account 'default' as of height 1015984 ____

 Confirmed Total                  | 4.730500000 
 Awaiting Confirmation (< 10)     | 0.000000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 4.730500000 

Command 'info' completed successfully

I realized that the errors I had with running commands for wallet (2) were due to the .toml file not having the paths to the node. I changed this at this point.

State of wallet (2):

~/grin-wallet-2$ grin-wallet info
____ Wallet Summary Info - Account 'default' as of height 1016002 ____

 Confirmed Total                  | 0.100000000 
 Awaiting Confirmation (< 10)     | 0.000000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.100000000 

Command 'info' completed successfully

Step 2 : Wallet (2) sends invoice to Wallet (1), Wallet (1) pays, Wallet (2) finalizes

Start wallet (1) Tor service:

~$ grin-wallet listen
Password: 
20201224 10:34:29.145 WARN grin_wallet_controller::controller - Starting TOR Hidden Service for API listener at address yo4lnvqdplp5y2k62vdfmc2owib3t3bxzetxulou2cmycmxh5bnsplqd, binding to 127.0.0.1:3415
20201224 10:34:32.613 WARN grin_wallet_controller::controller - Starting HTTP Foreign listener API server at 127.0.0.1:3415.
20201224 10:34:32.624 WARN grin_wallet_controller::controller - HTTP Foreign listener started.
20201224 10:34:32.624 WARN grin_wallet_controller::controller - Slatepack Address is: grin1cwutd4sr0t0ac62764r9vz6wkgpmnmpheynh5tw56zvczvh8apdszxp25w

Send invoice from wallet (2) through Tor:

~/grin-wallet-2$ grin-wallet invoice -d grin1cwutd4sr0t0ac62764r9vz6wkgpmnmpheynh5tw56zvczvh8apdszxp25w 0.1
Password: 
/home/nick-test/grin-wallet-2/slatepack/1540fce8-1f6b-4e84-bff3-e0f4a7351020.I1.slatepack

Slatepack data follows. Please provide this output to the other party

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. 3Qa1MPgy4gWxuTA 4F2PdgQWZNnnMFk mHSwejWJiEkSz9Z UaJjo5Ubf2YPyFY JbruMQgY9bERHqA fKBAwN7YPKqijjz mqLJ97vSsM6D2EC 7NaSUE3ii83Q9nq ZAee7rKT94E5t2N SHnRDhUYJHjcDNx Fr5xJtKcG5utS16 TjSqaJz1bbUa3U2 zrUCqDn4STeh7Mj PsM1Uknc8448fFj eSft1uqDmUEybwV 8dUen4sKZYraD2y urvhVekQibK1QYA pLmgq3QD8vd4r1t BjQjtUcnTgXPFnX bH3g6V6cV9WSwoi eXkLE6eNsVzzWWg EhbGVKCvwJayd4p xPhaeGTYkVgVr8M pM13jr4pXJYxvEx Qt4ZTCjLWLmAKa8 PQXQ3LCPN3XquP4 6DecjPvjBUpi7bT yQF83MSWviwpA5p zGqG2bT2P7T6vjw wnd99Ui3bBP5jU9 iWfWG2HuD6391Rc nd3bm3LJLT97hSg aHscA3Rdp8JDfPE hk7oTCBTYdv9S7D doagrpojaNf7PXz Jx3A4utCCKzNdHo 4pr9CaryXsiEZAs 8FHhkawhHwf1738 BWAtNMVesn37Qzi 32YMH4nxL25RVfE mrF1hUHFwuvcUrx RWPuBNVPq1a8oU1 fnedsfye5ud. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/grin-wallet-2/slatepack/1540fce8-1f6b-4e84-bff3-e0f4a7351020.I1.slatepack

The slatepack data is encrypted for the recipient only

Command 'invoice' completed successfully

Wallet (1) pays:

~$ grin-wallet pay -m -i /home/nick-test/grin-wallet-2/slatepack/1540fce8-1f6b-4e84-bff3-e0f4a7351020.I1.slatepack
Password: 

This command will pay the amount specified in the invoice using your wallet's funds.
After you confirm, the following will occur: 

* 0.100000000 of your wallet funds will be added to the transaction to pay this invoice.
* The wallet will IMMEDIATELY attempt to send the resulting transaction to the wallet listening at: 'grin1zygggqt5exf3zux7zaycgj8jv7gj005rhalewa3ap9kf3h74220q50mp8y'.
* If other wallet is not listening, the resulting transaction will output as a slatepack which you can manually send back to the invoice creator.

Please review the above information carefully before proceeding

To proceed, type the exact amount of the invoice as displayed above (or Q/q to quit) > 0.100000000
/home/nick-test/.grin/main/slatepack/1540fce8-1f6b-4e84-bff3-e0f4a7351020.I2.slatepack

Slatepack data follows. Please provide this output to the other party

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. 2UeHxDj2qgm8JpU 8rZxyZWSyDPeNpi NZauCLUE2rTwPjH 1Fk9jgVW7qZM5DP 8hVkkcDVNvjfHP1 oda9ZUVWx1dg4Z1 7JD4dGUY1U2LfFU yjKw8CaTkjmXx6t mkzE5nmeBYptKSS zVNUnpFxEU1XMtq dnML7v5xrjUEABE SrnZYgNzYEQ3wKL 4XSDFtPj3fzKCN9 SLCgSJwru97rXN1 ABPmh8BVhPBPHvT h6iubdSKki74V5k UDVyQgYKLFbZuAq mrBBt6YhPCLQGV5 FY8e3SyCnh1LdCg bFDfn3iScNzXur5 2LQN56vH5q8b85h 5A6kAJhvPMh7zXA Q3sCJGZfKShe4Dp WDDt1ujv57ewmJt cGWTpsQ5Vnm7HGT f7VNruJos7tSnUK sXNQx1UoX8pNngA BaSGULF2yZrzGRJ mgGyVDVDnNTgQ3c ZxSKbBYajUXb3Nu wRsLBZ7iZtVgqhU uVpgbwsPbcc6zFk aDSPEZDHAzJLiir fi4RjeZ3nqB3Y7j de2YvRNdUWFBEe7 wmKuXGJEhND6vEv dYK6FpUXigXCwHq NX2iPBsmSABno55 96docaJa2GVPuDV kwaoGCH5Kq59v3B ejQrLGrFiLHLHk6 QWog1NpivCYHtxQ xJp3qLPwWrJteHz aKxj32nGT8vRxJG cLi1pJBhnZPadqy KfUGL7xShsB2gQx hAtSfwyXwjSDoF7 5HtEmuS6hG8B8aL 4HcdUzXCHF5geCo QohYbgDyifGPSTx 3W16z44uzvq8muc 9w94aVqCvQexhom YpPcHRaZqXa6AY1 MUvKjqdkW7Dm5MF r2FF3NnLnoUaddx snY1H8wA6oraFBV r6oWEb2PzbStsJ8 5fTheQdHRbGcBDk phfJL9Hu4dtX3LP wW8irHuMJGrxsMr HhXaCkDDbzvKr3G Pd5QJ9qZRhXkC4f UT7MUZujZFkufy8 GWazmTpqXveZmXD CaASE2MZvhgs6Sj QzYf9eFQ5RPqJLA QVJHAifmqSwFnWx uswvC53nDcvJneu dzhA4xonasNnxmj fVCPEkxCeW6FDvv KAD4Phd6GXdrC7E rwG8Xdq5dPPHXJZ JwfQNbZC3emo43C vuTDmodWQ8MoKsA cpNziChvvax3prq Rr8byccywTmBvL8 R4aDJGbsPHXSNcg Qp329ucHje9krfb M6bjW3xHkqyGXap yv4qmNicP581vkj 2VfbLEXXo7cSsdq 7FWfjUkXeUuzKhb RUuGj9sQzmmsV2K Z1yZPBh9Q9TsT37 L3WLrgDiZapGSye kS4L7Lj8hydgeTL XaNNoU5U2j1M9ok QWx4ojiRvQ1TxMg CTHdq44hcnw9hRj z4DgZStiBm9C4V4 vpzkn3icBoJrQJp 7jabYor9Fbqbpgm XwknBWiwPmx5taK z11vPNbPrLgtyH6 5HSpHHK8k8canF2 PBJjkXVQEeaAQvf ZTrukDd9HdDEM88 2ewdVQ2Ht7eCVFa GMsWd6nCWqGLwHD gacQSF2eBeLEzoT JpM2iTGSauFYfcB TJCVpDzqxNxKvix G4VDXKBfVuNvBW5 gUjWm8UKHnhFai6 7LGoTfAMVvRE8bP H3c3qW93vBkSxvP kES7Fb3VdU4Cakr wEm9WKWWj3ZHBks 5XNojzVSSiMGW8p xTwGHmF3S4vsq4m j3i5Ciozy33hfJT 3gPNwu8VUubAxro 8GHQDubBxCkjcTv 1xZYF7AURfBQ3S9 yV5xqJK9r4pKjHR xSGubtRQcYM5own xVqsetjSMsGJDgu cRMmKx82Uh27Dob pm2BiccRJUcnqqH qeQQzYAdWSG4aUs TCKxjURTXvqM3Aj 3CERr6zxmkszQF9 KMNCiFi9PZzKqtN 4gAXLEVLjtBmNNT fr19AvaPeL1aHh2 tEMbApawbZWQuZL Soq9bBp42SQZ2bX N2. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/.grin/main/slatepack/1540fce8-1f6b-4e84-bff3-e0f4a7351020.I2.slatepack

The slatepack data is encrypted for the recipient only

Command 'pay' completed successfully

Wallet (2) finalizes:

~/grin-wallet-2$ grin-wallet finalize -i /home/nick-test/.grin/main/slatepack/1540fce8-1f6b-4e84-bff3-e0f4a7351020.I2.slatepack
Password: 
Transaction posted
Transaction finalized successfully
/home/nick-test/grin-wallet-2/slatepack/1540fce8-1f6b-4e84-bff3-e0f4a7351020.I3.slatepack

Slatepack data follows.

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. TS87Q7YAXZr7Ghs jyabziKcZsSa1vA jj5GAVX6L31LDiV fCVuLRAEAf7Q6Lk 4YqxNvbBP6FKuFr K39qpLWjDt2rafg EqZditxZwAvYeGa P6r3nuQS62M7QQc 4QMhV7QnB1mGJYz 6QvHWXsgCtp8FRx sXC9LYWcSnSe3ut 26RTH2dmimaqMsA cSYNgZYAC45Fajs GghYEtWYbjRDaCW Byg7BmGpkJkE7gY zQ8e2NGvH5AwVxZ jUUtZvaZ44VGZ1u THFoigd65FSuuRM at5DBBXBQGS8Kqw PVywcwxKNKMoQDX j3BnZ2iZyDitKvU LuxqRpYukFbRGe8 pDSb6DygByDajcV DLwJDdupTetKM2L P2vwjq3yY4Ck8Bg wM46FbnCiYnFZvF dy1YuerTEi3qVUJ kCrqVdij8V1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oH3st AHSvh7cKAicbovU SM6pamZ1bqJAeKf jbiM3eNDaruEWRQ d7XZDLXUGmpJnVp VpDaKTq4. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/grin-wallet-2/slatepack/1540fce8-1f6b-4e84-bff3-e0f4a7351020.I3.slatepack

The slatepack data is NOT encrypted

Command 'finalize' completed successfully

Wallet (2) state:

~/grin-wallet-2$ grin-wallet info
Password: 
20201224 10:46:35.136 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201224 10:46:35.265 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 10:46:35.279 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 10:46:35.289 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 10:46:35.289 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 10:46:35.290 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete

____ Wallet Summary Info - Account 'default' as of height 1016014 ____

 Confirmed Total                  | 0.200000000 
 Awaiting Confirmation (< 10)     | 0.100000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.100000000 

Command 'info' completed successfully

Conclusion

Both flows seem to run as expected.

@marekyggdrasil
Copy link

I don't think it worked out... I see in your output there is

20201224 09:51:50.641 WARN grin_wallet_api::owner - Unable to send transaction via TOR

Please take a look at what I do, in this example Alice sends 0.1 grin to Bob.

Bob runs the TOR listener

$ grin-wallet -r "https://grinnode.live:3413" listen
20201224 11:27:15.349 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 11:27:15.349 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password: 
20201224 11:27:17.041 WARN grin_wallet_controller::controller - Starting TOR Hidden Service for API listener at address 4ib7l3tafzers3id4qphklgukawdqulyykcn3ewa4l6f2olb3jnxesad, binding to 127.0.0.1:3415
20201224 11:27:19.268 WARN grin_wallet_controller::controller - Starting HTTP Foreign listener API server at 127.0.0.1:3415.
20201224 11:27:19.268 WARN grin_wallet_controller::controller - HTTP Foreign listener started.
20201224 11:27:19.268 WARN grin_wallet_controller::controller - Slatepack Address is: grin1ugpltmnq9ey3jmgrus082tx52qkrs5tcc2zdmykqut796wtpmfdsrk6yj9

Alice sends transaction to Bob

./grin-wallet -r "https://grinnode.live:3413" send -d grin1ugpltmnq9ey3jmgrus082tx52qkrs5tcc2zdmykqut796wtpmfdsrk6yj9 0.1
20201224 11:33:01.790 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 11:33:01.790 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password: 
20201224 11:33:06.241 WARN grin_wallet_api::owner - Attempting to send transaction via TOR
Tx sent successfully
Command 'send' completed successfully

Bob stops TOR listener and checks balance

$ grin-wallet -r "https://grinnode.live:3413" info
20201224 11:36:05.314 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 11:36:05.315 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password: 
20201224 11:36:10.133 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201224 11:36:11.092 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 56% complete
20201224 11:36:11.099 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 56% complete
20201224 11:36:11.106 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 56% complete
20201224 11:36:11.113 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 56% complete
20201224 11:36:11.735 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 80% complete
20201224 11:36:12.351 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 97% complete
20201224 11:36:12.851 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:36:12.880 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:36:12.880 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:36:12.881 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete

____ Wallet Summary Info - Account 'default' as of height 1016058 ____

 Confirmed Total                  | 0.650000000 
 Awaiting Confirmation (< 10)     | 0.100000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.550000000 

Command 'info' completed successfully

As you can see, there was no need for handling slatepacks... Could you try few more times, dig a bit and find why it didn't work?

@marekyggdrasil
Copy link

An here is how to do the invoice via TOR, lets say Alice issues an invoice to Bob for 0.15 grin, first Alice runs the invoice command

$ ./grin-wallet -r "https://grinnode.live:3413" invoice -d grin1ugpltmnq9ey3jmgrus082tx52qkrs5tcc2zdmykqut796wtpmfdsrk6yj9 0.15
20201224 11:43:32.744 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 11:43:32.744 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password: 
/home/marek/grin-wallet/target/release/slatepack/26388e36-db94-4f31-b2fa-5418d2dad605.I1.slatepack

Slatepack data follows. Please provide this output to the other party

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. 2FyQ7mCg88Rae1P QzX1hcAaiBWm8nx fzjZdPWWXR9rE7M Azk6VyyvzoYJhRE YL7dNJNRA5ehdqk ecnYZoTNJWZtubQ mHHVV6CBUvYendF HRoFUWZiLUoGDx2 JSFtnTUxBiDuzc3 mESbvL9iM1i2RgJ iPHn4XN4rz4AbH8 nG8n8D2xGuQTA9d 6LWj5x9GQ1oijP2 XQSvSw6wpwgxyF7 NBGML33nrGAKtkP W1o9r8aeNQq7hs4 rRNvhDj5kaivFfq PjiQ1noHgwhnRYm yD8ED6MpggeoHPc yMd2F3XTbefo7VL w4xHadj1jhFJVu2 JZtQhJxFQ9QwvyB L95kzPjdLcpbuxS HRANG7kPpREjNvt U1A1fFpNWJN9ELB NDxvezL2iT2Uivg NkRpeawW8w6Arfc 8ssmSJqJwrMdb7S BTRJ5MGxgRSQQb8 dhXM6teDJ4AGW1c czjRvjvgDkCjfPu DPAyc1P1rKDXRu3 4Kh8XhrQRku8CQj KTsACMbQLNNEYFi t6cqquoMWNR8YN3 irViKf8gKndKATt ojR873UmCHg4d1s D9FpYkekANB1ArV DnQFT3V7geYikTF KZbpX8wrbgg8SSN QMnEydehoGiJxaf WuBEgYiaW4Jxa3F K4hof8SVCS81gZW zU8UMkaYwZJwzhv LKSR4WN1thG7xJQ 3KR4K3mdXdpX1mU cXb. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/marek/grin-wallet/target/release/slatepack/26388e36-db94-4f31-b2fa-5418d2dad605.I1.slatepack

The slatepack data is encrypted for the recipient only

Command 'invoice' completed successfully

as you can see, slatepack was provided so the process is not completely automated as it was with send command,
right after that Alice runs the TOR listener to be ready for Bob running pay

$ ./grin-wallet -r "https://grinnode.live:3413" listen
20201224 11:44:54.694 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 11:44:54.694 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password: 
20201224 11:44:57.283 WARN grin_wallet_controller::controller - Starting TOR Hidden Service for API listener at address 7hz7c2fad7b3f4turqu7r2u4tlfuqxuo3ccuwnu67c5dxv5amyc2fgid, binding to 127.0.0.1:3415
20201224 11:44:58.706 WARN grin_wallet_controller::controller - Starting HTTP Foreign listener API server at 127.0.0.1:3415.
20201224 11:44:58.707 WARN grin_wallet_controller::controller - HTTP Foreign listener started.
20201224 11:44:58.707 WARN grin_wallet_controller::controller - Slatepack Address is: grin1l8elz69qrlpm9un53s5l365unt95sh5wmzz5kd57lzarh4aqvczsj3rham

and now Bob runs pay command with the slatepack provided by Alice

$ grin-wallet -r "https://grinnode.live:3413" pay
20201224 11:45:26.505 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 11:45:26.505 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password: 
Please paste your encoded slatepack message:
BEGINSLATEPACK. 2FyQ7mCg88Rae1P QzX1hcAaiBWm8nx fzjZdPWWXR9rE7M Azk6VyyvzoYJhRE YL7dNJNRA5ehdqk ecnYZoTNJWZtubQ mHHVV6CBUvYendF HRoFUWZiLUoGDx2 JSFtnTUxBiDuzc3 mESbvL9iM1i2RgJ iPHn4XN4rz4AbH8 nG8n8D2xGuQTA9d 6LWj5x9GQ1oijP2 XQSvSw6wpwgxyF7 NBGML33nrGAKtkP W1o9r8aeNQq7hs4 rRNvhDj5kaivFfq PjiQ1noHgwhnRYm yD8ED6MpggeoHPc yMd2F3XTbefo7VL w4xHadj1jhFJVu2 JZtQhJxFQ9QwvyB L95kzPjdLcpbuxS HRANG7kPpREjNvt U1A1fFpNWJN9ELB NDxvezL2iT2Uivg NkRpeawW8w6Arfc 8ssmSJqJwrMdb7S BTRJ5MGxgRSQQb8 dhXM6teDJ4AGW1c czjRvjvgDkCjfPu DPAyc1P1rKDXRu3 4Kh8XhrQRku8CQj KTsACMbQLNNEYFi t6cqquoMWNR8YN3 irViKf8gKndKATt ojR873UmCHg4d1s D9FpYkekANB1ArV DnQFT3V7geYikTF KZbpX8wrbgg8SSN QMnEydehoGiJxaf WuBEgYiaW4Jxa3F K4hof8SVCS81gZW zU8UMkaYwZJwzhv LKSR4WN1thG7xJQ 3KR4K3mdXdpX1mU cXb. ENDSLATEPACK.

This command will pay the amount specified in the invoice using your wallet's funds.
After you confirm, the following will occur: 

* 0.150000000 of your wallet funds will be added to the transaction to pay this invoice.
* The wallet will IMMEDIATELY attempt to send the resulting transaction to the wallet listening at: 'grin1l8elz69qrlpm9un53s5l365unt95sh5wmzz5kd57lzarh4aqvczsj3rham'.
* If other wallet is not listening, the resulting transaction will output as a slatepack which you can manually send back to the invoice creator.

Please review the above information carefully before proceeding

To proceed, type the exact amount of the invoice as displayed above (or Q/q to quit) > 0.150000000
20201224 11:45:49.444 WARN grin_wallet_api::owner - Attempting to send transaction via TOR

Transaction paid and sent back to initiator at grin1l8elz69qrlpm9un53s5l365unt95sh5wmzz5kd57lzarh4aqvczsj3rham for finalization.

Command 'pay' completed successfully

the rest of the process was done via TOR, let's check Bob's balance

$ grin-wallet -r "https://grinnode.live:3413" info
20201224 11:46:41.030 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 11:46:41.030 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password: 
20201224 11:46:43.952 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201224 11:46:44.793 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:46:44.812 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:46:44.819 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:46:44.819 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:46:44.820 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:46:44.843 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete

____ Wallet Summary Info - Account 'default' as of height 1016077 ____

 Confirmed Total                  | 0.676500000 
 Awaiting Confirmation (< 10)     | 0.026500000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.650000000 

Command 'info' completed successfully

and Alice balance

$ ./grin-wallet -r "https://grinnode.live:3413" info
20201224 11:46:28.711 ERROR grin_wallet_impls::node_clients::http - Error calling get_version: ResponseError error: Cannot parse response
20201224 11:46:28.711 ERROR grin_wallet_impls::node_clients::http - Unable to contact Node to get version info: Client Callback Error: Error calling get_version: ResponseError error: Cannot parse response
Password: 
20201224 11:46:33.810 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201224 11:46:34.648 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:46:34.666 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:46:34.674 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:46:34.674 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 11:46:34.676 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete

____ Wallet Summary Info - Account 'default' as of height 1016077 ____

 Confirmed Total                  | 33.456000000 
 Awaiting Confirmation (< 10)     | 0.150000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 33.306000000 

Command 'info' completed successfully

as you can see it worked, could you please repeat it?

@ndcroos
Copy link
Author

ndcroos commented Dec 24, 2020

I tried sending again using Tor. First it didn't work. Then I reinstalled Tor, restarted the node. Then the issue went away. But I don't know what the underlying issue was. Maybe an old Tor version?

Prerequisites:

* Version : grin-wallet 5.0.0 RC1
* Linux debian 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64 GNU/Linux
* wallet 1 address: grin1cwutd4sr0t0ac62764r9vz6wkgpmnmpheynh5tw56zvczvh8apdszxp25w
* wallet 2 address: grin1zygggqt5exf3zux7zaycgj8jv7gj005rhalewa3ap9kf3h74220q50mp8y

Step 1 : send funds from wallet (1) to wallet (2) using Tor: sender-initiated

Wallet (2) starts listening via Tor:

~/grin-wallet-2$ grin-wallet -r "https://grinnode.live:3413" listen
Password: 
20201224 13:34:02.439 WARN grin_wallet_controller::controller - Starting TOR Hidden Service for API listener at address ceiiialuzgjrc4g6c5eyishsm6isppudx57zo5r5bfwjrx6vkkph6rad, binding to 127.0.0.1:3415
20201224 13:34:06.447 WARN grin_wallet_controller::controller - Starting HTTP Foreign listener API server at 127.0.0.1:3415.
20201224 13:34:06.457 WARN grin_wallet_controller::controller - HTTP Foreign listener started.
20201224 13:34:06.458 WARN grin_wallet_controller::controller - Slatepack Address is: grin1zygggqt5exf3zux7zaycgj8jv7gj005rhalewa3ap9kf3h74220q50mp8y

Send from wallet (1) to wallet (2):

~$ grin-wallet -r "https://grinnode.live:3413" send -d grin1zygggqt5exf3zux7zaycgj8jv7gj005rhalewa3ap9kf3h74220q50mp8y 0.1
Password: 
20201224 13:36:09.136 WARN grin_wallet_api::owner - Attempting to send transaction via TOR
Tx sent successfully
Command 'send' completed successfully

Wallet (2) checks balance:

~/grin-wallet-2$ grin-wallet info
Password: 
20201224 13:43:27.210 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201224 13:43:31.292 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 13:43:31.301 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 13:43:31.320 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 13:43:31.321 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 13:43:31.322 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete

____ Wallet Summary Info - Account 'default' as of height 1016186 ____

 Confirmed Total                  | 0.300000000 
 Awaiting Confirmation (< 10)     | 0.100000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.200000000 

Command 'info' completed successfully

Step 2 : Wallet (1) sends invoice to Wallet (2), Wallet (2) pays, Wallet (1) finalizes

Send invoice from wallet (1) to (2):

~$ grin-wallet -r "https://grinnode.live:3413" invoice -d grin1zygggqt5exf3zux7zaycgj8jv7gj005rhalewa3ap9kf3h74220q50mp8y 0.1
Password: 
/home/nick-test/.grin/main/slatepack/54fc8615-90b9-4066-8eb9-387ecec78025.I1.slatepack

Slatepack data follows. Please provide this output to the other party

--- CUT BELOW THIS LINE ---

BEGINSLATEPACK. 6Ttj8x9pMHzZhkf eqSEu8AXtCHd13U NnGLPm5dwtb9Wxt iVZAWiZ8r5QCGMW QAd28qrUmrrhcTj yCkg1sBwEjyzXMv SsDahoxgGJo3tET y75eAbFVinsbk5o iJwjFX82b9sPgRb w1k9jW4UG1K8q87 ZhiiNuo9bJTHxAA yaqbemDGxMkPEE7 WvAwgj1sYwfyvHg DB6zXMDhDtsJYg7 N4SZ9G9rGnRw3Jp QyxQvH8c33Vc4Ac jxS5Maab9RKAApM byV8cYkNLED3p9R QmaihHFhqTUouzi KsCgxaA4hNi7XvB 3xMP4uu5b25Lnt2 RzCe8bvFtqyZhJL uxW6vsG4hLf25Se jX4XSVFAMr5gvU9 K3bVMqpkpLDzW2t 9WS36jNk6P9Atuv GzLDJ3zpqNpWniY JyiHQnaUr3QALtD dvYVZ5QAbC7T2J4 1V8dEJNGqBTyyUz Ci9Jfx1oD1ULf2y aHXuwDVaUtNXMLk zG1XvmMKTUr1FBB XjvKMCo1sX1n7G7 86keBhPEo3DJg5s FeiJ5PKUFSEapEX EVvB8xBYduhZr3R xn8oshrfZ9dS9w7 bp9shWDCYVJZHY3 d63AM3TgxzCfnUY 5a3onpsim1n3BPn BQkeW9eaVBUg36A gEy73y6buZLsder 5gZaCEkX9gGBLHB f4ydvYYnvDqgUxr CnejoV1xsKkvHdV. ENDSLATEPACK.

--- CUT ABOVE THIS LINE ---

Slatepack data was also output to

/home/nick-test/.grin/main/slatepack/54fc8615-90b9-4066-8eb9-387ecec78025.I1.slatepack

The slatepack data is encrypted for the recipient only

Command 'invoice' completed successfully

Start wallet (1) Tor service:

~$ grin-wallet -r "https://grinnode.live:3413" listen
Password: 
20201224 13:56:28.390 WARN grin_wallet_controller::controller - Starting TOR Hidden Service for API listener at address yo4lnvqdplp5y2k62vdfmc2owib3t3bxzetxulou2cmycmxh5bnsplqd, binding to 127.0.0.1:3415
20201224 13:56:47.116 WARN grin_wallet_controller::controller - Starting HTTP Foreign listener API server at 127.0.0.1:3415.
20201224 13:56:47.210 WARN grin_wallet_controller::controller - HTTP Foreign listener started.
20201224 13:56:47.210 WARN grin_wallet_controller::controller - Slatepack Address is: grin1cwutd4sr0t0ac62764r9vz6wkgpmnmpheynh5tw56zvczvh8apdszxp25w

Wallet (2) pays:

~/grin-wallet-2$ grin-wallet -r "https://grinnode.live:3413" pay
Password: 
Please paste your encoded slatepack message:
BEGINSLATEPACK. 6Ttj8x9pMHzZhkf eqSEu8AXtCHd13U NnGLPm5dwtb9Wxt iVZAWiZ8r5QCGMW QAd28qrUmrrhcTj yCkg1sBwEjyzXMv SsDahoxgGJo3tET y75eAbFVinsbk5o iJwjFX82b9sPgRb w1k9jW4UG1K8q87 ZhiiNuo9bJTHxAA yaqbemDGxMkPEE7 WvAwgj1sYwfyvHg DB6zXMDhDtsJYg7 N4SZ9G9rGnRw3Jp QyxQvH8c33Vc4Ac jxS5Maab9RKAApM byV8cYkNLED3p9R QmaihHFhqTUouzi KsCgxaA4hNi7XvB 3xMP4uu5b25Lnt2 RzCe8bvFtqyZhJL uxW6vsG4hLf25Se jX4XSVFAMr5gvU9 K3bVMqpkpLDzW2t 9WS36jNk6P9Atuv GzLDJ3zpqNpWniY JyiHQnaUr3QALtD dvYVZ5QAbC7T2J4 1V8dEJNGqBTyyUz Ci9Jfx1oD1ULf2y aHXuwDVaUtNXMLk zG1XvmMKTUr1FBB XjvKMCo1sX1n7G7 86keBhPEo3DJg5s FeiJ5PKUFSEapEX EVvB8xBYduhZr3R xn8oshrfZ9dS9w7 bp9shWDCYVJZHY3 d63AM3TgxzCfnUY 5a3onpsim1n3BPn BQkeW9eaVBUg36A gEy73y6buZLsder 5gZaCEkX9gGBLHB f4ydvYYnvDqgUxr CnejoV1xsKkvHdV. ENDSLATEPACK.

This command will pay the amount specified in the invoice using your wallet's funds.
After you confirm, the following will occur: 

* 0.100000000 of your wallet funds will be added to the transaction to pay this invoice.
* The wallet will IMMEDIATELY attempt to send the resulting transaction to the wallet listening at: 'grin1cwutd4sr0t0ac62764r9vz6wkgpmnmpheynh5tw56zvczvh8apdszxp25w'.
* If other wallet is not listening, the resulting transaction will output as a slatepack which you can manually send back to the invoice creator.

Please review the above information carefully before proceeding

To proceed, type the exact amount of the invoice as displayed above (or Q/q to quit) > 0.100000000
20201224 13:59:40.952 WARN grin_wallet_api::owner - Attempting to send transaction via TOR

Transaction paid and sent back to initiator at grin1cwutd4sr0t0ac62764r9vz6wkgpmnmpheynh5tw56zvczvh8apdszxp25w for finalization.

Command 'pay' completed successfully

Wallet (1) state, the invoice for 0.10 is shown in awaiting for confirmation:

~$ grin-wallet -r "https://grinnode.live:3413" info
Password: 
20201224 14:04:01.113 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201224 14:04:02.360 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 14:04:02.378 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 14:04:02.386 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 14:04:02.386 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 14:04:02.387 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete

____ Wallet Summary Info - Account 'default' as of height 1016218 ____

 Confirmed Total                  | 4.584500000 
 Awaiting Confirmation (< 10)     | 0.100000000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 4.484500000 

Command 'info' completed successfully

Wallet (2) state:

~/grin-wallet-2$ grin-wallet -r "https://grinnode.live:3413" info
Password: 
20201224 14:02:56.399 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 0% complete
20201224 14:02:57.662 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 14:02:57.675 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 14:02:57.683 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 14:02:57.683 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 14:02:57.683 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning - 99% complete
20201224 14:02:57.795 WARN grin_wallet_libwallet::api_impl::owner_updater - Scanning Complete

____ Wallet Summary Info - Account 'default' as of height 1016217 ____

 Confirmed Total                  | 0.376500000 
 Awaiting Confirmation (< 10)     | 0.076500000 
 Awaiting Finalization            | 0.000000000 
 Locked by previous transaction   | 0.000000000 
 -------------------------------- | ------------- 
 Currently Spendable              | 0.300000000 

Command 'info' completed successfully

@marekyggdrasil
Copy link

Great work! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment