
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
[](https://badge.fury.io/js/mersui) [](https://bundlephobia.com/result?p=mersui) [ {
return (
<MerSuiProvider network="mainnet">
<YourApp />
</MerSuiProvider>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
| network | "localnet", "devnet", "testnet", "mainnet" | "mainnet" | Network type |
Then, use the MerSuiWidget component to render the button.
import { MerSuiWidget } from "mersui";
function App() {
return (
<div>
<MerSuiWidget recipientAddress="0x..." />
</div>
);
}
| Prop | Type | Default | Description |
|---|---|---|---|
| recipientAddress | string | - | Sui address of the recipient |
| amount | number | 3 | Optional amount in USD |
| buttonLabel | string | "MerSui" | Optional button label |
| containerClassName | string | - | Optional class name for the button container |
| buttonClassName | string | - | Optional class name for the button |
| statusClassName | string | - | Optional class name for the status message. The status-success and status-error classes are automatically added for your convenience. |
That's it! Enjoy!
MerSui uses Pyth's Sponsored Feed for SUI/USD to properly calculate the transaction amount in SUI. See lib/MerSuiWidget.tsx/fetchSuiPrice.
The lib folder contains the source code of the library.
The src folder contains a demo app that you can use to play with the library locally.
But before that, you need to set up the environment variables:
# .env.local
VITE_RECIPIENT_ADDRESS=0x...
Then, run the development server:
pnpm dev
pnpm build
Copyright (c) 2024 Konstantin Komelin
Licensed under the MIT License.
FAQs
[](https://badge.fury.io/js/mersui) [](https://bundlephobia.com/result?p=mersui) [
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.