Remote Procedure Call (RPC)
The Intuition RPC (Remote Procedure Call) service provides programmatic access to the Intuition network.
RPC endpoints allow developers and applications to:
- Query blockchain data
- Submit transactions
- Monitor network state
- Access historical data
- Interact with smart contracts
Available Endpointsβ
Core RPC Methodsβ
- eth_getBalance: Get account balance
- eth_getBlockByNumber: Retrieve block information
- eth_getTransactionByHash: Get transaction details
- eth_sendRawTransaction: Submit signed transactions
- eth_call: Execute contract calls
- eth_getLogs: Retrieve event logs
Usage Examplesβ
Using the viem library:
import { createPublicClient, http } from 'viem'
import { mainnet } from 'viem/chains'
const client = createPublicClient({
chain: mainnet,
transport: http('https://1.rpc.thirdweb.com/...'),
})
Using the ethers library:
import ethers from 'ethers';
// Connect to Intuition RPC
const provider = new ethers.providers.JsonRpcProvider(
'https://rpc.intuition.network'
);
// Query account balance
const balance = await provider.getBalance(address);
// Get latest block
const block = await provider.getBlock('latest');
Authenticationβ
RPC access requires authentication for production use:
Wallet Authentication: Secure access with wallet-based authentication
Rate Limiting: Fair usage policies
WebSocket Support: Real-time data streaming
HTTPS Only: Secure connections required