v1.0.0
Demo on minting a token to yourself and then using a Freighter + soroban-react-payment to send a token to another account
payment_demo.mp4
The CLI commands that are run in the above video:
Deploying the token contract found here
soroban contract deploy \
--wasm target/wasm32-unknown-unknown/release/soroban_token_contract.wasm \
--source S… \ <secret key of an admin account>
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022'
Using the contract id
generated from above to initialize the token
soroban contract invoke \
--id c069d458f7ce21b7d62f11d0795555f85f74e754235d5187182c7ef55b57ae7e \ <contract id the above cmd returns>
--source-account S… \ <secret key of an admin account>
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
-- initialize \
--admin GB... \ <public key of an admin account>
--decimal 7 \
--name '44656d6f20546f6b656e' \
--symbol '"4454"'
Minting some of the token to a test account that you will use in the dapp
soroban contract invoke \
--id c069d458f7ce21b7d62f11d0795555f85f74e754235d5187182c7ef55b57ae7e \
--source-account S… \ <secret key of an admin account>
--rpc-url https://rpc-futurenet.stellar.org:443 \
--network-passphrase 'Test SDF Future Network ; October 2022' \
-- mint \
--to GD... \ <your Freighter public key>
--amount 1000000000