Last active
August 31, 2020 09:15
-
-
Save rcmorano/96c1b39f0261583a03465e55e5e0feda to your computer and use it in GitHub Desktop.
use-daedalus-bundled-cardano-cli (linux)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# apt install lsof coreutils | |
export CARDANO_NODE_SOCKET_PATH=$(pgrep -a cardano-wallet | sed -e 's|.*\(--node-socket\) \(.*cardano-node.socket\).*|\2|g') | |
CARDANO_BRIDGE_NIX_STORE_BINDIR="~/.daedalus/$(dirname $(lsof -np $(pgrep -af cardano-wallet | grep -v grep | awk '{print $1}') 2>/dev/null | grep bin.cardano-wallet | awk '{print $NF}' | sed -e 's|\(^/tmp.*\)/\(nix.*\)|\2|'))" | |
PATH=${PATH}:${CARDANO_BRIDGE_NIX_STORE_BINDIR} | |
cardano-cli get-tip --mainnet |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment