Integration

Guide to adding new blockchain to have OWallet support

Adding Cosmos-based blockchains

Chain config

Property
Type
Function

rpc

string

RPC of a blockchain

rest

string

LCD of a blockchain

chainId

string

Chain ID

chainName

string

Chain Name

networkType

string

Network Type ("cosmos" or "evm"): To declare whether the network is Cosmos-based or Ethereum Virtual Machine (EVM)-based

stakeCurrency

{

coinDenom: string, coinMinimalDenom: string, coinDecimals: number, coinGeckoId: string, coinImageUrl: string, gasPriceStep: { low: number, average: number, high: number}}

Native stake currency

bip44

{ coinType: number}

Bip44 config

coinType

number

The coin type is usually 118 for Cosmos, 60 for EVM

bech32Config

Bech32Address.defaultBech32Config(string)

Config for bech32 address

currencies

Array<Currency>

Currencies of the chain

feeCurrencies

Array<Currency>

Fee currencies of the chain

features

Array<Currency>

To declare what features this chain have(ex: ["ibc-transfer", "cosmwasm")])

chainSymbolImageUrl

string

Chain symbol image URL

txExplorer

{name: string, txUrl: string, accountUrl: string}

Transaction explorer config

How to add a chain into OWallet?

If your chain needs to use special packages, please consider taking a look at the System Desgin section to learn how to implement your chain into OWallet

  1. Clone this repo to desired directory

  1. Checkout to main

  1. Checkout to new branch

  1. Create PR into main

Example

Adding EVM-based blockchains

Chain config

Property
Type
Function

rpc

string

RPC of a blockchain

chainId

string

Chain ID

chainName

string

Chain Name

networkType

string

Network Type ("cosmos" or "evm"): To declare whether the network is Cosmos-based or Ethereum Virtual Machine (EVM)-based

stakeCurrency

{coinDenom: string, coinMinimalDenom: string, coinDecimals: number, coinGeckoId: string, coinImageUrl: string, gasPriceStep: { low: number, average: number, high: number}}

Native stake currency

bip44

{ coinType: number}

Bip44 config

coinType

number

The coin type is usually 118 for Cosmos, 60 for EVM

bech32Config

Bech32Address.defaultBech32Config(string)

Config for bech32 address

currencies

Array<Currency>

Currencies of the chain

feeCurrencies

Array<Currency>

Fee currencies of the chain

features

Array<Currency>

To declare what features this chain have(ex: ["isEVM")])

chainSymbolImageUrl

string

Chain symbol image URL

txExplorer

{name: string, txUrl: string, accountUrl: string}

Transaction explorer config

How to add a chain into OWallet?

  1. Clone this repo to desired directory

  1. Checkout to main

  1. Checkout to new branch

  1. Create PR into main

If your chain needs to use special packages, please consider taking a look at the System Desgin section to learn how to implement your chain into OWallet

Example

Last updated