Skip to content

Instantly share code, notes, and snippets.

View Unique-Divine's full-sized avatar
:electron:
実践している

Unique Divine Unique-Divine

:electron:
実践している
View GitHub Profile

Keybase proof

I hereby claim:

  • I am Unique-Divine on github.
  • I am realu (https://keybase.io/realu) on keybase.
  • I have a public key whose fingerprint is 8106 7612 5C06 EE88 4FA1 6399 B82D 6C99 804A E551

To claim this, I am signing this object:

@Unique-Divine
Unique-Divine / 01_new-wallet-and-faucet.ts
Last active March 4, 2024 10:30
NibiJS entrypoint examples
import { useFaucet } from "@nibiruchain/nibijs" // v0.7.2
import { newRandomWallet, WalletHD } from "@nibiruchain/nibijs/dist/tx"
async function runExample() {
const wallet: WalletHD = await newRandomWallet()
const [{ address }] = await wallet.getAccounts()
// Save the mnemonic somewhere to re-use the account
console.log("mnemonic: ", wallet.mnemonic)
console.log("address: ", address)