Created
March 27, 2022 16:45
-
-
Save baymac/b5d662b2aa17940d8ae350cb5a2eb38c to your computer and use it in GitHub Desktop.
Cardano Node Submit API from Daedulus Cardano Node
This file contains 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
## Set the Cardano Node Socket Path | |
export CARDANO_NODE_SOCKET_PATH=$(ps ax | grep -v grep | grep cardano-wallet | grep mainnet | sed -E 's/(.*)node-socket //') | |
## testing that it worked | |
echo $CARDANO_NODE_SOCKET_PATH | |
## Changing to the Documents folder and creating a folder | |
cd ~/ | |
cd Documents | |
mkdir nami-submit | |
## Changing to the new folder | |
cd nami-submit | |
## Download the MACOS Cardano Node | |
wget https://hydra.iohk.io/build/12420686/download/1/cardano-node-1.33.0-macos.tar.gz | |
## Extracting the file | |
tar -xf cardano-node-1.33.0-macos.tar.gz | |
## Downloading the required configuration | |
wget https://raw.githubusercontent.com/input-output-hk/cardano-node/master/cardano-submit-api/config/tx-submit-mainnet-config.yaml | |
## Starting the Submit API on your computer. Make sure you have Daedalus loaded and synced. | |
./cardano-submit-api --config tx-submit-mainnet-config.yaml --socket-path $CARDANO_NODE_SOCKET_PATH --port 8090 --mainnet | |
## You need to leave the terminal window open to | |
## Copy this URL to the Nami Custom Node settings | |
http://localhost:8090/api/submit/tx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment