Rise Wallet
Search
K

With the Wallet Adapter

If you are using or planning to use the Aptos Wallet Adapter, please follow the setup below:

Installation

npm install @manahippo/aptos-wallet-adapter

Setup Wallet Provider

import React from 'react';
import {
WalletProvider,
RiseWalletAdapter,
} from '@manahippo/aptos-wallet-adapter';
const wallets = [
new RiseWalletAdapter()
];
const App: React.FC = () => {
return (
<WalletProvider
wallets={wallets}
autoConnect={true | false} /** allow auto wallet connection or not **/
onError={(error: Error) => {
console.log('Handle Error Message', error);
}}>
{/* your website */}
</WalletProvider>
);
};
export default App;

Additional documentation

You can find all essential and additional documentation inside Wallet Adapter's documentation.