Overview
Last updated
Was this helpful?
Connect your dapp to Freighter Mobile using the WalletConnect v2 protocol. All methods follow the standard JSON-RPC 2.0 request/response format over a WalletConnect session.
Mainnet (PUBLIC)
stellar:pubnet
Testnet
stellar:testnet
All error responses use JSON-RPC 2.0 format with code 5000:
{
"id": 1234567890,
"jsonrpc": "2.0",
"error": {
"code": 5000,
"message": "User rejected the request"
}
}Freighter Mobile validates that the chainId in the request matches the wallet's active network. If the user is on the wrong network, the request is rejected. Always specify chainId as a separate argument to provider.request(), not inside params.
Freighter Mobile uses Blockaid scanning to protect users:
Site scan
Once during WalletConnect session connection
Transaction scan
For stellar_signXDR and stellar_signAndSubmitXDR requests
stellar_signMessage and stellar_signAuthEntry do not trigger additional scans — the site was already scanned during connection.
Last updated
Was this helpful?
Was this helpful?
