Trust Developers
  • Get Started
  • Developing for Trust Wallet platform
    • Browser Extension
      • Ethereum & EVM chains
    • Mobile (WalletConnect)
    • Deep Linking
  • Listing new dApps
    • A Complete Guide to Listing your dApp with Trust Wallet
    • Optimizing your dApp for Trust Wallet
    • Debugging
  • Listing new assets
    • Add Asset
    • Requirements
    • Pull Request Fee
    • FAQ
    • Repository Details
    • Universal Asset ID
  • Wallet Core
    • New Blockchain Support
      • RPC / API Requirements
      • New EVM-compatible chain
    • Developing the Library
      • Contributing
      • Building
      • WalletConsole utility
      • Coverage
      • Releasing
    • Integration Guide
      • Usage Guide
      • iOS Integration Guide
      • Android Integration Guide
      • Server-Side
    • References
      • Swift API Reference
      • Kotlin API Reference
    • FAQ
  • Barz - Smart Wallet
    • Introducing Barz. TrustWallet's Smart Wallet Solution
    • Cutting Diamonds: How to make Accounts Awesome
    • Build with Trust Wallet and Barz, A Comprehensive Guide to Integrating Barz with AA SDK
Powered by GitBook
On this page
  • for Trust Wallet:
  • for Backend:
  • Example
  • Query account / address balance:
  • Query transaction details:
  • Query fee / nonce for sending transaction:
  • Query blockchain status (block height etc):
  • Send raw transaction:
  • Query sent / received transactions for an account / address:
  • Query transactions in a block:

Was this helpful?

  1. Wallet Core
  2. New Blockchain Support

RPC / API Requirements

Trust Wallet is a light client wallet, which means it needs to get data / information from remote nodes (either light nodes or full nodes). In order to integrate your blockchain into Trust Wallet smoothly, you must also fulfill RPC / API requirements. We list all needed APIs or RPCs plus an example below for your reference.

for Trust Wallet:

We need API or RPC to:

for Backend:

Used to create transaction list index and notify users about incoming/outgoing transactions.

Example

We will take XRP as an example here, it supports WebSocket, JSON-RPC (including over HTTP)

Query account / address balance:

Query transaction details:

Query fee / nonce for sending transaction:

Query blockchain status (block height etc):

Send raw transaction:

Query sent / received transactions for an account / address:

Query transactions in a block:

PreviousNew Blockchain SupportNextNew EVM-compatible chain

Last updated 2 years ago

Was this helpful?