Skip to content

Redoubt

Redoubt for dApps

Redoubt is a self-custody wallet for Flare, Songbird and the XRP Ledger, made by Burst Labs. It is an Android app with its own web3 browser and WalletConnect, and a browser extension will follow.

This page has what you need to list Redoubt by name in your dApp's wallet list.

Logos to download

Redoubt Redoubt

App icon

The square app icon on its plum background, for wallet lists. It works on light and dark pages. Most lists round the corners themselves; the SVG version already has rounded corners.

PNG 512 × 512PNG 256 × 256PNG 128 × 128SVG

Redoubt Redoubt

Mark

The tower on its own, with no background.

For dark backgrounds (SVG) For light backgrounds (SVG)

Redoubt Redoubt

Logo with the name

The mark with the word REDOUBT, for pages and articles about Redoubt.

For dark backgrounds (SVG) For light backgrounds (SVG)

Using the logos

  • Smallest size: 24 pixels for the app icon and the mark, 96 pixels wide for the logo with the name.
  • Leave clear space around a logo of at least a quarter of its height.
  • Do not change the colours or proportions, and do not add effects.
  • Colours: rose gold #E8A987 and deep plum #2E0829.

How Redoubt shows up to a page

In Redoubt's browser, every https page gets an EIP-1193 provider, announced through EIP-6963 and also set as window.ethereum:

Name
Redoubt
Identifier (rdns)
io.burstlabs.redoubt
Provider flag
isRedoubt: true
Icon
the app icon, a 96 by 96 pixel PNG, as a data URI
  • isMetaMask is false, except on a site where the user has turned on MetaMask compatibility. Find Redoubt by its rdns or by isRedoubt, never by isMetaMask.
  • The provider is added to the top frame of https pages only, not to iframes.
  • The browser extension, when it comes, will announce the same name and rdns.

Networks

  • Flare: chain ID 14 (0xe)
  • Songbird: chain ID 19 (0x13)
  • Coston2: chain ID 114 (0x72), for testing only. Redoubt shows it once its test network is turned on; ask us how.

Connections are for these EVM networks only. Each site keeps its own network. wallet_switchEthereumChain and wallet_addEthereumChain ask the user before switching; Redoubt then uses its own nodes, not the RPC addresses a site sends, and refuses any other network.

Methods and events

Signing, each approved by the user on Redoubt's secure screen:

personal_signeth_signTypedData_v4eth_signTypedData_v3eth_sendTransaction

Accounts and networks:

eth_requestAccountseth_accountseth_coinbaseeth_chainIdnet_versionwallet_switchEthereumChainwallet_addEthereumChainwallet_requestPermissionswallet_getPermissionswallet_revokePermissions

Reads, which Redoubt's browser answers itself or from its own nodes (eth_getLogs covers at most 10,000 blocks per call):

eth_blockNumbereth_calleth_estimateGaseth_gasPriceeth_maxPriorityFeePerGaseth_feeHistoryeth_getBalanceeth_getCodeeth_getStorageAteth_getTransactionCounteth_getTransactionByHasheth_getTransactionReceipteth_getBlockByNumbereth_getBlockByHasheth_getLogseth_syncingweb3_clientVersionpersonal_ecRecover

Refused with error 4200, like any method not listed on this page:

eth_signeth_signTypedDataeth_signTransactioneth_sendRawTransactioneth_decrypteth_getEncryptionPublicKeywallet_watchAssetwallet_sendCallswallet_getCapabilitieseth_subscribeeth_newFilter

Events:

connectaccountsChangedchainChanged

eth_sendTransaction needs a to address, since Redoubt does not deploy contracts for sites. Redoubt sets the nonce and the fees itself.

WalletConnect connections

In other browsers and on computers, dApps connect to Redoubt with WalletConnect v2. Redoubt is a wallet built on Reown's WalletKit.

Name
Redoubt
Redirect (native)
redoubt://
Pairing links
redoubt://wc?uri=<wc: URI> wc:
Networks (CAIP-2)
eip155:14 eip155:19 eip155:114
Methods
personal_sign eth_signTypedData_v4 eth_signTypedData_v3 eth_sendTransaction wallet_switchEthereumChain wallet_addEthereumChain
Events
accountsChanged chainChanged
WalletGuide listing
In progress. We will add Redoubt's WalletGuide ID here once the listing is live.

Ask for Flare and Songbird in optionalNamespaces. Redoubt cannot approve a session that requires another network or a namespace other than eip155.

Add Redoubt to your wallet list

Short examples. Each one names the library version it was written for and was checked against that version's published code. Replace YOUR_REOWN_PROJECT_ID with your own project ID from Reown.

wagmi

wagmi finds Redoubt by itself through EIP-6963 (multiInjectedProviderDiscovery, on by default), and the connector's id is Redoubt's rdns. To feature Redoubt, put that connector first:

Written for: wagmi 3.7.11, viem 2.57.16, React

import { createConfig, http, useConnect, useConnectors } from 'wagmi'
import { flare, songbird } from 'wagmi/chains'

// EIP-6963 discovery (multiInjectedProviderDiscovery) is on by default:
// inside Redoubt, a connector with id 'io.burstlabs.redoubt' appears by itself.
export const config = createConfig({
  chains: [flare, songbird],
  transports: { [flare.id]: http(), [songbird.id]: http() },
})

const REDOUBT = 'io.burstlabs.redoubt'

export function WalletList() {
  const connectors = useConnectors()
  const { mutate: connect } = useConnect()
  // Redoubt first, the others in their usual order
  const sorted = [...connectors].sort((a, b) => Number(b.id === REDOUBT) - Number(a.id === REDOUBT))
  return (
    <>
      {sorted.map((c) => (
        <button key={c.uid} onClick={() => connect({ connector: c })}>{c.name}</button>
      ))}
    </>
  )
}

RainbowKit

A Redoubt entry for RainbowKit. Outside Redoubt it connects with WalletConnect and opens the app on Android phones. Inside Redoubt's browser, RainbowKit shows Redoubt's own EIP-6963 entry with the installed wallets instead, matched by the rdns.

Written for: @rainbow-me/rainbowkit 2.2.11, wagmi 2.19.5

import { connectorsForWallets, getWalletConnectConnector, type RainbowKitWalletConnectParameters, type Wallet } from '@rainbow-me/rainbowkit'
import { injectedWallet, walletConnectWallet } from '@rainbow-me/rainbowkit/wallets'
import { createConfig, http } from 'wagmi'
import { flare, songbird } from 'wagmi/chains'

const projectId = 'YOUR_REOWN_PROJECT_ID'

const redoubtWallet = ({ projectId, walletConnectParameters }: {
  projectId: string
  walletConnectParameters?: RainbowKitWalletConnectParameters
}): Wallet => ({
  id: 'redoubt',
  name: 'Redoubt',
  rdns: 'io.burstlabs.redoubt', // in Redoubt's browser, its EIP-6963 entry takes this one's place
  iconUrl: 'https://redoubtwallet.com/static/images/wallet/kit/redoubt-icon-256.png',
  iconBackground: '#2E0829',
  mobile: { getUri: (uri: string) => `redoubt://wc?uri=${encodeURIComponent(uri)}` },
  qrCode: { getUri: (uri: string) => uri },
  createConnector: getWalletConnectConnector({ projectId, walletConnectParameters }),
})

const connectors = connectorsForWallets(
  [{ groupName: 'Recommended', wallets: [redoubtWallet, injectedWallet, walletConnectWallet] }],
  { appName: 'Your dApp', projectId },
)

export const config = createConfig({
  connectors,
  chains: [flare, songbird],
  transports: { [flare.id]: http(), [songbird.id]: http() },
})

Reown AppKit

AppKit lists EIP-6963 wallets by itself, so inside Redoubt's browser Redoubt appears with no change. Once Redoubt's WalletGuide listing is live, add its ID to featuredWalletIds to show Redoubt first everywhere.

Written for: @reown/appkit 1.8.24, @reown/appkit-adapter-wagmi 1.8.24

import { createAppKit } from '@reown/appkit/react'
import { WagmiAdapter } from '@reown/appkit-adapter-wagmi'
import { flare, songbird } from '@reown/appkit/networks'

const projectId = 'YOUR_REOWN_PROJECT_ID'
const wagmiAdapter = new WagmiAdapter({ networks: [flare, songbird], projectId })

createAppKit({
  adapters: [wagmiAdapter],
  networks: [flare, songbird],
  projectId,
  // enableEIP6963 is on by default: inside Redoubt's browser, Redoubt is listed.
  // Once Redoubt's WalletGuide listing is live:
  // featuredWalletIds: ['<Redoubt WalletGuide ID>'],
})

web3-onboard

The injected-wallets module also picks up EIP-6963 wallets. This custom entry recognizes Redoubt by isRedoubt, uses its icon and lists it first:

Written for: @web3-onboard/core 2.24.1, @web3-onboard/injected-wallets 2.11.3

import Onboard from '@web3-onboard/core'
import injectedModule from '@web3-onboard/injected-wallets'

const isRedoubt = (provider) => !!provider && !!provider.isRedoubt

const redoubt = {
  label: 'Redoubt',
  injectedNamespace: 'ethereum',
  checkProviderIdentity: ({ provider }) => isRedoubt(provider),
  getIcon: async () => 'https://redoubtwallet.com/static/images/wallet/kit/redoubt-icon-256.png',
  getInterface: async () => ({
    provider: [window.ethereum, ...(window.ethereum?.providers ?? [])].find(isRedoubt),
  }),
  platforms: ['all'],
}

const onboard = Onboard({
  wallets: [
    injectedModule({
      custom: [redoubt],
      sort: (wallets) => [...wallets.filter((w) => w.label === 'Redoubt'), ...wallets.filter((w) => w.label !== 'Redoubt')],
    }),
  ],
  chains: [
    { id: '0xe', token: 'FLR', label: 'Flare', rpcUrl: 'https://flare-api.flare.network/ext/C/rpc' },
    { id: '0x13', token: 'SGB', label: 'Songbird', rpcUrl: 'https://songbird-api.flare.network/ext/C/rpc' },
  ],
})

Without a library

Listen for Redoubt's EIP-6963 announcement and keep its provider:

Written for: EIP-6963

const REDOUBT_RDNS = 'io.burstlabs.redoubt'
let redoubt // Redoubt's EIP-1193 provider, once it announces itself

window.addEventListener('eip6963:announceProvider', (event) => {
  const { info, provider } = event.detail // info.name 'Redoubt', info.icon a data: URI
  if (info.rdns === REDOUBT_RDNS) redoubt = provider
})
window.dispatchEvent(new Event('eip6963:requestProvider'))

async function connectRedoubt() {
  const [account] = await redoubt.request({ method: 'eth_requestAccounts' })
  const chainId = await redoubt.request({ method: 'eth_chainId' }) // '0xe' Flare, '0x13' Songbird
  return { account, chainId }
}

Get Redoubt for testing

Redoubt is coming to Google Play soon. Until then, if you want to test your dApp with Redoubt, write to [email protected].

Contact us

Questions about adding Redoubt, or a wallet list Redoubt should be on? Write to [email protected].

Email [email protected]

Help and support