Stellar RPC API

The Stellar RPC API (formerly Soroban RPC) is a JSON-RPC interface for interacting with Soroban smart contracts deployed on the Stellar network. It supports simulating and submitting contract invocations, reading contract state and ledger entries, and streaming network events. The RPC service is the primary interface for Soroban contract developers and complements Horizon by exposing contract-specific data not available through the Horizon REST API.

API entry from apis.yml

apis.yml Raw ↑
aid: stellar:stellar-rpc-api
name: Stellar RPC API
tags:
- Blockchain
- Smart Contracts
- Soroban
- RPC
- Web3
image: https://kinlane-productions2.s3.amazonaws.com/apis-json/apis-json-logo.jpg
baseURL: https://soroban-testnet.stellar.org
humanURL: https://developers.stellar.org/docs/data/rpc
properties:
- url: https://developers.stellar.org/docs/data/rpc
  type: Documentation
- url: https://developers.stellar.org/docs/data/rpc/api-reference
  type: APIReference
- url: https://developers.stellar.org/docs/tools/sdks/client-sdks
  type: SDKs
description: The Stellar RPC API (formerly Soroban RPC) is a JSON-RPC interface for interacting with Soroban
  smart contracts deployed on the Stellar network. It supports simulating and submitting contract invocations,
  reading contract state and ledger entries, and streaming network events. The RPC service is the primary
  interface for Soroban contract developers and complements Horizon by exposing contract-specific data
  not available through the Horizon REST API.
x-features:
- JSON-RPC 2.0 interface for smart contract interaction
- Simulate contract invocations before submission
- Read arbitrary ledger entries including contract state
- Stream network events filtered by contract ID or topic
- Submit signed Soroban transactions to the network
x-use-cases:
- Deploy and invoke Soroban smart contracts
- Simulate contract calls to estimate fees before submission
- Read on-chain contract state for dApp frontends
- Subscribe to smart contract event streams