Theme

Configuration

RPCs

Manage RPC endpoints in your configuration. You can add, list, remove, and set active RPCs for different networks.

Basic Usage

# Add a new RPC endpoint
mplx config rpcs add <name> <endpoint>

# List all RPC endpoints
mplx config rpcs list

# Remove an RPC endpoint
mplx config rpcs remove <name>

# Set active RPC endpoint
mplx config rpcs set <name>

Commands

Add RPC

Add a new RPC endpoint to your configuration.

mplx config rpcs add <name> <endpoint>

Arguments

ArgumentDescription
nameA unique name for the RPC endpoint (e.g., 'mainnet', 'devnet')
endpointThe RPC endpoint URL

Example

mplx config rpcs add mainnet https://api.mainnet-beta.solana.com

List RPCs

Display all configured RPC endpoints.

mplx config rpcs list

Output

--------------------------------
RPC Endpoints
--------------------------------
Name: mainnet
Endpoint: https://api.mainnet-beta.solana.com
Active: true

Name: devnet
Endpoint: https://api.devnet.solana.com
Active: false
--------------------------------

Remove RPC

Remove an RPC endpoint from your configuration.

mplx config rpcs remove <name>

Arguments

ArgumentDescription
nameThe name of the RPC endpoint to remove

Example

mplx config rpcs remove devnet

Set Active RPC

Set the active RPC endpoint for your configuration.

mplx config rpcs set <name>

Arguments

ArgumentDescription
nameThe name of the RPC endpoint to set as active

Example

mplx config rpcs set mainnet

Configuration File

RPCs are stored in your configuration file at ~/.mplx/config.json:

{
  "rpcs": {
    "mainnet": {
      "endpoint": "https://api.mainnet-beta.solana.com",
      "active": true
    },
    "devnet": {
      "endpoint": "https://api.devnet.solana.com",
      "active": false
    }
  }
}

Notes

  • RPC names are case-sensitive
  • Only one RPC can be active at a time
  • The active RPC is used for all network operations
  • You can add multiple RPCs for different networks
  • Removing the active RPC will automatically set another RPC as active if available
  • Wallets - Manage wallet configurations
  • Explorer - Set preferred blockchain explorer
Previous
Wallets