Skip to main content

Node SDK Provider

In order to access the functionality of the React Native SDK, the app will need to wrapped with a NodeKitProvider

The only required prop is apiKey, which should be the corresponding api key for your tenant account.

export default function AppWrapper() {
// code here
return (
<NodeKitProvider
loadingComponent={loadingComponent}
apiKey={API_KEY}
tokenWhitelist={new Set(SUPPORTED_TOKENS)}
tokenDetailsOverride={TOKEN_OVERRIDES}
customTokens={[
new Token(CHAIN, ADDRESS, DECIMALS, SYMBOL, NAME, LOGO_URL),
]}
chainId={CHAIN_ID}
>
<App />
</NodeKitProvider>
);
}

Props

PropTypeRequired (Y/N)Description
customTokensToken[]NAny additional custom tokens to add that might not already be in the Node Token list
tokenWhitelistSet<string>NSet of addresses, where only tokens pertaining to the given addresses will be accessible within the SDK
tokenBlacklistSet<string>NSet of addresses, where only tokens matching the addresses will be removed from the SDK
tokenDetailsOverrideTokenConfig[]NAllows to override specific details about a given token, such as name, symbol, imageUrl, etc
smartContractWalletbooleanNIf true, will default to creating new smart contract wallets
loadingComponentReact.ReactElementNUI Element to render when persisted data is being loaded. Defaults to null.
apiKeystringYAPI Key associated with your tenant account
chainIdChainIdNThe home chainid for all wallets in your app
constantsOverrideConstantsOverrideNOverride certain constants used across the SDK
defaultCurrencyOverrideCurrencyTypeNSets the default currency for a wallet from SDK instantiation.