Submitting a transaction to the Celestium network involves creating a signed transaction and broadcasting it to the network through an RPC node. This section provides a step-by-step guide on how to submit transactions to Celestium Testnet.
1. Prepare a Transaction
A transaction can transfer CLT tokens, interact with a smart contract, or deploy a new contract. Transactions must include:
From: Sender’s address.
To: Recipient’s address (optional for contract creation).
Value: Amount of CLT to send (in wei).
Gas Limit: Maximum gas units to consume.
Gas Price: Fee per unit of gas (in wei).
Data: Optional data payload (e.g., smart contract call).
2. Sign the Transaction
Transactions must be signed using the sender’s private key. Popular libraries like ethers.js or web3.js can help with signing: