Skip to content

Instantly share code, notes, and snippets.

@Madjarx
Last active January 14, 2025 15:51
Show Gist options
  • Select an option

  • Save Madjarx/e4c2e1ba09d1ca842c3d16773398d1e3 to your computer and use it in GitHub Desktop.

Select an option

Save Madjarx/e4c2e1ba09d1ca842c3d16773398d1e3 to your computer and use it in GitHub Desktop.

Copy paste List of Cellframe CLI commands

Ledger (Holders)

QEVM holders

  1. /opt/cellframe-node/bin/cellframe-node-cli ledger list balance -net Backbone > allbalances.txt
  2. awk ' /Ledger balance key:/ { ledger_key = $4 } /token_ticker:/ && $2 == "QEVM" { if (balance > 0) print ledger_key, balance } /balance:/ { balance = $2 } ' allbalances.txt | sort | uniq > holders_and_balances.txt
  3. grep -c "Rj7J7" holders_and_balances.txt

All balances in ledger

ledger list balance -net Backbone


Orders (Buys & Sells)

Total Buys so far

  1. /opt/cellframe-node/bin/cellframe-node-cli srv_xchange token_pair rate history -net Backbone -token_from QEVM -token_to CELL > total_buys.txt
  2. grep -o 'changed' total_buys.txt | wc -l

Total Sells so far

  1. /opt/cellframe-node/bin/cellframe-node-cli srv_xchange token_pair rate history -net Backbone -token_from CELL -token_to QEVM > total_sells.txt
  2. grep -o 'changed' total_sells.txt | wc -l

Check order

srv_xchange order history -net Backbone -order HASH

QEVM SELL active orders (giving QEVM and receiving $CELL)

srv_xchange orders -net Backbone -status opened -token_from QEVM

QEVM BUY active orders (giving CELL and receiving $QEVM)

srv_xchange orders -net Backbone -status opened -token_from CELL -token_to QEVM

QEVM SELL closed orders

srv_xchange orders -net Backbone -status closed -token_from QEVM


Wallets

Wallet tokens & balance

wallet info -net Backbone -addr ADDRESS

Wallet transaction history

tx_history -net Backbone -addr ADDRESS

-act - filtration by action (regular, comission, reward, crosschain, open, close, use, extend, change) (optional) https://wiki.cellframe.net/Resources/Node+Commands/TX.+Node+Commands

Wallet order history (trades)

srv_xchange order history -net Backbone -addr ADDRESS

Hash: 0x846D9B0976803BFFEB83D3846E47BB37BEA001E6A1BF56D5234757F8DCEF37BB
  Status: inactive,  changed 400000.0 (400000000000000000000000) QEVM for 400.0 (400000000000000000000) CELL,  rate (CELL/QEVM): 0.001,  remain amount 81426619.039298258943598 (81426619039298258943598000) QEVM, net: Backbone
  Prev cond: 0xA1D1EAA9CD366003D6C8B94B01FD4755660F1D62931ED9575B14B9C29D7723B3

Found 4

Node Management

See the node

sudo service cellframe-node status sudo service cellframe-node start sudo service cellframe-node stop

Download the node

Cellframe server: https://pub.cellframe.net/linux/cellframe-node/master/

wget https://pub.cellframe.net/linux/cellframe-node/master/cellframe-node-5.3-342-rwd-opt-amd64.deb

sudo dpkg -i ./NODEPACK

https://gitlab.demlabs.net/cellframe/cellframe-node#install-from-demlabs-official-public-repository

Alternative - /etc/apt/sources.list.d/demlabs.list

sudo apt-get install cellframe-node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment