Multichain Supported

Supported Chains

This is a list of chains that we're currently supports. You can find the chain from @ramer-v2/core

Chain Name
Chain ID
Network

Viction

88

Mainnet

Polygon

137

Mainnet

Binance Smart Chain

90

Mainnet

Chiliz

88888

Mainnet

ZkSync Era

324

Mainnet

Ethereum

1

Mainnet

Orange

61022

Mainnet

Viction Testnet

89

Testnet

Orange Testnet

61022

Testnet

Initialization

For simple initialization, you need to have an appId for creating an app in Ramper, please visit this link to create a new app. Then you can use the following code:

import {
  init
} from "@ramper-v2/multi";
 
 
...
 
const handleInit = async () => {
  await init({
    appId: "your-app-id",
  });
};
 

Notes

You can also use some custom parameters to initialize Ramper. Please note that those optional parameters are only applied if config from your app is not provided.

Here are some parameters you can use:

Parameter
Type
Description

config

Record<string, string>

This one will be provided by the Ramper team

theme

dark or light

This will change theme for wallet UI

coinInfo

CoinInfo

The list of coins to display and calulation

language

en or kr

Select supported language

walletTabs

string

Select initial wallet tab

partner

string

Select partner default is ramper

logoURI

string

Logo URI for display through the wallet

User sign-up & sign-in

import { signInWithProvider, signIn } from '@ramper-v2/multi'
 
const signInResult = await signInWithProvider({ provider });
 
const signInResult = await signIn();

There are two ways to sign in a user. The first way is to use the signInWithProvider function, which takes a provider as an argument. The provider can be one of the following: google, facebook, or email. The second way is to use the signIn function, which will show a modal with all the available providers.

Get the current signed in user

import { getUser } from '@ramper-v2/multi'
 
const user = await getUser()
 
if (user) {
  console.log(user)
}

Logging Out

Users can log out or disconnect their wallet with:

import { signOut } from '@ramper-v2/multi'
 
await signOut()

Yup, it really is just that easy!

If there's any feature you would like to see or design patterns you would like for the Ramper team to adopt.

Disclaimer

Our current SDK is in active development. The interface described above and the functionalities provided are subject to change.

Last updated