Account requirements
- Network access. Redbelly is a permissioned-access network. Each user claims a Redbelly Network Access Credential from an accredited issuer, which checks a passport with biometric verification, and then enables their account with write access. Until then the account cannot send transactions, including SODAX intents and approvals. Users connect the same EVM wallet to Redbelly’s access dApp to do this; see User access.
- Gas previews may be off. Redbelly fixes the unit gas price in US dollar terms. Redbelly notes that most wallets are not configured for this, so a wallet’s gas information for a Redbelly transaction may be inaccurate. See Network fees.
React apps: @sodax/wallet-sdk-react
The React package wraps each chain family’s native wallet SDK (wagmi for EVM networks, including Redbelly) behind a uniform connector interface with a single persisted store.
EVM, alongside any other EVM network you support:
useEvmSwitchChain({ xChainId: ChainKeys.REDBELLY_MAINNET }) returns isWrongChain and a handleSwitchChain callback to prompt the switch.
Bridging to SDK calls
useWalletProvider({ xChainId: ChainKeys.REDBELLY_MAINNET }) returns a typed IEvmWalletProvider ready to pass into any @sodax/sdk method. The swap and money market calls take it directly.
Scripts and backends: EvmWalletProvider
Outside React, construct the provider from @sodax/wallet-sdk-core directly:
EvmWalletDefaults lets you tune behavior per provider: sendTransaction, waitForTransactionReceipt, publicClient, walletClient, and transport.
- Full React reference: @sodax/wallet-sdk-react
- Every chain family’s providers: Setup Wallet Providers