Reducing Cardano Transaction Times by Connecting CCVault or Nami to Daedalus Cardano Node
January 29, 2022
Connect CCVault or Nami Wallet to Daedalus to speed up transactions
This tutorial will show you how to connect CCVault to Daedalus or Nami to Daedalus to speed up your transaction wait time, bypass shared transaction servers on the network and submit your own transaction from your own Cardano node via Daedalus.
There are some clever ways to reduce Cardano transaction times and this is one technique that is fairly easy for a novice with some technical knowledge to be able to run their own Cardano node to be able to submit transactions directly without having to wait in line with everyone else.
Many users are reporting issues around mempool full or certain parts of the network being overloaded with transactions, there are ways around it all to help reduce the load.
In the lead up to the SundaeSwap decentralised exchange launch and the amount of NFT projects launching at the moment, we are seeing more and more transactions being queued up in the mempool of various wallets and services.
These mempools act as buckets of transactions with memory limits in regards to how many they can hold. They work as a first in first out process and as more and more people use wallets that rely on certain infrastructure, the more congested the wallet infrastructure becomes.
This method is one way to decentralise your dependence on these services and have your own Cardano node that will allow you to bypass various services and their mempool backlogs.
How to Connect Nami to Daedalus or CCVault to Daedalus on Windows (Scroll to see Mac instructions)
Scroll down to see how to do it on a Mac.
Credits to Pernis Team
All this came about from a video post that the team from Pernis Token produced that talks about the process. Check out their video on how to do it all.
Solution: Connect Nami to Daedalus or CCVault to Daedalus
Nami Wallet is a great lightweight wallet that allows you to interact with decentralised applications (dApps) and participate in decentralised finance (DeFi) and much more.
Daedalus is a full node wallet, that is, it makes a copy of the blockchain locally on your computer and allows you to interact with the blockchain locally and submit transactions to it directly.
Combining the two and configuring Nami to connect directly to the Daedalus node means you can now have a web3 interface powered by your own Cardano node delivered by Daedalus. By not relying on third-party wallets servers, we can bypass the backlog of transactions that are filling up their mempools by the number of users that are using their services.
Teams are working out scaling solutions to improve the user experience. Everything from increasing the block size of the blockchain, to scaling of the servers that the wallets use, using different optimisation scripts for processing transactions and much more.
How To Connect Nami to Daedalus or CCVault to Daedalus Cardano Node
The process is overall fairly easy and can be complete within 15 minutes if the Daedalus wallet is fully synced.
All the commands once you've downloaded all the files and config.
Connecting Nami to Daedalus or CCVault to Daedalus Backend Cardano Node
Since it is a full node wallet, it will take some time to download a copy of the blockchain to your operating system. This step may take 24-36 hours to complete.
It will take you to another website that is owned by IOHK where you can download the Windows version of the files.
Extract this Zip file to your computer. In this demonstration, we are simply storing this in the Documents folder.
C:/Users/Peter-PC/Documents/Cardano-node-1.33.0/
* Note: If you are using anti-virus software, it will pick up various files in the folder as being malicious and will remove them. This includes various libsom files which are needed to operate the node. Please restore and exclude these files from your antivirus software.
Download the Configuration Script
Now that you have the executable file, you will need the configuration file for the submit API.
It can be downloaded from the same repository under Cardano-submit-api/config
In our example, that is C:/Users/Peter-PC/Documents/Cardano-node-1.33.0/
Ensure that Daedalus Is on and Synced
For any of the next steps to work, ensure that Daedalus is turned on and synced to the blockchain. If it isn't it will not work.
Run These Commands in Powershell from the Cardano Executable Folder
Change directory to where you extracted the cardano node executable
cd ~/ cd .\Documents\ cd .\cardano-node-1.33.0-win64\
Run this command to set the environment variable to the socket path. We're setting this so we can set the submit API the details where Daedalus node is and can be accessed.
Run this to check to see if the command worked. $ENV:CARDANO_NODE_SOCKET_PATH
You should see something like \.\pipe\cardano-node-mainnet.12768.1
Now execute the next command to start the Cardano Submit API .\cardano-submit-api.exe --mainnet --socket-path $ENV:CARDANO_NODE_SOCKET_PATH --config .\tx-submit-mainnet-config.yaml --port 8090
You should see Running server on 127.0.0.1:8090
That will let you know that your local Cardano submit tx API is working.
If you're using Nami Wallet - Connect Nami to the set custom node
Now that you have your local node setup, you can connect Nami wallet to it.
Open Nami wallet. Click settings Choose Network Tick the option for Custom Node and enter in the address of your custom node.
In this example we have
http://localhost:8090/api/submit/tx
Press Apply
If you're using CCVault - Connecting the CCVault to Daedalus Configuration
Open CCVault, recommend you use the browser extension.
1. Click Preferences - Global Settings for the app 2. Enable the toggle switch for Custom Submit API Endpoint 3. Paste in your address of your newly created endpoint - http://localhost:8090/api/submit/tx
Test that it is all working
Testing your Transaction
Now that you have it all connected, it is best to test your setup.
Click on your RECEIVE and copy your address. Click on your Send and paste in your receiving address.
Send 1 ADA to yourself and test that it comes through.
If it sends then you have successfully connected CCVault to Daedalus or Nami to Daedalus node and you're ready to use your Frankenstein wallet.
Instructions for Connecting CCVault to Daedalus on Mac or Nami to Daedalus on a Mac
You're Set! What is this Best For?
With this method, you'll be able to have the best of both worlds.
Daedalus has always been the best wallet for NFT drops as you had that open and constant connection to the blockchain but of course, Daedalus can't connect directly to dApps because it is a native application on your computer and not a browser extension.
Cardano NFT ADAWaifus.io
With this method, you can now have the best of both worlds. A constant connection to the blockchain that doesn't rely on third-party services and a wallet interface that allows you to connect to decentralised applications and participate in decentralised finance.
Credits
All credits for this information go to https://youtu.be/sfLhNEtiktA for posting the original tutorial and method for setup.
Instructions are on the documentation at the bottom. It's essentially the same, commands are a bit different but I don't have my mac synced yet to do the tutorial. It's coming soon.
Wow, this is amazing! Can't believe I haven't found your channel before. Do you need to have the same wallet on Daedalus that you are going to use on Nami? It doesn't seem like you would but I wanted to ask. Really looking forward to the Mac video version as well.
I've tried your tutorial about 20 times now and I keep getting the following error: Invalid argument `.\tx-submit-mainnet-config.yaml'
I'm at my wits end! I've followed every single step maticulously and can't understand how it isn't working.
Daedalus is powered up, all files extracted included the YAML config file in the correct folder, but when I run the scripts in Power Shell it doesn't seem to recognise the tx-submit-mainnet-config.yaml file.
I could make a file that you click and it does all of that but you'd have to trust 100% that it is doing exactly as I say it's doing otherwise it could be doing anything to your computer.
If you copy the highlight commands line by line then it should work. Works each time for me when I fire this beast up.
I have a feeling the part of the command before it defines the port might not be working.
$CARDANO_NODE_SOCKET_PATH
This variable may not be set yet. Follow the first two lines of the code dump to make sure that this variable is set. Test to make sure you get that socket output.
Also, make sure Daedalus is running in the background. Let me know how you go.
when I enter $ENV:CARDANO_NODE_SOCKET_PATH = (Get-ChildItem \\.\pipe\ | Where-Object {$_.name -like "cardano-node*"}).FullName I dont get any change. I run the command to check & it seems to be doing nothing. I have Daedalus running & synced. I cant seem to get past accessing the folder.
How can I fix this & make it find Daedalus? I make it into the correct location with the first 3 commands but nothing after that. I have Daedalus running & synced. Could files be getting removed when I unzip it to my Docs folder that would cause this? Thank you for your help.
Yeh the files may have been removed. A Virus scanner would remove them. If you have one installed you have to whitelist the files that you are using.
You could also be running the commands in the wrong folder. Make sure that the commands that you're running are in the same folder as you extracted all the files to.
I have made it into the directory folder but I cant get powershell to find Daedalus. I can't seem to get pipe address after I used the first command. After running $ENV:CARDANO_NODE_SOCKET_PATH = (Get-ChildItem \\.\pipe\ | Where-Object {$_.name -like "cardano-node*"}).FullName and then using $ENV:CARDANO_NODE_SOCKET_PATH to check to see it worked I get nothing. If I run .\cardano-submit-api.exe --mainnet --socket-path $ENV:CARDANO_NODE_SOCKET_PATH --config .\tx-submit-mainnet-config.yaml --port 8090 I get the result of Invalid argument '.\tx-submit-mainnet-config.ymal' I dont understand why this isn't working for me but I see others are having the same issue. Could this be from the recent update to Daedalus? Please help lol & thank you for all of this.
If the your check with the command: $ENV:CARDANO_NODE_SOCKET_PATH
Didn't work, then the rest won't work.
This stumped me too. It will only work if Daedalus is running and FULLY synced. If it's still updating it won't work at all. My first sync was 36 hours and then the bloody upgrade from 4.7 to 4.8 took another 3 hours.
That's a weird one as you're just setting a variable there. It's not liking some of the text characters that are in the formatting maybe. I'll copy all the commands to a text Pastebin and try copying from that. Give me 10, it will be above the step by step tutorial
First, thanks for the work put in here. Greatly appreciated!
My experience...was able to complete steps above. Downloading the .yaml file automatically got the .txt extension so had to rename that. Might be worth a note to confirm the filename after downloading.
A few questions: - I submitted a swap. PowerShell nearly immediately "successfully submitted transaction...". Nami took 13 minutes before showing in my history and both Nami and Cardanoscan showed that the timestamp was the later time. Assuming this is 'normal' but curious as to why the delay? - Does PowerScript need to remain open?
Yes, that's right. I also got the .txt extension, so the way I described avoids that. Some still get it.
The process works by submitting your transaction to your node. That is when you get your success message. Great. At that point, you need to leave everything on and running as the transaction is on your node and patiently waiting for a space on a block to be included.
In your case, it took 13 minutes to it to submit from your Daedalus node to the blockchain. The usual wait time is still around 10 minutes even with this method. You do have to wait for that Nami wallet confirmation and keep Daedalus open in the background and PowerShell all that time. (well not Powershell but def Daedalus)
It is also good to NOT do another transaction until the first is finished.
dyld: Library not loaded: @executable_path/libffi.7.dylib Referenced from: /Users/patrickwalker/Documents/nami-submit/./cardano-submit-api Reason: image not found zsh: abort ./cardano-submit-api --config tx-submit-mainnet-config.yaml --socket-path patri@Ls-MacBook-Pro nami-submit %
Get to this part and I'm lost. Also, the terminal on my Mac does not recognize the command wget - I tried using cURL instead but I'm not sure if that downloads that .yaml file or not. Great video Peter, I'm just a bit new to this.
1) You're in the wrong folder I can see you're in /Users/patrickwalker/Documents/nami-submit/ Check to see where those Cardano Node files were unzipped to. We're the unzipped to the NAMI-SUBMIT folder or are then in another subfolder called "Cardano-node-1.33.0-xxxxxxxx" If there is that folder, you either need to move into that folder or move those files up one to the Nami-submit folder. You can do this in finder, might be a bit easier.
2) The files are missing Your Mac may have blocked access to the files. Can you confirm that the files are there in debug step 1? As to unblock access to apps or executables, it's a system security thing that you have to allow. On the PC we can RUN AS ADMINISTRATOR, on the Mac you have to enable file access to apps.
Thank you for your help Peter! I've had this working successfully for a couple of weeks now and I can't thank you enough for setting up this easy to follow tutorial!! I went to try something today and got this message in my terminal: "Network.Socket.connect: : does not exist (No such file or directory)" Any idea what this one is? Thank you again for you help!!
I have Daedalus running on a PC with my local IP 192.168.1.72 I use Nami wallet in another PC in the same network with IP 192.168.1.33 The node run as "Running server on 127.0.0.1:8090" I understand I will have to specify in Nami Wallet something like this: http://192.168.1.72:8090/api/submit/tx as Nami wallet is not in the same PC where my custom node is running. But I am not sure yet where I have to configure the Cardano node put put the local IP as 192.168.1.72 instead of the 127.0.0.1.
Could you advise? How to check also after that the custom node is running with: Running server on 192.168.1.72:8090 ? Your tutorial assumes that the node and Nami are in the same PC, but it is not in my case. Thanks
When i try and run the last step ./cardano-submit-api --config tx-submit-mainnet-config.yaml --socket-path $CARDANO_NODE_SOCKET_PATH --port 8090 --mainnet to get this to work locally on my mac, i get returned "cardano-submit-api" cannot be opened because the developer cannot be verified" .
How do i work around this and get this fixed please? Any help appreciated mate!
thanks man, btw the instructions for mac work on linux (debian-based anyway). I just had to use 127.0.0.1 instead of localhost in ccvault settings. (and obviously use the linux binaries or build from source), changed appropriate paths, and added the first export to my $HOME/.profile
the test transaction i send was definitely confirmed faster than they have been recently 🙂
Hi! Thanks for all you do, I follow you on YouTube and Twitter.
I have my Daedalus and CCVault on different machines in the same network. I got thru the process, but get the error "Failed. Error: could not connect to the custom API endpoint".
For the endpoint "http://localhost:8090/api/submit/tx", I've substituted the IP address in place of "localhost". I'm able to ping Daedalus machine from CCVault machine.
Is there a way I can connect? What would be the syntax for the endpoint?
Any assistance here? I get this error I am able to confirm the first command works. When I execute the next command to start the Cardano Submit API, I see this error
PS C:\Users\Admin\Documents> $ENV:CARDANO_NODE_SOCKET_PATH \\.\pipe\cardano-node-mainnet.15168.0 PS C:\Users\Admin\Documents> .\cardano-submit-api.exe --mainnet --socket-path $ENV:CARDANO_NODE_SOCKET_PATH --config .\tx-submit-mainnet-config.yaml --port 8090 .\cardano-submit-api.exe : The term '.\cardano-submit-api.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + .\cardano-submit-api.exe --mainnet --socket-path $ENV:CARDANO_NODE_SO ... + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : ObjectNotFound: (.\cardano-submit-api.exe:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException
Hi, thank you for taking time for putting this info together its much apricated.
I have followed the steps and my Deadalus wallet is ready to go... however I am looking to run Nami wallet on a different PC, as a result I am assuming the address http://localhost:8090/api/submit/tx wouldn't work.
Please could you advise if running Nami on a different PC to my Deadalus node is possible, and breakdown what elements I would need to add to the custom address.
Hi Peter. Great tutorial. I have followed every step for the M1 Mac and got no error. I see the server is running on the terminal. However, after I input the URL into the custom node on the Nami wallet it still shows 0 ADA. Shouldn't Nami reflect the balance I have on Daedalous? Any ideas?
Hello Peter, I followed all your instructions to connect CCvault to Daedalus but when I try to send keep getting the message : Failed Error: could not connect to custom API endpoint. All commands inserted in Win Powershell tested fine and I toggled the switch for Custom Submit API Endpoint and pasted in http://localhost:8090/api/submit/tx and saved. What could be the problem? Pls, help, Thx
It works until the last step. With the last line of code i get "FatalError "Cannot find the logging configuration file at: .\\tx-submit-mainnet-config.yaml" I have the tx-submit-mainnet-config in the same folder as cardano-node-1.33.0-win64 and it is a yaml file.
It is working. My tx-submit-mainnet.config.yaml was not in RAW. That is the reason it did not function. I already did send 1 ADA to myself and it is working just perfectly. Thanks again for all you do for the Cardano cummunity.
Thanks for the great tutorial! After setting everything up as you did and trying a transaction this keeps happening. First it says "Transaction successfully submitted. ←[34m[cardano-tx-submit:Info:16]←[0m [2022-02-20 12:01:37.66 UTC] txSubmitPost: successfully submitted transaction [some number]"
However a few seconds after this I get the following message: ←[31m[cardano-tx-submit:Error:11]←[0m [2022-02-20 12:02:33.69 UTC] tx-submit-webapi.AsyncCancelled
Hereafter the connection does not work. Nami transactions fail and the connection seems to no longer be running.
All of this I completed, I even did the sending ada from daedalus to nami check and that worked. However when trying to submit any transaction on a site like sundaeswap/muesliswap, once I try to sign a transaction I get "Transaction Error. Could not submit transaction". Any idea why.
Thanks for the video. I'm having trouble with the config step. It appears the wget link doesn't appear to be working? I've pasted the code and error message below. Many thanks in adavnce!
I tried to repeat the process again and again and again to find out what is the issue but the same thing happens. I saw tour comment saying make sure to run the first two lines of code again so I tried that and still the same error.
Hi Peter, I got a question: when a transaction gets submitted the output on PowerShell says something like "txSubmitPost: successfully submitted transaction xxxxx", but this transaction number can't be used to look up the transaction on Cardanoscan. Is there a log file that shows the actual blockchain transaction ID, or can we tweak the output to show it (e.g., increasing the log level).
Hi there, when I try send ADA, it says Transaction Failed and on the Powershell it says this : ←[34m[cardano-tx-submit:Info:16]←[0m [2022-04-18 14:11:27.84 UTC] txSubmitPost: failed to submit transaction: transaction submit era mismatchEraMismatch {ledgerEraName = "Byron", otherEraName = "Alonzo"}
If you could help me out, that would be great thanks.
thanks a lot for sharing this priceless knowledge. I am a mac user and after the final step I get the following. Can you advise on what to do or why that is happening?
hey after i run this code, nothing happens. $ENV:CARDANO_NODE_SOCKET_PATH i have daed running, also in admin mode on powershell. i have the the yaml file. theyre all in the same folder os im confused.
Does the mac instructions essentially follow the same as for a Linux? I've updated with cardano-node-1.34.1 and have just about everything but don't know where to put port 8090. Do I write it in the .yaml file or is this some kind of default port?
It seemed to be going well in the beginning but in the second stage got this set of information which has thrown me off course.
Michaels-iMac:~ michaelmodeste$ cd Documents/ Michaels-iMac:Documents michaelmodeste$ cd nami-submit Michaels-iMac:nami-submit michaelmodeste$ ls cardano-node-1.33.0-macos cardano-node-1.33.0-macos.tar.gz cardano-node-1.33.0-macos (1).tar.gz Michaels-iMac:nami-submit michaelmodeste$ ls cardano-node-1.33.0-macos cardano-node-1.33.0-macos (2).tar.gz cardano-node-1.33.0-macos (1).tar.gz cardano-node-1.33.0-macos.tar.gz Michaels-iMac:nami-submit michaelmodeste$ tar -xf tar: Option -f requires an argument Usage: List: tar -tf Extract: tar -xf Create: tar -cf [filenames...] Help: tar --help Michaels-iMac:nami-submit michaelmodeste$ ls cardano-node-1.33.0-macos.tar.gz Michaels-iMac:nami-submit michaelmodeste$ ls cardano-node-1.33.0-macos Michaels-iMac:nami-submit michaelmodeste$ tar -xf tar: Option -f requires an argument Usage: List: tar -tf Extract: tar -xf Create: tar -cf [filenames...] Help: tar --help Michaels-iMac:nami-submit michaelmodeste$
First and foremost, thank you for making these videos!
I am using Windows 11. Daedalus is up and running fully synced. I type all the commands and everything goes well except the last step as you can see below:
This week I look at a few updates from the Cardano community. More projects are delivering new tooling along with new partnerships. Watch the Video If you prefer YouTube, you can watch it all on our channel. Project Catalyst Fund 9 is coming up Register for the upcoming town hall events. dcSpark Release Carp dcSpark […]
There are many projects launching, building and running through their marketing campaigns at the moment and as a result, many are releasing their utility and governance tokens to the ecosystem. This is our chance to pick up some of these tokens and participate on their platforms. Indigo Protocol Airdrop What's the currently proposed 3-round token […]
Seedstars in collaboration with the Financial Times Talent (FT Talent), Project Catalyst and Cardano are holding a pitch competition to gather the best of the best projects working in emerging markets around the world. Projects at any stage of development will be able to get their ideas and concepts in front of the Seedstars group […]
Every few months there are more and more Initial Stake Pool Offerings (ISPOs) that are starting up in the Cardano ecosystem. This unique funding method allows projects to raise the necessary funds required to build their projects while allowing for a relatively safe and risk free way to participate in the ecosystem. Genius X ISPO […]
Compounding your rewards on the VyFinance (VyFi) platform can earn your more rewards compared to simply leaving your rewards unattended. Compound interests is a powerful invention. Harvesting Rewards & Compounding Returns on VyFinance Did you remember to harvest your rewards on the VyFinance platform? I totally forgot! All of my NFTs had matured and were […]
One year ago today, I decided to open up a Cardano stake pool and I've ended up down a rabbit hole that I did not expect. My expectation was to simply start a pool, write a handful of articles about the pool and staking and watch the delegation come in. That was far from the […]
DISCLAIMER: The information on this site may contain errors or mistakes, please do your own research. Unofficial Cardano website. Past performance is not indicative of future results. Any investment in blockchain assets involves the risk of loss of part or all of your investment. The value of the blockchain assets you exchange is subject to market and other investment risks.
Curious as to why you left out instruction for connecting your nano wallet with cardano mode on a Mac. Is it the same
Instructions are on the documentation at the bottom. It's essentially the same, commands are a bit different but I don't have my mac synced yet to do the tutorial. It's coming soon.
Would be great if you would make a video for mac users.
It's coming. I need to sync Daedalus.
Wow, this is amazing! Can't believe I haven't found your channel before. Do you need to have the same wallet on Daedalus that you are going to use on Nami? It doesn't seem like you would but I wanted to ask. Really looking forward to the Mac video version as well.
No, in my latest version of the video, for doing this on MAC, you can see I don't have any wallets connected at all.
https://youtu.be/dpZX9eF9UUI
Just uploaded
I've tried your tutorial about 20 times now and I keep getting the following error: Invalid argument `.\tx-submit-mainnet-config.yaml'
I'm at my wits end! I've followed every single step maticulously and can't understand how it isn't working.
Daedalus is powered up, all files extracted included the YAML config file in the correct folder, but when I run the scripts in Power Shell it doesn't seem to recognise the tx-submit-mainnet-config.yaml file.
I bet you anything that the yaml file that you downloaded is a .txt file and not a .yaml file.
The command is throwing the error essentially saying that it can't find that config file.
Look for it in the directory, change it from 'tx-submit-mainnet-config.yaml.txt' to 'tx-submit-mainnet-config.yaml'
This needs adding as a warning to the instructions! Thanks 😀
mine is in yaml but still get the errors. i never see pipe come up.
I did this exactly but now it says: Invalid argument `Support/Daedalus'
Please tell me what to do
Thanks
It would be great to have a 5 year old explanation. It is not easy to config if you are just a regular dentist.
I could make a file that you click and it does all of that but you'd have to trust 100% that it is doing exactly as I say it's doing otherwise it could be doing anything to your computer.
If you copy the highlight commands line by line then it should work. Works each time for me when I fire this beast up.
Hey I am having the following trouble after i tried to submit the API, which is last command
The command
"(base) NithishChowdary1@MacBook-Pro nami-submit % ./cardano-submit-api --config tx-submit-mainnet-config.yaml --socket-path $CARDANO_NODE_SOCKET_PATH --port 8090 --mainnet"
The Error
"Invalid argument `8090'
Usage: cardano-submit-api --config FILEPATH
[ --shelley-mode
| --byron-mode [--epoch-slots NATURAL]
| --cardano-mode [--epoch-slots NATURAL]
]
(--mainnet | --testnet-magic NATURAL)
--socket-path FILEPATH
[--listen-address HOST]
[--port INT]
Cardano transaction submission web API."
Help me with it
I have a feeling the part of the command before it defines the port might not be working.
$CARDANO_NODE_SOCKET_PATH
This variable may not be set yet. Follow the first two lines of the code dump to make sure that this variable is set. Test to make sure you get that socket output.
Also, make sure Daedalus is running in the background. Let me know how you go.
After typing cd .\cardano-node-1.33.0-win64\ it tells me directory does not exist but the zip file & the unzipped files in the folder are in my docs.
It sounds like you're in the wrong folder.
The way I've set up the tutorial is to have it in your Documents folder.
Make sure it's in there and unzipped to the folder with the same name.
cd ~/
cd "NAME OF THE CARDANO NODE FOLDER"
You can type part of the name and press TAB key to auto complete.
when I enter $ENV:CARDANO_NODE_SOCKET_PATH = (Get-ChildItem \\.\pipe\ | Where-Object {$_.name -like "cardano-node*"}).FullName I dont get any change. I run the command to check & it seems to be doing nothing. I have Daedalus running & synced. I cant seem to get past accessing the folder.
That command won't do anything.
The command after "$ENV:CARDANO_NODE_SOCKET_PATH"
when entered will show you the output of what that environment variable is. If that doesn't appear, it's not finding Daedalus.
How can I fix this & make it find Daedalus? I make it into the correct location with the first 3 commands but nothing after that. I have Daedalus running & synced. Could files be getting removed when I unzip it to my Docs folder that would cause this? Thank you for your help.
Yeh the files may have been removed. A Virus scanner would remove them. If you have one installed you have to whitelist the files that you are using.
You could also be running the commands in the wrong folder. Make sure that the commands that you're running are in the same folder as you extracted all the files to.
I have made it into the directory folder but I cant get powershell to find Daedalus. I can't seem to get pipe address after I used the first command. After running $ENV:CARDANO_NODE_SOCKET_PATH = (Get-ChildItem \\.\pipe\ | Where-Object {$_.name -like "cardano-node*"}).FullName and then using $ENV:CARDANO_NODE_SOCKET_PATH to check to see it worked I get nothing. If I run .\cardano-submit-api.exe --mainnet --socket-path $ENV:CARDANO_NODE_SOCKET_PATH --config .\tx-submit-mainnet-config.yaml --port 8090 I get the result of Invalid argument '.\tx-submit-mainnet-config.ymal' I dont understand why this isn't working for me but I see others are having the same issue. Could this be from the recent update to Daedalus? Please help lol & thank you for all of this.
If the your check with the command: $ENV:CARDANO_NODE_SOCKET_PATH
Didn't work, then the rest won't work.
This stumped me too. It will only work if Daedalus is running and FULLY synced. If it's still updating it won't work at all. My first sync was 36 hours and then the bloody upgrade from 4.7 to 4.8 took another 3 hours.
Hi all,
I am having the exact same issue. Does anyone was able to find the root cause or was able to solve it?
Thanks m8s
Hi mate,
Getting this error on Powershell-
Get-ChildItem : Illegal characters in path.
At line:1 char:34
+ $ENV:CARDANO_NODE_SOCKET_PATH = (Get-ChildItem \\.\pipe\ | Where-Obje ...
+ ~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (\\.\pipe\:String) [Get-ChildItem], ArgumentException
+ FullyQualifiedErrorId : DirArgumentError,Microsoft.PowerShell.Commands.GetChildItemCommand
Any advice? Thanks
That's a weird one as you're just setting a variable there. It's not liking some of the text characters that are in the formatting maybe. I'll copy all the commands to a text Pastebin and try copying from that. Give me 10, it will be above the step by step tutorial
First, thanks for the work put in here. Greatly appreciated!
My experience...was able to complete steps above. Downloading the .yaml file automatically got the .txt extension so had to rename that. Might be worth a note to confirm the filename after downloading.
A few questions:
- I submitted a swap. PowerShell nearly immediately "successfully submitted transaction...". Nami took 13 minutes before showing in my history and both Nami and Cardanoscan showed that the timestamp was the later time. Assuming this is 'normal' but curious as to why the delay?
- Does PowerScript need to remain open?
Appreciate you....
Yes, that's right. I also got the .txt extension, so the way I described avoids that. Some still get it.
The process works by submitting your transaction to your node. That is when you get your success message. Great. At that point, you need to leave everything on and running as the transaction is on your node and patiently waiting for a space on a block to be included.
In your case, it took 13 minutes to it to submit from your Daedalus node to the blockchain. The usual wait time is still around 10 minutes even with this method. You do have to wait for that Nami wallet confirmation and keep Daedalus open in the background and PowerShell all that time. (well not Powershell but def Daedalus)
It is also good to NOT do another transaction until the first is finished.
dyld: Library not loaded: @executable_path/libffi.7.dylib
Referenced from: /Users/patrickwalker/Documents/nami-submit/./cardano-submit-api
Reason: image not found
zsh: abort ./cardano-submit-api --config tx-submit-mainnet-config.yaml --socket-path patri@Ls-MacBook-Pro nami-submit %
Get to this part and I'm lost. Also, the terminal on my Mac does not recognize the command wget - I tried using cURL instead but I'm not sure if that downloads that .yaml file or not. Great video Peter, I'm just a bit new to this.
It's either one of two things.
1) You're in the wrong folder
I can see you're in /Users/patrickwalker/Documents/nami-submit/ Check to see where those Cardano Node files were unzipped to. We're the unzipped to the NAMI-SUBMIT folder or are then in another subfolder called "Cardano-node-1.33.0-xxxxxxxx" If there is that folder, you either need to move into that folder or move those files up one to the Nami-submit folder. You can do this in finder, might be a bit easier.
2) The files are missing
Your Mac may have blocked access to the files. Can you confirm that the files are there in debug step 1? As to unblock access to apps or executables, it's a system security thing that you have to allow. On the PC we can RUN AS ADMINISTRATOR, on the Mac you have to enable file access to apps.
Thank you for your help Peter! I've had this working successfully for a couple of weeks now and I can't thank you enough for setting up this easy to follow tutorial!! I went to try something today and got this message in my terminal: "Network.Socket.connect: : does not exist (No such file or directory)"
Any idea what this one is? Thank you again for you help!!
Hello,
I have Daedalus running on a PC with my local IP 192.168.1.72
I use Nami wallet in another PC in the same network with IP 192.168.1.33
The node run as "Running server on 127.0.0.1:8090"
I understand I will have to specify in Nami Wallet something like this:
http://192.168.1.72:8090/api/submit/tx as Nami wallet is not in the same PC where my custom node is running. But I am not sure yet where I have to configure the Cardano node put put the local IP as 192.168.1.72 instead of the 127.0.0.1.
Could you advise?
How to check also after that the custom node is running with: Running server on 192.168.1.72:8090 ?
Your tutorial assumes that the node and Nami are in the same PC, but it is not in my case.
Thanks
When i run the following command:
wget https://raw.githubusercontent.com/input-output-hk/cardano-node/master/cardano-submit-api/config/tx-submit-mainnet-config.yaml
I get returned the following output:
-bash: wget: command not found
Are you able to give any advice on where to go from here please?
Hi peter,
When i try and run the last step ./cardano-submit-api --config tx-submit-mainnet-config.yaml --socket-path $CARDANO_NODE_SOCKET_PATH --port 8090 --mainnet to get this to work locally on my mac, i get returned "cardano-submit-api" cannot be opened because the developer cannot be verified"
.
How do i work around this and get this fixed please? Any help appreciated mate!
thanks man, btw the instructions for mac work on linux (debian-based anyway). I just had to use 127.0.0.1 instead of localhost in ccvault settings. (and obviously use the linux binaries or build from source), changed appropriate paths, and added the first export to my $HOME/.profile
the test transaction i send was definitely confirmed faster than they have been recently 🙂
Hi Peter,
I'm running
"./cardano-submit-api --config tx-submit-mainnet-config.yaml --socket-path $CARDANO_NODE_SOCKET_PATH --port 8090 --mainnet"
common and keep getting
"Invalid argument `Support/Daedalus' " error.
I've confirmed Daedalus is 100% synced and running in background (v4.8.0)
Any thoughts on how tot fix this
Hi! Thanks for all you do, I follow you on YouTube and Twitter.
I have my Daedalus and CCVault on different machines in the same network. I got thru the process, but get the error "Failed. Error: could not connect to the custom API endpoint".
For the endpoint "http://localhost:8090/api/submit/tx", I've substituted the IP address in place of "localhost". I'm able to ping Daedalus machine from CCVault machine.
Is there a way I can connect? What would be the syntax for the endpoint?
Any assistance here? I get this error I am able to confirm the first command works. When I execute the next command to start the Cardano Submit API, I see this error
PS C:\Users\Admin\Documents> $ENV:CARDANO_NODE_SOCKET_PATH
\\.\pipe\cardano-node-mainnet.15168.0
PS C:\Users\Admin\Documents> .\cardano-submit-api.exe --mainnet --socket-path $ENV:CARDANO_NODE_SOCKET_PATH --config .\tx-submit-mainnet-config.yaml --port 8090
.\cardano-submit-api.exe : The term '.\cardano-submit-api.exe' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ .\cardano-submit-api.exe --mainnet --socket-path $ENV:CARDANO_NODE_SO ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (.\cardano-submit-api.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
Hi, thank you for taking time for putting this info together its much apricated.
I have followed the steps and my Deadalus wallet is ready to go... however I am looking to run Nami wallet on a different PC, as a result I am assuming the address http://localhost:8090/api/submit/tx wouldn't work.
Please could you advise if running Nami on a different PC to my Deadalus node is possible, and breakdown what elements I would need to add to the custom address.
Thanks again
Hi Peter
I am on mac but getting the error: Invalid argument `Support/Daedalus'
Can't figure out why. Any ideas?
Thanks
Hi Peter. Great tutorial. I have followed every step for the M1 Mac and got no error. I see the server is running on the terminal. However, after I input the URL into the custom node on the Nami wallet it still shows 0 ADA. Shouldn't Nami reflect the balance I have on Daedalous? Any ideas?
Hello Peter,
I followed all your instructions to connect CCvault to Daedalus but when I try to send keep getting the message :
Failed
Error: could not connect to custom API endpoint.
All commands inserted in Win Powershell tested fine and I toggled the switch for Custom Submit API Endpoint and pasted in http://localhost:8090/api/submit/tx and saved.
What could be the problem?
Pls, help, Thx
Hi Peter.
Thank you for this tutorial.
It works until the last step.
With the last line of code i get "FatalError "Cannot find the logging configuration file at: .\\tx-submit-mainnet-config.yaml"
I have the tx-submit-mainnet-config in the same folder as cardano-node-1.33.0-win64 and it is a yaml file.
Any suggestions?
Appreciate your help
Hi Peter.
It is working. My tx-submit-mainnet.config.yaml was not in RAW.
That is the reason it did not function.
I already did send 1 ADA to myself and it is working just perfectly.
Thanks again for all you do for the Cardano cummunity.
Michael
Hi,
Thanks for the great tutorial!
After setting everything up as you did and trying a transaction this keeps happening. First it says "Transaction successfully submitted.
←[34m[cardano-tx-submit:Info:16]←[0m [2022-02-20 12:01:37.66 UTC] txSubmitPost: successfully submitted transaction [some number]"
However a few seconds after this I get the following message: ←[31m[cardano-tx-submit:Error:11]←[0m [2022-02-20 12:02:33.69 UTC] tx-submit-webapi.AsyncCancelled
Hereafter the connection does not work. Nami transactions fail and the connection seems to no longer be running.
Do you know how I can fix this?
Thanks in advance 🙂
All of this I completed, I even did the sending ada from daedalus to nami check and that worked. However when trying to submit any transaction on a site like sundaeswap/muesliswap, once I try to sign a transaction I get "Transaction Error. Could not submit transaction". Any idea why.
After entering
./cardano-submit-api --config tx-submit-mainnet-config.yaml --socket-path $CARDANO_NODE_SOCKET_PATH --port 8090 --mainnet
I get
Invalid argument `Support/Daedalus'
What am I doing wrong? Thank you.
Hi Peter
Thanks for the video. I'm having trouble with the config step. It appears the wget link doesn't appear to be working? I've pasted the code and error message below. Many thanks in adavnce!
Sir-Bobby-Digital-MBP:NamiSubmit robcbradley$ tar -xf cardano-node-1.33.0-macos.tar.gz
Sir-Bobby-Digital-MBP:NamiSubmit robcbradley$ ls
cardano-cli libcharset.1.dylib
cardano-node libffi.7.dylib
cardano-node-1.33.0-macos.tar.gz libgmp.10.dylib
cardano-node-chairman libiconv-nocharset.dylib
cardano-submit-api libiconv.dylib
cardano-testnet libsodium.23.dylib
cardano-topology libz.dylib
cardano-tracer locli
chain-sync-client-with-ledger-state scan-blocks
configuration scan-blocks-pipelined
demo-acceptor stake-credential-history
demo-forwarder trace-dispatcher-examples
ledger-state
Sir-Bobby-Digital-MBP:NamiSubmit robcbradley$ wget https://raw.githubusercontent.com/input-output-hk/cardano-node/master/cardano-submit-api/config/tx-submit-mainnet-config.yaml
-bash: wget: command not found
Hi Peter
I'm getting an error at the config stage? I'm getting an error say wget: command not found?
Sir-Bobby-Digital-MBP:NamiSubmit robcbradley$ tar -xf cardano-node-1.33.0-macos.tar.gz
Sir-Bobby-Digital-MBP:NamiSubmit robcbradley$ ls
cardano-cli libcharset.1.dylib
cardano-node libffi.7.dylib
cardano-node-1.33.0-macos.tar.gz libgmp.10.dylib
cardano-node-chairman libiconv-nocharset.dylib
cardano-submit-api libiconv.dylib
cardano-testnet libsodium.23.dylib
cardano-topology libz.dylib
cardano-tracer locli
chain-sync-client-with-ledger-state scan-blocks
configuration scan-blocks-pipelined
demo-acceptor stake-credential-history
demo-forwarder trace-dispatcher-examples
ledger-state
Sir-Bobby-Digital-MBP:NamiSubmit robcbradley$ wget https://raw.githubusercontent.com/input-output-hk/cardano-node/master/cardano-submit-api/config/tx-submit-mainnet-config.yaml
-bash: wget: command not found
After:
./cardano-submit-api --config tx-submit-mainnet-config.yaml --socket-path $CARDANO_NODE_SOCKET_PATH --port 8090 --mainnet
I get this error:
Invalid argument `Support/Daedalus'
Usage: cardano-submit-api --config FILEPATH
[ --shelley-mode
| --byron-mode [--epoch-slots NATURAL]
| --cardano-mode [--epoch-slots NATURAL]
]
(--mainnet | --testnet-magic NATURAL)
--socket-path FILEPATH
[--listen-address HOST]
[--port INT]
Cardano transaction submission web API.
hey guys
I need a little help, after executing this command
.\cardano-submit-api.exe --mainnet --socket-path $ENV:CARDANO_NODE_SOCKET_PATH --config .\tx-submit-mainnet-config.yaml --port 8090
I keep getting this error message,
cardano-submit-api.exe: FatalError {fatalErrorMessage = "Cannot find the logging configuration file at : .\\tx-submit-mainnet-config.yaml"}
PS C:\Users\Dell\Documents\cardano-node-1.33.0-win64>
been frustrating for a while.
Invalid argument `Support/Daedalus'
Usage: cardano-submit-api --config FILEPATH
[ --shelley-mode
| --byron-mode [--epoch-slots NATURAL]
| --cardano-mode [--epoch-slots NATURAL]
]
(--mainnet | --testnet-magic NATURAL)
--socket-path FILEPATH
[--listen-address HOST]
I tried to repeat the process again and again and again to find out what is the issue but the same thing happens. I saw tour comment saying make sure to run the first two lines of code again so I tried that and still the same error.
Hi Peter, I got a question: when a transaction gets submitted the output on PowerShell says something like "txSubmitPost: successfully submitted transaction xxxxx", but this transaction number can't be used to look up the transaction on Cardanoscan. Is there a log file that shows the actual blockchain transaction ID, or can we tweak the output to show it (e.g., increasing the log level).
Hi there, when I try send ADA, it says Transaction Failed and on the Powershell it says this : ←[34m[cardano-tx-submit:Info:16]←[0m [2022-04-18 14:11:27.84 UTC] txSubmitPost: failed to submit transaction: transaction submit era mismatchEraMismatch {ledgerEraName = "Byron", otherEraName = "Alonzo"}
If you could help me out, that would be great thanks.
if i close powershell. does it reset daedalus and nami to its old setting and would work normally?
Hi Peter,
thanks a lot for sharing this priceless knowledge. I am a mac user and after the final step I get the following. Can you advise on what to do or why that is happening?
Invalid argument `Support/Daedalus'
Usage: cardano-submit-api --config FILEPATH
[ --shelley-mode
| --byron-mode [--epoch-slots NATURAL]
| --cardano-mode [--epoch-slots NATURAL]
]
(--mainnet | --testnet-magic NATURAL)
--socket-path FILEPATH
[--listen-address HOST]
[--port INT]
Cardano transaction submission web API.
hey after i run this code, nothing happens. $ENV:CARDANO_NODE_SOCKET_PATH
i have daed running, also in admin mode on powershell. i have the the yaml file. theyre all in the same folder os im confused.
Hi, will this method work if I have my daedalus node up and running in computer A in my parents home and nami wallet in computer B in my home?
Thanks for such a good tutorial
Does the mac instructions essentially follow the same as for a Linux? I've updated with cardano-node-1.34.1 and have just about everything but don't know where to put port 8090. Do I write it in the .yaml file or is this some kind of default port?
Anyways I've gotten all the way to just pasting in the address to the nami custom settings
Hello just tried to set this up withou apparent problem/error but when I try to do a transaction I get
CreateFile "\\\\.\\pipe\\cardano-node-mainnet.11884.1": does not exist (The system cannot find the file specified.)
It seemed to be going well in the beginning but in the second stage got this set of information which has thrown me off course.
Michaels-iMac:~ michaelmodeste$ cd Documents/
Michaels-iMac:Documents michaelmodeste$ cd nami-submit
Michaels-iMac:nami-submit michaelmodeste$ ls
cardano-node-1.33.0-macos cardano-node-1.33.0-macos.tar.gz
cardano-node-1.33.0-macos (1).tar.gz
Michaels-iMac:nami-submit michaelmodeste$ ls
cardano-node-1.33.0-macos cardano-node-1.33.0-macos (2).tar.gz
cardano-node-1.33.0-macos (1).tar.gz cardano-node-1.33.0-macos.tar.gz
Michaels-iMac:nami-submit michaelmodeste$ tar -xf
tar: Option -f requires an argument
Usage:
List: tar -tf
Extract: tar -xf
Create: tar -cf [filenames...]
Help: tar --help
Michaels-iMac:nami-submit michaelmodeste$ ls
cardano-node-1.33.0-macos.tar.gz
Michaels-iMac:nami-submit michaelmodeste$ ls
cardano-node-1.33.0-macos
Michaels-iMac:nami-submit michaelmodeste$ tar -xf
tar: Option -f requires an argument
Usage:
List: tar -tf
Extract: tar -xf
Create: tar -cf [filenames...]
Help: tar --help
Michaels-iMac:nami-submit michaelmodeste$
Some progression but still not completed.
Michaels-iMac:nami-submit michaelmodeste$ wget https://raw.githubusercontent.com/input-output-hk/cardano-node/master/cardano-submit-api/config/tx-submit-mainnet-config.yaml
-bash: wget: command not found
Michaels-iMac:nami-submit michaelmodeste$
Michaels-iMac:nami-submit michaelmodeste$ wget https://raw.githubusercontent.com/input-output-hk/cardano-node/master/cardano-submit-api/config/tx-submit-mainnet-config.yaml
-bash: wget: command not found
Michaels-iMac:nami-submit michaelmodeste$
I'm having trouble with linking the Daedalus wallet for API transactions, getting most of it done up until it then says command not found after attempting to install wget https://raw.githubusercontent.com/input-output-hk/cardano-node/master/cardano-submit-api/config/tx-submit-mainnet-config.yaml
First and foremost, thank you for making these videos!
I am using Windows 11. Daedalus is up and running fully synced. I type all the commands and everything goes well except the last step as you can see below:
PS C:\Users\vou> cd .\Documents\
PS C:\Users\vou\Documents> cd .\cardano-node-1.33.0-win64\
PS C:\Users\vou\Documents\cardano-node-1.33.0-win64>
PS C:\Users\vou\Documents\cardano-node-1.33.0-win64> $ENV:CARDANO_NODE_SOCKET_PATH = (Get-ChildItem \\.\pipe\ | Where-Object {$_.name -like "cardano-node*"}).FullName
PS C:\Users\vou\Documents\cardano-node-1.33.0-win64> $ENV:CARDANO_NODE_SOCKET_PATH
\\.\pipe\cardano-node-mainnet.11856.0
PS C:\Users\vou\Documents\cardano-node-1.33.0-win64> .\cardano-submit-api.exe --mainnet --socket-path $ENV:CARDANO_NODE_SOCKET_PATH --config .\tx-submit-mainnet-config.yaml --port 8090
cardano-submit-api.exe: FatalError {fatalErrorMessage = "Cannot find the logging configuration file at : .\\tx-submit-mainnet-config.yaml"}
Also, I went to my Documents folder to see if the YAML file is saved as YAML and not as txt, and the "Type" column says: "YAML File"
The YAML file is saved in the "cardano-node-1.33.0-win64" folder
Please, is there anything else I could do?
Thanks in advance!
wow, this is a nice content and also really helpful, Donvakthanks for making it easier to understand
Running into this error on the last step. Daedalus is running and synced
Ryans-iMac:nami-submit iMac$ ./cardano-submit-api --config tx-submit-mainnet-config.yaml --socket-path $CARDANO_NODE_SOCKET_PATH --port 8090 --mainnet
Invalid argument `Support/Daedalus'
Usage: cardano-submit-api --config FILEPATH
[ --shelley-mode
| --byron-mode [--epoch-slots NATURAL]
| --cardano-mode [--epoch-slots NATURAL]
]
(--mainnet | --testnet-magic NATURAL)
--socket-path FILEPATH
[--listen-address HOST]
[--port INT]
Cardano transaction submission web API.