Search icon CANCEL
Subscription
0
Cart icon
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Ripple Quick Start Guide

You're reading from  Ripple Quick Start Guide

Product type Book
Published in Dec 2018
Publisher Packt
ISBN-13 9781789532197
Pages 160 pages
Edition 1st Edition
Languages
Author (1):
Febin John James Febin John James
Profile icon Febin John James

Cashing checks

You should be familiar with the process by now. It's similar to sending money and creating checks. In order to cash a check, you need to have the check ID created by the sender using the following steps:

  1. Prepare transaction: Here we define the check ID, amount to be cashed out, and so on.
  2. Sign transaction: You need to sign the transaction cryptographically with your secret key. This proves that you own this account.
  3. Submit transaction: Once you sign the transaction, you need to submit it to the Ripple network for validation. The check will be cashed out and the account balance will only be updated when the validators approve your transaction.

The following code uses the "CheckCash" method to prepare the transaction. The sign and submit method are similar to the one we used before. We have used the check ID that we noted down earlier. You&apos...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at ₹800/month. Cancel anytime}