Interact with Wallet
EVM Wallet
Sign Message
import { FSLAuthorization } from 'fsl-js-sdk';
//Univeral login initialization
fSLAuthorization
.callEvmSign({
chainId: 137,
msg: 'Your Sign Message',
})
.then((res) => {
console.log('signedTx', res);
const address = FSLAuthorization.evmVerifyMessage('Your Sign Message', res);
// Check whether the resolved address is the same as the user address
});Types
interface IEvmSign {
msg: string;
rpc?: string;
chainId: number;
}Sign transaction
Types
Last updated