godot-solana-sdk

Build Solana-enabled Godot 4 projects with GDScript nodes for RPC, transactions, and wallets.

77|19|Updated Mar 25, 2023
One-click install
npx skills add https://github.com/Virus-Axel/godot-solana-sdk --skill godot-solana-sdk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: godot-solana-sdk
Source: https://github.com/Virus-Axel/godot-solana-sdk/tree/main
Command: npx skills add https://github.com/Virus-Axel/godot-solana-sdk --skill godot-solana-sdk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill removes the friction of integrating Solana blockchain functionality into Godot 4 projects by providing ready-to-use GDScript-facing nodes and resources for RPC calls, transactions, wallets, and common Solana programs.

Core Features & Use Cases

  • Send transactions from Godot (SolanaClient + Transaction): call RPC endpoints, build/sign/send transactions, and await confirmation stages.
  • Manage wallets (WalletAdapter / WalletService): integrate browser/mobile wallet adapters (e.g., Phantom/Solflare/Backpack) or use keypairs for desktop/server scenarios.
  • Interact with core Solana and common program ecosystems: create and send SPL token instructions, derive PDAs/ATAs, and build Candy Machine / Candy Guard / Anchor program instructions.
  • Example workflows: fetch on-chain accounts and balances for UI, mint NFTs from Candy Machine, and call Anchor instructions using loaded IDLs.

Quick Start

Configure your Godot project to load the Solana SDK, then create a SolanaClient and Transaction nodes to fetch account data or build and send a transfer on a selected cluster.

Frequently Asked Questions about godot-solana-sdk

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I integrate a Solana wallet like Phantom into a Godot game?

You can integrate Solana wallets into Godot using wallet adapters that handle connection requests for browsers like Phantom or Solflare. This SDK provides a WalletService to manage adapter connections and keypair configurations for desktop scenarios.

Can I mint NFTs from a Candy Machine directly in Godot 4?

Yes, you can mint NFTs from a Candy Machine directly in Godot 4. The SDK provides GDScript resources to build Candy Machine and Candy Guard instructions, allowing you to construct and send minting transactions from within your game scene.

How do I send SOL and SPL tokens from a Godot script?

To send SOL or SPL tokens from Godot, you build and sign transactions using dedicated GDScript nodes. The SDK provides a Transaction node for sign-and-send workflows and resources for creating SPL token instructions.

Does this Solana SDK support calling Anchor programs in Godot?

Yes, this Solana SDK supports calling Anchor programs in Godot. You can load program IDLs and build Anchor instructions using the provided GDScript resources to interact with custom smart contracts.

What is the best way to fetch on-chain account balances for a Godot game UI?

The best way to fetch on-chain account balances for a Godot UI is using the SolanaClient node. It handles asynchronous RPC and WebSocket operations to retrieve account data, which you can then display in your game interface.

Do I need to set up a SolanaService autoload to use Solana in Godot?

Yes, you need to set up a SolanaService autoload to use Solana in Godot. Configuring this autoload correctly ensures your project can initialize the SolanaClient and manage wallet configurations across different scenes.