Wallet Integration
Overview
Ramper supports many standardized methods, including: signMessage signTransaction sendTransaction sendToken connect
Get all dapps function from useRamperService
import { useRamperService } from '@ramper/react-native-core'
const {
network,
userWallet,
convertBalanceToWei,
onOpenWallet,
onLogout,
signMessage,
signTypedData,
signTransaction,
sendTransaction,
approve,
} = useRamperService();Sign Message
import { useRamperService } from '@ramper/react-native-core';
const { signMessage } = useRamperService();
/*
signMessage(message: string)
*/
signMessage('Hello, world!');Sign Transaction
Send Transaction
Send transaction params:
Param
Type
Description
from
string
the sender address
to
string
the recipient address
contractAddress
string
the token contract address, if not provided, it will be considered as send native token action
amount
string
the amount of token to send, please using . to separate the integer and decimal
Approve NFTs
Approve NFT Collection
Last updated