Send a Micro Transaction
If you need to send an amount below the minimum storage deposit, you should use a microtransaction.
Online Faucet
You can request test funds from the Shimmer Testnet Faucet.
Code Example
The following example will:
- Create a wallet.
- Get Alice's account which was created in the first guide.
- Create the outputs for a microtransaction.
- Send the micro-microtransaction using the
Account.send_micro_transaction(addresses_with_micro_amount, options)
function.
- Rust
- Nodejs
- Python
sdk/examples/how_tos/advanced_transactions/send_micro_transaction.rs
loading...
bindings/nodejs/examples/how_tos/advanced_transactions/send_micro_transaction.ts
loading...
bindings/python/examples/how_tos/advanced_transactions/send_micro_transaction.py
loading...
Expected Output
Transaction sent: 0x4f04a922dcac8d22b95f1edb269a0aee056f2fa11bbcf0cbb408f937480e8119
Block included: https://explorer.shimmer.network/testnet/block/0xb7134950c962b88d280589e9431dcb70527c4cb72cb640e614c896643180007a