For Starknet

Resmic Component for Starknet Blockchain

Resmic SDK old version.

npm i resmic@1.0.10

Usage


import { useState } from 'react';
import {StarkNetConnect, StarkTokens} from 'resmic'

function App() {

	const [paymentStatus, setPaymentStatus] = useState() // Returns bool after the payment
	
	// Your code...

  return (
    <div>
        <StarkNetConnect Address={"YOUR_WALLET_ADDRESS"} //Wallet address to receive funds
            Tokens ={[StarkTokens.ETH, StarkTokens.Bitcoin, StarkTokens.USDT ]} //Choose the Tokens to accept payments from
            Amount={100} //Amount you want to receive in USD($)
            setPaymentStatus = {setPaymentStatus} 
	    Style = {{displayName: "Make Payment",
                    backgroundColor: "#007bff",
                    color: "#fff",
                    border: "none",
                    padding: "10px 20px",
                    borderRadius: "4px",
                    fontSize: "18px"}}
        />
    </div>
  )
}

Important

Visit list of supported tokens for more details.

Last updated