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
  • General
  • Does Wallet Core support Windows?
  • Does Wallet Core support Dart / Flutter?
  • Does Wallet Core support React Native?
  • I can't install Wallet Core for my Android project!
  • Is there any HTTP API to use Trust Wallet service?
  • API
  • Does Wallet Core support WIF?
  • Does Wallet Core have a method to verify an address format?
  • How to create HDWallet from private key?
  • Where do I find transaction signing examples?
  • Blockchain
  • How to query the balance / tokens of an address?
  • How to send signed transaction?
  • Bitcoin signing error :Invalid transaction. Error: bad-txns-inputs-missingorspent
  • Does it support Bitcoin / Ethereum testnet?
  • How to generate legacy Bitcoin address?
  • Does it support ERC20 / BEP20?
  • Different Polkadot address derived from same secret phrase.

Was this helpful?

  1. Wallet Core

FAQ

PreviousReferencesNextBarz - Smart Wallet

Last updated 2 years ago

Was this helpful?

General

Does Wallet Core support Windows?

A: We don't support Windows officially, the community has a fork for Windows, you can find it .

Does Wallet Core support Dart / Flutter?

A: We don't support it officially, the community has a fork for Dart / Flutter, you can find it

Does Wallet Core support React Native?

A: Not now, but you can try to wrap it using or , one example is .

I can't install Wallet Core for my Android project!

A: Take a look at Adding Library Dependency section in , we have detailed instructions for installing the package.

Is there any HTTP API to use Trust Wallet service?

A: Nope.

API

Does Wallet Core support WIF?

A: No, Here are some reasons:

  • WIF (Wallet Import Format) is just a private key encoded in Base58-check format, you can decode it using Base58 class.

  • It's cumbersome to support different prefix byte for all networks (mainly Bitcoin and forks)

  • Hex string encoding is a more widely used format.

Does Wallet Core have a method to verify an address format?

A: Yes, There is a generic AnyAddress class to represent an address for any blockchain you can use AnyAddress.isValid() to validate if an address is valid.

How to create HDWallet from private key?

A: HDWallet class is short for Hierarchical Deterministic Wallet, which is a way to deterministically generate a tree of keys from a single seed (aka bip39 recovery phrase). If you only have a private key, you can use PrivateKey class directly, no way to create HDWallet.

Where do I find transaction signing examples?

Blockchain

How to query the balance / tokens of an address?

A: Wallet Core doesn't provide this feature yet, it also differs from chain to chain, you should check out the blockchain's official RPC or API to see how to query the balance.

How to send signed transaction?

A: Wallet Core doesn't provide this feature yet, it also differs from chain to chain, you should check out the blockchain's official RPC or API to see how to send a signed transaction.

Bitcoin signing error :Invalid transaction. Error: bad-txns-inputs-missingorspent

A: Usually this error means the node can't find the unspent transaction (UTXO) you are trying to spend, you can check if the transaction hash is correct, Bitcoin implementation in Wallet Core expects the transaction id is network byte order (big endian), you can try to reverse the bytes of the transaction hash.

Does it support Bitcoin / Ethereum testnet?

A: Wallet Core doesn't support any testnet in general:

  • no testnet network entry in registry.json

  • no method to generate testnet address for Bitcoin etc.

  • extra maintenance effort and we always require mainnet transaction signing test.

But for some networks like Ethereum, the testnet just has a different chain id, you can specify chain id when you signing a transaction.

How to generate legacy Bitcoin address?

Does it support ERC20 / BEP20?

A: Yes

Different Polkadot address derived from same secret phrase.

A: Polkadot supports multiple elliptic curve and signature schemes:

  • The vanilla ed25519 implementation using Schnorr signatures.

  • The Schnorrkel/Ristretto sr25519 variant using Schnorr signatures.

  • ECDSA signatures on secp256k1

It's might be incompatible with other wallets because Wallet Core currently only supports ed25519.

You can read , , for more information.

A: You can find some on , the comprehensive and up-to-date examples are in tests folder:

C++ tests:

Swift tests:

Kotlin tests:

TypeScript tests:

For instance, you can use and to query the balance (and token balance) of an Ethereum or EVM compatible address.

For instance, you can use to send a signed raw transaction to Ethereum or EVM compatible chain.

A: AnyAddress generates SegWit address by default for Bitcoin, Wallet Core offers another class BitcoinAddress for legacy address, you can see all the methods .

For more information, please refer to .

here
here
Native Module
JavaScript Interfaces (JSI)
here
Android Integration Guide
bip32
bip39
bip44
Usage Guide
https://github.com/trustwallet/wallet-core/tree/master/tests
https://github.com/trustwallet/wallet-core/tree/master/swift/Tests
https://github.com/trustwallet/wallet-core/tree/master/android/app/src/androidTest/java/com/trustwallet/core/app
https://github.com/trustwallet/wallet-core/tree/master/wasm/tests
eth_getbalance
eth_call
eth_sendRawTransaction
here
Polkadot Wiki