For the complete documentation index, see llms.txt. This page is also available as Markdown.

Overview

Connect your dapp to the Varial mobile app using the WalletConnect v2 protocol. All methods follow the standard JSON-RPC 2.0 request/response format over a WalletConnect session.

Supported Chains

Network
Chain ID

Mainnet (PUBLIC)

stellar:pubnet

Testnet

stellar:testnet

API Reference

Method
Description

Sign a transaction and return the signed XDR

Sign and submit a transaction to Horizon

Sign an arbitrary UTF-8 message (SEP-53)

Sign a Soroban authorization entry preimage (as defined in SEP-43)

Error Handling

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"
  }
}

Security

The Varial mobile app uses Blockaid scanning to protect users:

Scan type
When it runs

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.

See also

Last updated

Was this helpful?