Installation
Configuration Options
TheAurum instance accepts three configuration parameters - brand, wallets, and telemetry.
brand
brand
Customize the look and feel of the modal.
Your application’s display name
URL to your logo image (
https://... or data:image/...)Color scheme for the modal
Hex color for buttons and accents
Corner rounding for UI elements
Custom font family
Hides “powered by Aurum” footer
z-index for modal
Wallet button arrangement
wallets
wallets
telemetry
telemetry
Allows Aurum to log unexpected SDK errors using Sentry.io. No PII is ever collected — including email address, IP address, user location, or other identifiable information. Also applies to analytics and error tracking for Email login, Coinbase Wallet, and WalletConnect (Reown).
Embedded: Get your project ID at Coinbase CDPWalletConnect: Get your project ID at Reown Dashboard
Example
Aurum Properties
rpcProvider
Returns AurumRpcProvider
EIP-1193 compatible provider. Works with viem, ethers.js, and other web3 libraries.
Aurum Methods
whenReady()
Returns Promise<void>
Waits for the SDK to finish initializing, such as restoring any previous connection after a page refresh.
await
whenReady() before making calls to the rpcProvider to ensure persisted connections are restored and request is routed to the correct provider.connect(walletId?: WalletId)
Returns Promise<`0x${string}`>
Opens the wallet connection modal. Optionally, pass a walletId to connect directly without showing the modal.
For
WalletId.Email and custom WalletConnect QR Code flows, see the Headless API. connect('email') will throw an error. connect('walletconnect') will open the WalletConnect modal.disconnect()
Returns Promise<void>
Disconnects the currently connected wallet.
isConnected()
Returns Promise<boolean>
Returns whether a wallet is currently connected.
getUserInfo()
Returns Promise<UserInfo | undefined>
Returns info about the connected user, or undefined if not connected.
getChainId()
Returns Promise<number>
Returns the current chain ID.
switchChain(chainId, chain?)
Returns Promise<void>
Switches to a different network. If the chain isn’t added to the wallet, it will prompt the user to accept the new network and switch to it.
updateBrandConfig(newConfig)
**Returns **void
Updates the brand configuration at runtime (theme, font, walletLayout, etc).
updateWalletsConfig(newConfig)
Returns void
Updates the wallets configuration at runtime. Currently only supports exclude.