Skip to main content
Signing a Stellar transaction is identical to how we sign an Ethereum or Solana transaction with the exception that we need to pass in the Stellar specific RPC URL, chain ID, and method.
Before you submit a Stellar transaction, ensure that the Stellar account is funded and created on-chain. Failing to do so will result in an address not found error.
In the example we are going to update:
  • chainID to stellar:pubnet
  • rpcUrl to http://horizon.stellar.org
  • method to stellar_sendTransaction
  • params to a base64 encoded serialized Stellar transaction
Here is a short snippet of how to get the params using the stellar SDK. Note that in this example we assume the destination address is already created. For a complete example checkout this example repo:
Below is an example curl command for signing a Stellar message:

Supported Methods and ChainIds

Methods:
  • stellar_sendTransaction
ChainIds:
  • stellar:pubnet
  • stellar:testnet