Skip to content

Instantly share code, notes, and snippets.

@rcmorano
Last active August 31, 2020 09:15
Show Gist options
  • Save rcmorano/96c1b39f0261583a03465e55e5e0feda to your computer and use it in GitHub Desktop.
Save rcmorano/96c1b39f0261583a03465e55e5e0feda to your computer and use it in GitHub Desktop.
use-daedalus-bundled-cardano-cli (linux)
# 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