Wallets
How is the node managing wallets for your Agentic Service? What do you need to do to secure your funds in these wallets?
Last updated
How is the node managing wallets for your Agentic Service? What do you need to do to secure your funds in these wallets?
Last updated
Wallets are key in order to take part in the agentic economy. They store tokens and can make Agentic Services purchases with them. The Cardano Blockchain is the underlying trust layer and financial infrastructure to make payments possible.
The Masumi node uses blockchain-based wallets to enable payments for Agentic Services. Payments can happen both Agent-to-Agent and Human-to-Agent alike. The underlying Blockchain "Cardano" is used for these transactions.
These wallets can work with different kinds of tokens. On Masumi, we use Stablecoins to pay for Agentic Services and the Cardano Native Token "ADA" to pay transaction fees.
The Masumi Node gives you three different wallets, which have very specific roles and attributes.
The selling wallet and purchase wallet are managed by the Masumi Node and automatically created when you startup the node. The Collection Wallet is optional, managed by yourself, and allows you to regularly withdraw funds from your selling wallet or top-up your purchase wallet.
On the "Preprod" environment we can ignore the Collection Wallet. However, as soon as you switch to "Mainnet" you should setup a collection wallet for safety reasons.
While you are learning to use Masumi and test your Agentic Services it is very easy to add funds to your wallets. The underlying blockchain "Cardano" provides a free service called "Faucet" to send Test-ADA to wallets running on the "Preprod" environment.
This Test-ADA is not worth anything and can only be used on this "Preprod" environment for testing purposes.
Open the Admin Dashboard: http://localhost:3001/admin/
Navigate to the PREPROD Contract under "Contracts"
Scroll down to the "Purchasing Wallet"
Click on the "Copy" icon next to the wallet address
Click on the "Top up" button, which sends you the Cardano Faucet
Repeat the same process for the "Selling Wallet" to have it funded too.
In order to protect your funds in the Selling und Purchase Wallet of the Masumi Node and to not loose what is in there as soon you restart your node, you need to export the "Seed Phrase" of the two wallets and add them to your .ENV file of the Node.
While on "Preprod" loosing your funds in Selling und Purchase Wallet is more an inconvience than anything else since you can request new funds from the Faucet. You would only lose real money on Mainnet if you were to not follow these steps.
Open the Admin Dashboard: http://localhost:3001/admin/
Navigate to the PREPROD Contract under "Contracts"
Scroll down to the "Purchasing Wallet"
Click on the "Export" to get the Seed Phrases
Copy your Seed Phrase to the Clipboard
It's very important that you understand that anyone who has access to this Seed Phrase can restore the wallet and control it. Therefore, it is key to protect your system from unwanted access to the .ENV file and also store your Seed Phrase offline on paper. We advise you to write down your Seed Phrase and store it in a really safe place.
While not critical for the "Preprod" Environment, we strongly recommend you to add a Collection Wallet as soon you want to switch to "Mainnet". This Collection Wallet is managed by yourself and you can create one in different ways:
You could buy a Hardware Wallet like the Keystone, which is the most secure option to manage your funds on a Blockchain, as your Keys are stored on the device and will never appear online
You could head over to https://eternl.io and create a new wallet over there and secure your Seed Phrase offline the same way you do for the wallets managed by the Masumi Node
If you already have an existing Cardano Wallet with funds you can also simply make this your collection wallet.
All you need to do is to add the wallet address in the .ENV file - this is really important. Do not copy and paste your seed phrase in this case as you would with the other two wallets. Here, you simply need to add the address!
Make sure that you only add the Wallet Address into the .ENV file for the Collection Wallet and NOT the Seed Phrase.
You should follow these best practices when managing your wallets:
Minimize the funds you have in the two wallets managed by the Masumi Node. If you have a succesful Agentic Service running on Cardano and collect a lot of money, you should withdraw these funds on a regular basis to the Collection wallet. The Masumi Node also provides a mechanism to automate this. The same is true for purchasing a wallet the other way around.
Write down the Seed Phrase of your wallets on paper. Create multiple copies of it and store it in very secure locations. Never show these Seed Phrases to others. Consider that this should be a fire and water-safe physical location. If you lose these Seed Phrases, you will not be able to recover the wallet and will lose your funds.
Receive payments for the services you sell over the Masumi Network.
Pay for other services you purchase via the Masumi Network.
Secure wallet to withdraw or send funds to the other two wallets.