bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 20쪽 중 8쪽
o submit multiple transactions from the same account in quick succession, you must specify the nonce
manually. Otherwise, subsequent transactions will not be accepted until the first transaction is reaped from the mempool (included in
a block) or dropped after timing out.
By default, nodes will drop a transaction if it does not get included in 12 blocks (roughly 72 seconds). At this point, you must
resubmit your transaction if you want it to eventually be included.
As of v1.0.0 of celestia-app, you cannot replace an existing transaction with a higher-fee version. You must wait 5 blocks from the
original submission time and then resubmit the transaction.
### Synchronous submission (TxWorkerAccounts = 1)
Setting `TxWorkerAccounts` to `1` enables synchronous, queued transaction submission:
```toml
[State]
TxWorkerAccounts = 1
```
Characteristics:
- Each transaction queues until the previous one is confirmed
- Preserves strict ordering of transactions
- Avoids sequence mismatch errors
- Throughput: approximately 1 PayForBlobs transaction every other block
If you specify an account other than the default account in TxConfig, the queue is bypassed and transactions enter the mempool
directly without waiting for confirmations.
### Parallel transaction submission (TxWorkerAccounts > 1)
This feature is currently available on Mocha testnet.
For high-throughput applications that do not require sequential transaction ordering, you can enable parallel transaction submission
by setting `TxWorkerAccounts` to a value > 1:
```toml
[State]
DefaultKeyName = "my_celes_key"
DefaultBackendName = "test"
TxWorkerAccounts = 8
```
#### How it works:
`TxWorkerAccounts` defines how many parallel lanes the node will initialize for submitting transactions. These lanes are implemented as
subaccounts that are automatically:
1. Created and derived from your default account
2. Funded by your default account
3. Added to your node's keyring
This bypasses account sequence limits and enables significantly higher throughput.
Example: TxWorkerAccounts = 8 creates 7 subaccounts plus your 1 default account, allowing at least 8 PayForBlobs transactions per
block.
#### Important considerations
Parallel submission is not suitable for implementations that require sequential transaction ordering. Only use this mode for
unordered transaction workflows where your system requires a single signer, a.k.a. authored blobs.
#### Key points to understand:
- Account opacity: You will not know which subaccount signed which blob. Subaccounts are managed automatically by the node.
- Default account only: Parallel submission only works with your node's default account. If you specify a different account in
TxConfig, parallel submission is bypassed.
- Blob retrieval: Since you don't know which account submitted each blob, retrieve your blobs using namespace, height, and commitment.
### Retrieving blobs submitted via parallel lanes
When using parallel submission, retrieve your blobs using the following RPC methods from the [Node API `blob` section](/build/rpc/node-api/):
- [`blob.Get`](/build/rpc/node-api/#blob) - Get blob by namespace and commitment
- [`blob.GetProof`](/build/rpc/node-api/#blob) - Get inclusion proof by height, namespace, and commitment
- [`blob.GetCommitmentProof`](/build/rpc/node-api/#blob) - Get commitment proof by height, namespace, and share commitment
Example using blob.Get:
```bash
celestia blob get <height> <namespace> <commitment>
```
You should store the namespace, height, and commitment from your submission response to retrieve blobs later.
## API
Users can currently create and submit `BlobTx`s in six ways.
### The celestia-app consensus node CLI
```bash
celestia-appd tx blob PayForBlobs <hex-encoded namespace> <hex-encoded data> [flags]
```
### The celestia-node light node CLI
Using `blob.Submit`:
```bash
celestia blob submit <hex_namespace> <data> [flags]
```
For hex-encoded data, include the `0x` prefix: `0x676d` submits the text `gm`.
On builds containing the blob submission fix in celestia-node #5262, data
without that prefix is literal text, even if it looks like hex: `cafe` submits
`cafe`. Use explicit `0x`-prefixed hex data for compatibility with earlier builds.
The namespace remains hex-encoded.
Available flags:
- `--core.estimator.address string`: Specifies the endpoint of the third-party service for gas price and gas estimation. Format: `<address>:<port>`. If not provided, the default connection to the consensus node will be used.
- `--max.gas.price`: Sets the maximum gas price you're willing to pay for the transaction. If the estimated gas price exceeds this value, the transaction will not be submitted. Default is 0.2 TIA (100x the minimum gas price).
Learn more in the [light node tutorial](/operate/data-availability/light-node/quickstart).
### The celestia-node API golang client
See the [golang client tutorial](/build/post-retrieve-blob/client/go).
### The celestia-node API Rust client
See the [Rust client tutorial](/build/post-retrieve-blob/client/rust).
### RPC to a celestia-node
With the JSON-RPC API, encode blob `data` as base64, rather than using the
CLI data argument format. For example, the text `gm` is `"Z20="` in a
JSON-RPC blob's `data` field. The CLI prefix change does not change this encoding.
Submit data using the following methods:
- [`blob.Submit`](/build/rpc/node-api/#blob.Submit)
- [`state.SubmitPayForBlob`](/build/rpc/node-api/#state.SubmitPayForBlob)
Learn more in the [Node API docs](/build/rpc/node-api/).
### Post a blob directly from Celenium
Celenium provides a user-friendly interface to view and interact with data on Celestia,
and allows for submitting blobs directly from the explorer interface.
To submit a blob from Celenium, follow these steps:
1. Navigate to the [Celenium explorer](https://celenium.io) and connect your wallet.
2. Click on the terminal button in the top right corner of the screen and select the "Submit data blob" option.
3. Next, ensure the file you are submitting is in a supported format and upload it.
4. In the "Namespace" field, input the namespace you want to use for the blob in hex format.
5. Finally, click on the "Continue" button to submit your blob, then approve the transaction in your wallet.
Once the blob is submitted, you will see its hash on the screen.
You can also use Celenium’s search bar to search for the blob's hash and view its details.
---
Title: Helpful CLI commands
URL: https://docs.celestia.org/operate/consensus-validators/cli-reference.md
Source: app/operate/consensus-validators/cli-reference/page.mdx
---
# Helpful CLI commands
View all options:
```console
$ celestia-appd --help
Start celestia-app
Usage:
celestia-appd [command]
Available Commands:
add-genesis-account Add a genesis account to genesis.json
collect-gentxs Collect genesis txs and output a genesis.json file
config Create or query an application CLI configuration file
debug Tool for helping with debugging your application
export Export state to JSON
gentx Generate a genesis tx carrying a self delegation
help Help about any command
init Initialize private validator, p2p, genesis,
and application configuration files
keys Manage your application's keys
migrate Migrate genesis to a specified target version
query Querying subcommands
rollback rollback cosmos-sdk and tendermint state by one height
start Run the full node
status Query remote node for status
tendermint Tendermint subcommands
tx Transactions subcommands
validate-genesis validates the genesis file at the default
location or at the location passed as an arg
version Print the application binary version information
```
## Updating node configuration
The `celestia-appd update-config` command is deprecated as of v9. Required
configuration values are now enforced by the binary at startup, so do not add
this command to new node initialisation or upgrade procedures. It currently
prints a deprecation warning and will be removed in a future release.
See the [celestia-app v9 release notes](https://github.com/celestiaorg/celestia-app/blob/v9.0.4/docs/release-notes/release-notes.md#update-config-command-deprecated)
for details.
## Creating a wallet
```sh
celestia-appd config keyring-backend <backend>
```
`keyring-backend` configures the keyring's backend, where the keys are stored.
Options are: `os|file|kwallet|pass|test|memory`.
`test` keeps the key unencrypted on disk with no password, so reserve it for
local development and testnets. See
[create a wallet with celestia-app](/operate/keys-wallets/celestia-app-wallet)
for a comparison of the backends.
You can learn more on the [Cosmos documentation](https://docs.cosmos.network/sdk/v0.53/user/run-node/keyring)
or [Go Package documentation](https://pkg.go.dev/github.com/cosmos/cosmos-sdk/crypto/keyring).
## Key management
```sh
# listing keys
celestia-appd keys list
# adding keys
celestia-appd keys add <KEY_NAME>
# deleting keys
celestia-appd keys delete <KEY_NAME>
# renaming keys
celestia-appd keys rename <CURRENT_KEY_NAME> <NEW_KEY_NAME>
```
### Importing and exporting keys
Import an encrypted and ASCII-armored private key into the local keybase.
```sh
celestia-appd keys import <KEY_NAME> <KEY_FILE>
```
Example usage:
```sh
celestia-appd keys import amanda ./keyfile.txt
```
Export a private key from the local keyring in encrypted and ASCII-armored format:
```sh
celestia-appd keys export <KEY_NAME>
# you will then be prompted to set a password for the encrypted private key:
Enter passphrase to encrypt the exported key:
```
After you set a password, your encrypted key will be displayed.
## Querying subcommands
Usage:
```sh
celestia-appd query <FLAGS> | <COMMAND>
# alias q
celestia-appd q <FLAGS> | <COMMAND>
```
To see all options:
```sh
celestia-appd q --help
```
## Token management
Get token balances:
```sh
celestia-appd q bank balances <ADDRESS> --node <NODE_URI>
```
Example usage:
```sh
celestia-appd q bank balances celestia1czpgn3hdh9sodm06d5qk23xzgpq2uyc8ggdqgw \
--node https://public-endpoint.celestia-mocha.quiknode.pro
```
Transfer tokens from one wallet to another:
```sh
celestia-appd tx bank send <FROM_ADDRESS> <TO_ADDRESS> \
<amount> --node <NODE_URI> --chain-id <CHAIN_ID>
```
Example usage:
```sh
celestia-appd tx bank send <FROM_ADDRESS> <TO_ADDRESS> \
19000000utia --node https://public-endpoint.celestia-mocha.quiknode.pro \
--chain-id mocha-5
```
To see options:
```sh
celestia-appd tx bank send --help
```
## Governance
Governance proposals on Celestia are limited as there are no text proposals,
upgrades occur via social consensus, and some params are not modifiable.
However, one can submit governance proposals to change certain parameters and
spend community funds. More detailed information on this topic can be found in
the [cosmos-sdk documentation for submitting
proposals](https://docs.cosmos.network/sdk/v0.53/build/modules/gov),
the list of [parameter defaults in the
specs](https://github.com/celestiaorg/celestia-app/blob/0012451c4dc118767dd59bc8d341878b7a7cacdf/specs/src/specs/params.md),
and the [x/paramfilter module
specs](https://github.com/celestiaorg/celestia-app/tree/1570b3d4937ac4418b3ecf77365d47c5f094ad8f/x/paramfilter).
Viewing the available proposals can be done with the query command:
```sh
celestia-appd q gov proposals
```
There are four options when voting "yes", "no", "no_with_veto" and "abstain".
The "no_with_veto" vote is different from the "no" vote in that the submitter of
the proposer's deposit will get burned, and a minority of stake (1/3) can stop a
proposal that might otherwise pass quorum. You can use those options to vote on
a governance proposal with the following command:
```sh
celestia-appd tx gov vote <proposal id> <option> \
--from <wallet> --chain-id <chain-id>
```
To submit a proposal, there are two commands that can be used. The first is the
legacy command, which is the recommended way to submit a proposal.
To change the max validators to 105, one would first save this JSON file:
```json
{
"title": "Staking Param Change",
"description": "Update max validators",
"changes": [
{
"subspace": "staking",
"key": "MaxValidators",
"value": 105
}
],
"deposit": "1000000000utia"
}
```
Then you can submit the proposal with:
```sh
celestia-appd tx gov submit-legacy-proposal \
parameter-change <path to json file> \
--from <wallet> --chain-id <chain-id>
```
If we want to use the newer api, we can submit a proposal by first saving the
`sdk.Msg` proposal in the json encoded format to a json.
```json
{
"messages": [
{
"@type": "/cosmos.gov.v1beta1.MsgSubmitProposal",
"content": {
"@type": "/cosmos.params.v1beta1.ParameterChangeProposal",
"title": "title",
"description": "description",
"changes": [
{ "subspace": "staking", "key": "MaxValidators", "value": "103" }
]
},
"initial_deposit": [{ "denom": "utia", "amount": "1000000000" }],
"proposer": "celestia10d07y265gmmuvt4z0w9aw880jnsr700jtgz4v7"
}
]
}
```
Note that the proposer here must be the gov module
account. That account can be found by using this command:
```sh
celestia-appd q auth module-account gov
```
Then one can submit the proposal with:
```sh
celestia-appd tx gov submit-proposal <path to json file> \
--from <wallet> --chain-id <chain-id>
```
### Community Pool
A percentage of the block rewards are allocated to the community pool. Community
members can submit governance proposals to spend the community pool funds, and
token holders can vote on these proposals. The proposals to spend are arbitrary
in nature in that they can only contain text and some address to send funds to.
To view the community pool balance, use the following command:
```sh
celestia-appd q distribution community-pool
```
To submit a proposal to spend the community pool funds, first create a JSON file
that contains the proposal.
```json
{
"title": "Community Pool Spend",
"description": "Fund an open source project.",
"recipient": "celestia17adsjkuecgjheugrdrwdqv9uh3qkrfmj9xzawx",
"amount": "100000000000utia",
"deposit": "1000000000utia"
}
```
The json file can be submitted using a similar proposal submission command as above:
```sh
celestia-appd tx gov submit-legacy-proposal \
community-pool-spend <path to json file> \
--from <wallet>
```
## Claim validator rewards
You can claim your validator rewards with
the following command:
```sh
celestia-appd tx distribution withdraw-rewards <validator valoper> \
--commission --from=<validator wallet> --chain-id <chain-id> \
--gas auto -y
```
## Delegate & undelegate tokens
You can `delegate` your tokens to a validator
with the following command:
```sh
celestia-appd tx staking delegate <validator valoper> <amount>\
--from <wallet> --chain-id <chain-id>
```
You can undelegate tokens to a validator
with the `unbond` command:
```sh
celestia-appd tx staking unbond <validator valoper> <amount>\
--from <wallet> --chain-id <chain-id>
```
## Unjailing the validator
You can unjail your validator with the
following command:
```sh
celestia-appd tx slashing unjail --from <validator wallet>\
--chain-id <chain-id> --gas auto -y
```
## How to export logs with SystemD
You can export your logs if you are running
a SystemD service with the following command:
```sh
sudo journalctl -u <your systemd service> -S yesterday > node_logs.txt
sudo journalctl -u <your systemd service> -S today > node_logs.txt
# This command outputs the last 1 million lines!
sudo journalctl -u <your systemd service> -n 1000000 > node_logs.txt
```
## Signing genesis for a new network
You can first run the following commands:
```sh
VALIDATOR_NAME=validator1
CHAIN_ID=testnet
celestia-appd init $VALIDATOR_NAME --chain-id $CHAIN_ID
MONIKER=validator_name
```
Next create a wallet:
```sh
KEY_NAME=validator
celestia-appd keys add $KEY_NAME
```
Create or assign an EVM address:
```sh
EVM_ADDRESS=<EVM_ADDRESS>
```
Then add genesis account:
```sh
CELES_AMOUNT="5000100000000utia"
celestia-appd genesis add-genesis-account $KEY_NAME $CELES_AMOUNT
```
Then generate your gentx:
```sh
STAKING_AMOUNT=5000000000000utia
celestia-appd gentx $KEY_NAME $STAKING_AMOUNT --chain-id $CHAIN_ID \
--pubkey=$(celestia-appd tendermint show-validator) \
--moniker=$MONIKER \
--commission-rate=0.1 \
--commission-max-rate=0.2 \
--commission-max-change-rate=0.01 \
--min-self-delegation=1 \
--evm-address=$EVM_ADDRESS
```
You can then share your gentx JSON file on
[the networks repo](https://github.com/celestiaorg/networks)
in the respective network directory you are participating in.
---
Title: Consensus node
URL: https://docs.celestia.org/operate/consensus-validators/consensus-node.md
Source: app/operate/consensus-validators/consensus-node/page.mdx
---
# Consensus node
This guide covers how to set up a consensus node on Celestia.
Consensus nodes allow you to sync the entire blockchain history in the Celestia
consensus layer.

## Minimum hardware requirements
See [hardware requirements](/operate/getting-started/hardware-requirements).
## Set up a consensus node
The following tutorial is done on an Ubuntu Linux 24.04 (LTS) x64
instance machine.
#### Optional: Set persistent peers
You can set persistent peers in your `config.toml` file. If you set persistent peers, your node will **always** try to connect to these peers. This is useful when running a local devnet, for example, when you would always want to connect to the same local nodes in your devnet. In production, setting persistent peers is advised only if you are running a [sentry node](https://hub.cosmos.network/main/validators/security.html#sentry-nodes-ddos-protection).
You can get the persistent peers from the [@cosmos/chain-registry](https://github.com/cosmos/chain-registry) repository (for Mainnet Beta) or [@celestiaorg/networks repository](https://github.com/celestiaorg/networks) repo (for Mocha) with the following commands:
## Storage and pruning configurations
### Database backend
celestia-app v9 and later use PebbleDB by default for new nodes. Before
changing an existing node's `db_backend` from `"goleveldb"` to `"pebbledb"`,
stop the node and use the
[`migrate-db` tool](https://github.com/celestiaorg/celestia-app/tree/v9.x/tools/migrate-db)
to migrate its databases.
### Optional: Connect a consensus node to a bridge node
If your consensus node is being connected to a celestia-node bridge node,
you will need to enable transaction indexing and retain all block
data. This can be achieved with the following settings in your `config.toml`.
#### Enable transaction indexing
There is currently no way of entirely disabling indexing. Set the `indexer`
to `"null"` in your `config.toml`:
```toml
indexer = "null"
```
The `null` indexer is a lightweight indexer that is sufficient for bridge
nodes.
#### Retain all block data
In your `app.toml`, explicitly set `min-retain-blocks` to `0`:
```toml
min-retain-blocks = 0 # retain all block data
```
### Query transactions by hash
To query transactions using their hash, transaction
indexing must be turned on. Set the `indexer` to `"kv"` in your `config.toml`:
```toml
indexer = "kv"
```
### Optional: Access historical state
If you want to query the historical state — for example, you might want
to know the balance of a Celestia wallet at a given height in the past —
you should run an archive node. In your `app.toml`, set `pruning = "nothing"`
to retain application state and `min-retain-blocks = 0` to retain all block
data. Note that this configuration is resource-intensive and will require
significant storage:
```toml
pruning = "nothing"
min-retain-blocks = 0
```
`min-retain-blocks` defaults to `0`. Any non-zero value enables block pruning,
so archival operators must keep the value at `0`. Changing the value from `0`
to a non-zero value starts pruning the existing backlog when the node restarts
and can temporarily in프로젝트로 돌아가기