Config Program IDL

nativev0.0.0Core / Runtime
Program Address
Config1111111111111111111111111111111111111
On-chain

Solana Config program stores on-chain configuration data used by validators and the runtime. Manages network-level settings and validator identity mappings.

2
Instructions
0
Accounts
0
Events
1
Types

Instructions

create_accountconfig_account_pubkey

Integration Examples

Use the Config Program IDL in your application with these code examples for TypeScript, Rust, and Python.

import { Connection, PublicKey } from "@solana/web3.js";
import { Program, AnchorProvider, Idl } from "@coral-xyz/anchor";

// Load the Config Program IDL
import idl from "./config program.json";

const PROGRAM_ID = new PublicKey("Config1111111111111111111111111111111111111");

// Set up the provider and program
const connection = new Connection("https://api.mainnet-beta.solana.com");
const provider = new AnchorProvider(connection, wallet, {
  commitment: "confirmed",
});
const program = new Program(idl as Idl, provider);

// Fetch and decode an account
const accountData = await program.account.config_Program
  .fetch(accountPublicKey);
console.log("Account data:", accountData);

// Build and send an instruction
const tx = await program.methods
  .initialize(/* ...args */)
  .accounts({
    /* ...required accounts */
  })
  .rpc();
console.log("Transaction signature:", tx);

IDL JSON Preview

config program.json
{
  "version": "0.0.0",
  "name": "config",
  "docs": [
    "Unlike the other programs, the Config program does not define any individual instructions.",
    "It has just one implicit instruction, a \"store\" instruction.",
    "Its instruction data is a set of keys that gate access to the account, and the data to store in it."
  ],
  "instructions": [
    {
      "name": "create_account",
      "docs": [
        "Create a new, empty configuration account"
      ],
      "accounts": [],
      "args": [
        {
          "name": "from_account_pubkey",
          "type": "publicKey",
          "docs": []
        },
        {
          "name": "config_account_pubkey",
          "type": "publicKey",
          "docs": []
        },
        {
          "name": "lamports",
          "type": "u64",
          "docs": []
...

Frequently Asked Questions

What is the Config Program IDL?

The Config Program IDL (Interface Definition Language) is a JSON schema that defines the on-chain program interface for the Config Program smart contract on Solana. It describes all available instructions, account structures, events, and custom types that developers need to interact with the Config Program program. This IDL contains 2 instructions, 0 account types, 0 events, and 1 type definitions.

How do I use the Config Program IDL in my project?

Download the JSON file and import it in your project. With TypeScript, use the @coral-xyz/anchor package to create a Program instance. In Rust, use anchor-client. For Python, use anchorpy. See the integration examples above for complete code snippets in all three languages.

What is the Config Program program address on Solana?

The Config Program program is deployed at address Config1111111111111111111111111111111111111 on Solana mainnet. You can verify this on any Solana block explorer.

What version of the Config Program IDL is this?

This is version 0.0.0 of the Config Program IDL. IDL versions correspond to specific program deployments and may be updated as the protocol evolves. Always verify compatibility with the on-chain program version before integrating.