Lets suppose you want to move BTC from exchange account to Rio Chain.
Make sure Rio Chain supports asset you want to deposit
If you want to retreive info about RBTC here is how to do it with JS
If you want to add supported assets, you need to contact us and we will add it. Potentially such things will be operated through governance mechanism, but we have root key for now.
Increase deposit index
Next as a non-root user you need to apply deposit index for... well for an index in the system, obviously.
Finally you send deposit transaction
The front end will show the deposit address by combining the Asset Type, Asset Path, User Deposit Index.
After you received an onchain confirmation, you can check whether user account balance is what it should be.
So here is a quick recap
// user account const USER = '5FHneW46xGXgs5mUiveU4sbTyGBzmstUspZC92UhjJM694ty'; // operating account const OPERATOR = '5Fnde4apPv1JW7YN9ixNdbbTXCun3p9Gya4kS9niNozRULn4'; // currency id const RBTC_id = 100; const amount = 10; // 1 - get users current balance let balance = await api.query.rioassets.accounts.entries(USER).entries(RBTC_id).free; // 2 - apply index // 3 - deposit // 4 - wait for confirmation // 5 - check results let balance2 = await api.query.rioassets.accounts.entries(USER).entries(RBTC_id).free; // TODO: include fee let is_correct = balance2 - balance == amount;