1.0.4 • Published 10 months ago
aftermath-staking-widget v1.0.4
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.
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.