OpenClaw AI Agent Tutorial: Autonomous Wallets on Base and Solana - Part 1

Tuesday, February 10, 2026 by kimoisteve
OpenClaw AI Agent Tutorial: Autonomous Wallets on Base and Solana - Part 1

OpenClaw AI Agent Tutorial: Autonomous Wallets on Base and Solana - Part 1

Introduction

This tutorial provides a comprehensive guide to setting up and utilizing OpenClaw AI agents for managing autonomous cryptocurrency wallets on both the Base and Solana networks. You will learn how to deploy OpenClaw on a Hostinger instance, configure messaging channels for interaction, and perform secure transactions on testnets before transitioning to mainnets. This first part focuses on the initial setup and wallet creation on the Base network, followed by a brief overview of Solana wallet setup.

Setting Up OpenClaw and Messaging Channels

Hostinger Instance and OpenClaw Installation

Begin by signing up for a Hostinger account. Set up OpenClaw on Hostinger using this tutorial: https://www.hostinger.com/support/how-to-install-openclaw-on-hostinger-vps/

This offers a cost-effective and secure environment for deploying OpenClaw, ideal for users seeking alternatives to local hardware solutions like a Mac Mini.

Messaging Channels and Onboarding

Navigate to Docker Manager > Projects > Terminal.

Docker projects manager section
Docker projects manager section
Docker terminal chat section
Docker terminal chat section

Install OpenClaw by running the command:

curl -fsSL https://openclaw.ai/install.sh | bash

Then run the onboarding command

openclaw onboard --install-daemon

Complete the setup steps according to your preferences.

Onboarding terminal getting started
Onboarding terminal getting started

Carefully read the security warning to understand the repercussions of installation. Once you have a clear understanding, proceed by clicking "Yes."

For Onboarding Mode, select "Quickstart."

Model/Auth Provider: Select your preferred model provider. We recommend Google/Gemini for this tutorial.

Onboarding model provider selection
Onboarding model provider selection

Then select Gemini API Key

Onboarding google auth provider
Onboarding google auth provider
  1. Go to Google AI Studio and get your API key there

Then insert it.

On the Default model choose your preferred model, but you can select "Keep Current"

Model Choosing
Model Choosing

Communication Channel: For the communication channel, we will select Telegram due to its widespread use, but you are free to choose any of your preferred communication channels.

Go to @BotFather on telegram, then create a new bot by running the command /newbot

Follow the prompts then copy the bot token.

Telegram bot setup
Telegram bot setup

Then, configure the allowed username(s) that can direct message your bot.

For more info, you can check this documentation

Completing Setup: Upon successful setup, you can begin interacting with the bot via Telegram or the terminal. This tutorial will proceed using the terminal interface.

The bot will then prompt you to:

  1. Give it a name
  2. Give it your name (what it will be calling you)
  3. Give it the personality it will be portraying as

Feel free to customize these settings to align with your preferences.

Creating a Wallet on Base

Wallet Creation

In this straightforward step, you will instruct the agent to set up a new wallet on the Base network for token transactions.

This is the prompt we will use:

Create a new wallet on Base that you will use to receive and send USDC stablecoins. First, set it up on the Base Sepolia testnet so you can receive test tokens and practice transactions safely. After confirming everything works on testnet, prepare the same setup for use on Base mainnet.
Set up wallet prompt
Set up wallet prompt

This is the expected response, as wallet creation may take some time.

Expected Response
Expected Response

Once it is done, this is the response that you'll see

Final response
Final response

Obtaining USDC Test Funds

The next step involves acquiring test USDC funds for your newly created wallet.

Go to Coinbase Developer Platform Faucet, sign up and select:

  1. Network as sepolia
  2. Token as USDC
  3. Send to address: insert your address

Then click on Claim 1 USDC.

Afterward, send a prompt to confirm the receipt of 1 USDC:

I have just sent 1 test USDC to your Base Sepolia wallet from the Coinbase Developer Faucet. Please verify that you have received it by checking the USDC balance on Base Sepolia and confirm:
1) whether the 1 USDC has arrived,
2) your current USDC balance,
3) the hash, block number, and timestamp of the latest incoming USDC transaction.

This will be the expected response:

Funds Deposited Confirmation
Funds Deposited Confirmation

Testing a Transaction

The next step is to test the transaction functionality.

Open your MetaMask wallet (or any other wallet you use) and ensure it's connected to the Base Sepolia network.

Then, select the receiving address for Base Sepolia USDC.

receive base sepolia USDC
receive base sepolia USDC

Copy the address and tell the agent to send 0.3 USDC to that address:

Send 0.3 USDC from your Base Sepolia wallet to the following recipient address on Base Sepolia: <your_wallet_address>. After sending, confirm that the transaction was successful by sharing the transaction hash and your updated USDC balance.

You also need to ensure you have enough ETH for gas fees, you can get more eth at the Coinbase Developer Platform Faucet

Once the transaction successfully completes, the expected output is:

Expected output
Expected output

And you can also confirm it in the Block Explorer

Block explorer confirmation
Block explorer confirmation

And you can see the balance goes from 1 USDC to 0.7 USDC

This concludes the setup and testing of your AI Agent's autonomous wallet on the Base network. Next, we will explore practical solutions that can be built using this functionality.

Resources

Creating a Wallet on Solana

Wallet Creation

Similar to the Base network, this step involves instructing the agent to set up a Solana wallet for token transactions.

This is the prompt we will use:

Create a new wallet on Solana that you will use to receive and send USDC, and hold SOL for transaction fees. First, set it up on the Solana devnet so you can receive test tokens and practice transactions safely. After confirming everything works on devnet, prepare the same setup for use on Solana mainnet.

This will be the expected output

Solana wallet
Solana wallet

Obtaining USDC/SOL Test Funds

The next step is to acquire test funds for your Solana wallet.

Go to a Solana devnet faucet such as the official Solana Faucet, then:

  1. Select Devnet as the network
  2. Request SOL to the agent’s Solana devnet address (for gas fees)
  3. Optionally, use a devnet USDC faucet or test-token mint (if available) to send USDC to the same address
Solana Devnet funds receive
Solana Devnet funds receive

Afterward, send a prompt to confirm the receipt of the test funds:

I have just sent you test SOL (and USDC if available) on Solana devnet to your wallet address. Please verify that you have received them by checking your balances on Solana devnet and confirm:
1) whether the new funds have arrived,
2) your current SOL and USDC balances,
3) the signature, slot, and timestamp of the latest incoming transaction.

This is the expected response:

Solana Deposit Confirmed
Solana Deposit Confirmed

Testing a Transaction

If you haven't already, download the Phantom wallet here.

Open your Solana wallet (for example, Phantom) and switch it to the Devnet network.

Then, click on the SOL address to receive funds from your OpenClaw agent.

Phantom Wallet Receive
Phantom Wallet Receive

Copy your wallet’s Solana devnet receiving address.

Then tell the agent to send a small amount to that address:

Send 0.3 USDC (or an equivalent small amount of SOL if USDC is not available) from your Solana devnet wallet to the following recipient address: <your_solana_wallet_address>. After sending, confirm that the transaction was successful by sharing the transaction signature and your updated token balance.

You also need to ensure the agent’s wallet has enough SOL to pay for transaction fees; you can always request more SOL from the Solana Faucet on devnet.

Upon successful completion, you will see:

SOL Sent Successfully
SOL Sent Successfully

Conclusion

This tutorial has demonstrated the powerful capability of OpenClaw AI agents to manage autonomous wallets on both Base and Solana networks. The ability to perform complex blockchain transactions by simply providing instructions, without writing a single line of code, represents a significant advancement in decentralized application development. This paradigm shift empowers users to interact with blockchain ecosystems more intuitively and efficiently, opening doors to innovative solutions and broader adoption of AI-driven automation in the web3 space.

We encourage you to explore the potential of autonomous agents further and discover how they can streamline your interactions with various blockchain platforms.

Similar Tutorials

Upcoming AI Hackathons and Events