Ckd React Examples

Uses

Type info

const useDero: () => {
  available: boolean; // is the channel loaded?
  data: {
    address: string; // dero address
    height: number; // dero height
    balance: string; // dero balance
    unlockedBalance: string; // unlocked dero balance
  };
};

Source code

import { useDero } from "ckd-react";

export default function UseDeroExample() {
  const dero = useDero();

  return <pre>{JSON.stringify(dero, null, 2)}</pre>;
}

*sign in required

Try it

{
  "available": false,
  "data": {
    "address": "",
    "height": 0,
    "balance": "",
    "unlockedBalance": ""
  }
}