Sending MobileCoin
The last step in developing your Wallet Interface is to connect to the build and submit transaction endpoint. Sending transactions enables the Exchange to send MOB to customers, as well as to transfer MOB between accounts that the Exchange controls.
Review the initial balance of your account by calling get_account_status
with your account_id
generated from the Create an Account section.
Since you are running a test that doesn't require you to review the transaction proposal before submitting it to the ledger, call the convenience method build_and_submit_transaction
to send MOB to a public address. Keep note of the transaction_log_id
from the response, as we will need for the next step.
To verify whether the transaction was successful, call get_transaction_log
with the transaction_log_id
from the previous step. The response will have a field called status
which should say succeeded
once the transaction clears on the blockchain.
Congratulations, you just sent your first transaction!
Last updated
Was this helpful?