MultiAccounts feature for blobs submission
Overview
By default, a celestia-node creates a key named my_celes_key during initialization. This document explains how to run a node with a different default key name and how to submit blobs using different signers.
Running a node with a different default key name
To start a Celestia node with a different default key name, use the following command:
celestia light start --core.ip consensus.celestia-arabica-11.com \
--core.port 9090 --p2p.network=arabica --keyring.keyname testKeycelestia light start --core.ip consensus.celestia-arabica-11.com \
--core.port 9090 --p2p.network=arabica --keyring.keyname testKeyIn this example, testKey becomes the default node key, and the node's address will change accordingly.
Submitting blobs with a different signer/key name
Option 1: Submit passing key name
You can submit a blob by specifying a different key name:
celestia blob submit 0x42690c204d39600fddd3 'gm' --key.name testKey2celestia blob submit 0x42690c204d39600fddd3 'gm' --key.name testKey2This transaction will be signed by the address associated with testKey2.
Option 2: Submit passing signer address
Alternatively, you can submit a blob by specifying the signer's address:
celestia blob submit 0x42690c204d39600fddd3 'gm' --signer $SIGNER_ADDRESScelestia blob submit 0x42690c204d39600fddd3 'gm' --signer $SIGNER_ADDRESSBoth options achieve the same result but use different inputs. The testKey2 points to SIGNER_ADDRESS in the KeyStore.
Key management
All keys and addresses must be added to the KeyStore. To create a new key, use the cel-key library:
Creating a new key
./cel-key add testKey --keyring-backend test \
--node.type light --p2p.network arabica./cel-key add testKey --keyring-backend test \
--node.type light --p2p.network arabicaImporting an existing key
./cel-key import./cel-key importLearn more on the Create a wallet with celestia-node page.
Optional flags for write transactions
All other flags are now optional for all write transactions. This means you don't have to specify gas/fee parameters each time. The configuration can handle it for you automatically.
The default configuration applies to all write transactions, including those in the state module and blob.Submit. This simplifies the process of submitting transactions and reduces the need for manual input.
For reference, see the: