Tools and SDKs for developers

Ethereum Tools and SDKs

Standard Ethereum tools are compatible with OneFinity, provided the RPC configuration is updated. Examples:

Websockets are currently unsupported, as noted in the RPC section.


MultiversX Tools and SDKs

Since OneFinity inherits MultiversX’s framework, its tools and SDKs are fully compatible.

Key difference in tool usage: OneFinity requires a custom HRP (β€œone”) for address formatting. When working with bech32 addresses, you may need to specify this custom HRP.

Check the examples below on how to correctly use the tools/SDKs:

import { LibraryConfig } from "@multiversx/sdk-core"; 

LibraryConfig.DefaultAddressHrp = "one";

Lite Wallet

Similar to the MultiversX web wallet, this solution allows logging in using either a PEM file or a Keystore. It also offers functionalities such as issuing tokens, creating NFTs, and sending transactions. Essentially, it's a "lite" version of the MultiversX web wallet, tailored for sovereign chains.

How to integrate the Lite Wallet in OneFinity dApps

  1. Change the default address HRP

When using mx-sdk-js-core, ensure you have version 13.2.0-beta.2 or newer.

When using mx-sdk-dapp, ensure you have version 2.40.7 or newer.

Change the DefaultAddressHrp as follows (as also described above):

LibraryConfig.DefaultAddressHrp = 'one';
  1. Change the default DappProvider configuration

<DappProvider
          ...
          customNetworkConfig={{
            ...
            apiAddress: '...',
            walletAddress: '...',
            ...
          }}>

Use the appropriate URLs for your environment from the available list.

  1. Show the web wallet button

<CrossWindowLoginButton
    {...commonProps}
    loginButtonText='Web Wallet'
/>

Last updated