aftermath-staking-widget
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

Aftermath Staking Widget

A one line React staking widget for Sui that utilizes Aftermath's liquid staking protocol to mint afSUI in exchange for SUI.

Aftermath Staking Widget

Install

npm i aftermath-staking-widget

Usage

import { AftermathStakingWidget } from "aftermath-staking-widget";

function App() {
	return <AftermathStakingWidget />;
}

export default App;

Accepted Props

interface AftermathStakingWidgetProps {
	// display
	theme?: "dark" | "light";
	transparentBackground?: boolean;
	border?: boolean;
	rounded?: boolean;
	width?: string | number;
	height?: string | number;
	// general
	referrer?: SuiAddress;
	network?: "MAINNET" | "TESTNET" | "DEVNET" | "LOCAL" | string;
	// staking
	validator?: SuiAddress;
	fixValidator?: boolean;
	onlyValidators?: SuiAddress[];
}

Find the complete documentation for using our Typescript SDK in our GitBook.

Readme

Keywords

none

Package Sidebar

Install

npm i aftermath-staking-widget

Weekly Downloads

0

Version

1.0.4

License

none

Unpacked Size

4.74 kB

Total Files

10

Last publish

Collaborators

  • collin-aftermath