xrpl-dev-portal
xrpl-dev-portal copied to clipboard
Tutorial: Set up your account for listing XRP as an exchange
We should have a tutorial that covers how to set up hot and cold wallets for an exchange, with sample code (optionally interactive, though that may not set a good precedent for how people manage their secrets).
This would be complementary to the List XRP as an Exchange doc and might cover some of the same ground as Getting Started, or could act as a next steps doc assuming you've already gone through that and maybe Send XRP as well.
Not necessarily complete list of things to cover...
- URL of rippled. User can choose test net or live net. Probably RPC, but maybe websockets, too.
server_info. Does connection work? Important info like "server_state", "peers", "completed_ledgers",... faucet (if test net). Initial funding of the "hot" wallet.account_info. Difference between XRP vs drops.AccountSet. A transaction!- Require destination tag. Require Auth. Any other recommendations.
- Explain why are these important. And about submitting transactions.
txlookup by hash. Difference between provisional result vs validated.wallet_propose. Now we've created "cold" wallet. Unfunded.Paymenttx. The moment they've been waiting for!account_infoagain.- And
AccountSetagain. Only this time wesignand thensubmit. Illustrating how an offline cold wallet can remain secure.