pointv3.0

point module

Point balance, earning, and history.

Available Methods

sdk.point.getBalance()
sdk.point.getHistory()
sdk.point.onEarned()

Example Usage

import { usePoremi } from '@poremi/react-sdk';

function PointDisplay() {
  const { sdk } = usePoremi();

  useEffect(() => {
    sdk.point.getBalance().then(b => {
      console.log('Points:', b.total);
    });
  }, []);
}

Try in Playground

🔒 Log in to open this example in the interactive playground.