Skip to content

Instantly share code, notes, and snippets.

View jcstein's full-sized avatar

Josh Stein jcstein

View GitHub Profile
txsim --key-path ~/.celestia-app --grpc-endpoint validator-1.celestia-arabica-11.com:9090 --feegrant --blob 4 --blob-amounts 1 --blob-sizes 475000 --gas-limit 3600000 --gas-price 0.1
{"level":"warn","errorMessage":"tls: first record does not look like a TLS handshake","time":"2025-03-25T11:26:17-04:00","message":"failed to connect with the config to grpc server; proceeding with insecure connection"}
{"level":"info","address":"celestia1mxff4mztttnx3dwg4cmj9spvvrqmjxtux0e0pq","balance":8577662960,"time":"2025-03-25T11:26:32-04:00","message":"set master account"}
{"level":"info","height":4991637,"address":"celestia1mxff4mztttnx3dwg4cmj9spvvrqmjxtux0e0pq","msgs":"/cosmos.feegrant.v1beta1.MsgGrantAllowance,/cosmos.bank.v1beta1.MsgSend,/cosmos.feegrant.v1beta1.MsgGrantAllowance,/cosmos.bank.v1beta1.MsgSend,/cosmos.feegrant.v1beta1.MsgGrantAllowance,/cosmos.bank.v1beta1.MsgSend,/cosmos.feegrant.v1beta1.MsgGrantAllowance,/cosmos.bank.v1beta1.MsgSend","time":"2025-03-25T11:26:38-04:00","message":"tx committed"}
{"leve
#!/bin/bash
# Array of validator endpoints
validators=(
# Paris validators
"conval-01.par.mammochain.com"
"conval-02.par.mammochain.com"
"conval-03.par.mammochain.com"
"conval-04.par.mammochain.com"
"conval-05.par.mammochain.com"
2025-03-20T11:46:56.880-0400 INFO header/store store/store.go:367 new head {"height": 53602, "hash": "695304044FDDE658629B8533101697A8D6FEB229763C4E0E2C1A62424CCDFC87"}
2025-03-20T11:46:56.880-0400 INFO header/store store/store.go:367 new head {"height": 53603, "hash": "F223417CD2BE0C3561392BF7FA913AE77F098B116074B662A7EB10B3049E8E10"}
2025-03-20T11:46:56.880-0400 INFO header/sync sync/sync.go:234 finished syncing headers {"from": 53602, "to": 53603, "elapsed time": 0.137241666}
2025-03-20T11:46:56.880-0400 INFO das das/worker.go:95 finished sampling headers {"type": "catchup", "from": 53602, "to": 53603, "errors": 0, "# of headers skipped as outside of sampling window": 0, "finished (s)": 0.137020208}
2025-03-20T11:47:05.565-0400 WARN header/sync sync/sync_head.go:46 failed to get recent head, returning current subjective {"sbjHead": 53603, "err": "header: not found"}
2025-03-20T11:47:35.812-0400 WARN header/sync sync/sync_head.go:46 failed to get recent head, returning current subjective {"sbjHead": 53603,
@jcstein
jcstein / steps.md
Created March 12, 2025 18:10
playing around with quicknode endpoint and DA node
  1. tried to submit a blob to the quicknode URL, which errors as expected bc no node store specified to get the auth token
celestia blob submit 0x6D6F76657465737431 'gmove' \
  --url https://frosty-intensive-panorama.celestia-mocha.quiknode.pro/$APIKEY/
Error: cant access the auth token: token/node-store flag was not specified: no opened Node Store found (no node is running)
Usage:
  celestia blob submit [namespace] [blobData] [flags]
...
2025-02-14T16:27:19.517-0500 INFO header/store store/store.go:367 new head {"height": 4692139, "hash": "1EB2B23ADD5542D71FA9FECDEABCB8C88020403A667342CD9BF5544F3272AEAE"}
2025-02-14T16:27:19.517-0500 INFO header/store store/store.go:367 new head {"height": 4692140, "hash": "57742216E6A368FD021E65C23EE475BAECACB65EE990C80C208C6DA1922AFF68"}
2025-02-14T16:27:19.517-0500 INFO header/sync sync/sync.go:234 finished syncing headers {"from": 4692134, "to": 4692140, "elapsed time": 0.394386}
2025-02-14T16:27:20.554-0500 INFO canonical-log swarm/swarm_dial.go:620 CANONICAL_PEER_STATUS: peer=12D3KooWK5GcxBuPLSiRLgzUr2a6SXgW3tC85SU5b52JhxwD3yr3 addr=/ip4/217.28.49.93/udp/2121/quic-v1 sample_rate=100 connection_status="established" dir="outbound"
2025-02-14T16:27:23.094-0500 INFO basichost basic/natmgr.go:112 DiscoverNAT error:no NAT found
2025-02-14T16:27:24.106-0500 INFO header/store store/store.go:367 new head {"height": 4692141, "hash": "F3E06DF128B523C3765BC37117891558B6303FDE955505AA30EC078C2F8AB98B"}
2025-02-14T16
cargo run -- quicknode 9 197278
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.44s
Running `target/debug/dummy_rollup quicknode 9 197278`
Note: CELESTIA_NODE_AUTH_TOKEN not set. Make sure to either:
1. Set CELESTIA_NODE_AUTH_TOKEN environment variable, or
2. Use --rpc.skip-auth when starting your Celestia node
Starting continuous blob submission. Press Ctrl+C to stop.
Submitting batches of 9 blobs, each 197278 bytes, with namespace 'quicknode'
Batch submitted successfully!
Result height: 4670607
2025-02-12T18:37:19.376-0500 INFO header/store store/store.go:367 new head {"height": 4659571, "hash": "9D3E6313C72ACA955057A1830A403B15AA46A9E6FB12A4296BA3F9D46334CF47"}
2025-02-12T18:51:14.197-0500 ERROR header/p2p p2p/exchange.go:179 head request to peer failed r": "12D3KooWKi6KA4Px3sgEPMPxwvexx8wmg2tQqbUwLXS3vCo5pYZp", "err": "i/o deadline reached"}
2025-02-12T18:51:14.197-0500 ERROR header/p2p p2p/exchange.go:179 head request to peer failed r": "12D3KooWR6eCBXNcxgehiUHrzK3UQS1yGDpHgxM77eb5u4ieUima", "err": "read deadline exceeded: i/o timeout"}
2025-02-12T18:51:14.197-0500 ERROR header/p2p p2p/exchange.go:179 head request to peer failed r": "12D3KooWLBEpFH54Q8ofQ5dLjFwXCom9BqUKJyP2d7A9oCXg5Kvo", "err": "i/o deadline reached"}
2025-02-12T18:51:14.198-0500 ERROR header/p2p p2p/exchange.go:179 head request to peer failed r": "12D3KooWHBUDqZndPd9mXzxcPbGLExfJHxh217BKUSzAzqEAiQHC", "err": "i/o deadline reached"}
2025-02-12T18:51:14.198-0500 WARN header/sync sync/sync_head.go:46 failed to get recent head, retu
@jcstein
jcstein / recoverfunds.sh
Created January 13, 2025 21:46
recover funds (from txsim)
#!/bin/bash
# Target address to send to
TARGET_ADDRESS="celestia1nqf3yn9mjuuldgxqrkj5fgca2tsy4p4a98e2vj"
# Directory containing the key files
KEYRING_DIR=".celestia-app/keyring-test"
# Function to get balance
get_balance() {
./celestia-start.sh
Cleaning previous logs...
Checking for existing processes and containers...
env file /Users/js/nitro-testnode/blockscout/nitro.env not found: stat /Users/js/nitro-testnode/blockscout/nitro.env: no such file or directory
Cloning celestia-node repository...
Cloning into 'celestia-node'...
remote: Enumerating objects: 31852, done.
remote: Counting objects: 100% (1574/1574), done.
remote: Compressing objects: 100% (778/778), done.
remote: Total 31852 (delta 958), reused 1245 (delta 753), pack-reused 30278 (from 1)
celestia version
Semantic version: v0.20.4-test1-3-gc5008b61
Commit: c5008b61dab4379864de24302df9dc0089903c77
Build Date: Thu Dec 5 14:40:10 EST 2024
System version: arm64/darwin
Golang version: go1.23.2
celestia light start --core.ip https://clean-damp-snowflake.celestia-mainnet.quiknode.pro/cdb1b3af1f4f7d841e948ed4a62cae4d4c1ee722
2024-12-05T14:49:54.056-0500 INFO node nodebuilder/module.go:27 Accessing keyring...
2024-12-05T14:49:54.064-0500 INFO badger4 [email protected]/levels.go:171 All 6 tables opened in 1ms