Multichain Supported
Supported Chains
This is a list of chains that we're currently supports. You can find the chain
from @ramer-v2/core
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
Raw Transaction params
The RawTransaction
interface represents the structure of a blockchain transaction with various optional parameters.
Required Fields
to
string
The recipient address of the transaction
Optional Transaction Data
data
string
The transaction data payload
value
string
The amount of native currency to send
nonce
number
The transaction nonce (sequence number)
from
string
The sender's address
chainId
string
The network chain ID (can be excluded)
EIP-1559 Fields
gasFeeCap
string
Maximum fee per gas (total)
maxFeePerGas
string
Maximum fee per gas unit
maxPriorityFeePerGas
string
Maximum priority fee per gas
Advanced Gas Settings
gas
number
Gas limit for the transaction
gasPrice
string
Price per unit of gas
gasLimit
string
Maximum gas allowed for the transaction
Transaction Type
type
string
Transaction type: '0x0' for legacy, '0x2' for EIP-1559
Special Flags
isUnitySdk
boolean
Indicates if transaction uses Unity SDK
isOverrideGas
boolean
Indicates if gas settings should be overridden
isNFT
boolean
Indicates if transaction involves NFTs
isGasFree
boolean
Indicates if transaction is gas-free
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:
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:
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
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
Logging Out
Users can log out or disconnect their wallet with:
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