Send tokens
Sending Tokens Between Accounts
This guide covers the process of sending tokens from one account to another on Pocket Network using the pocketd command-line interface (CLI).
Prerequisites
Step 1: Preparing a Node Endpoint
Step 2: Sending Tokens
Step 3: Confirming the Transaction
Step 4: Transaction Completion
Additional Flags
Prerequisites
pocketdis installed on your system; see the installation guide for more detailsYou have access to your wallet with sufficient tokens for the transaction and fees
You have the recipient's address
Preparing a Node Endpoint
Before initiating the transaction, you must specify the node endpoint you'll be interacting with.
For testing purposes, you can use the provided Beta TestNet node:
--network=betaOn MainNet, ensure you're connected to a trusted full node, validator, or other client on the network.
Sending Tokens
To send tokens, use the pocketd tx bank send command followed by the sender's address or key name, the recipient's address, and the amount to send.
pocketd tx bank send [from_key_or_address] [to_address] [amount] \
--network=<network> [additional_flags]Replace
[from_key_or_address]with your wallet name or addressReplace
[to_address]with the recipient's addressReplace
[amount]with the amount you wish to send, including the denomination (e.g.,1000upokt)Replace
<network>with the network name (e.g.,local,alpha,beta,main)
Example: sends 1000upokt from myWallet to pokt1recipientaddress420:
pocketd tx bank send myWallet pokt1recipientaddress420 1000upokt \
--network=<network>Confirming the Transaction
After executing the send command, you'll receive a prompt to confirm the transaction details. Review the information carefully. If everything looks correct, proceed by confirming the transaction.
Check Recipient
Double-check the recipient's address and the amount being sent. Transactions on the blockchain are irreversible.
Additional Flags
Refer to the command's help output for additional flags and options that can customize your transaction. For example, you can set custom gas prices, use a specific account number, or operate in offline mode for signing transactions.
pocketd tx bank send --helpFor more details, see the linked references in the steps above.
Was this helpful?
