@yhl125/pkp-sui
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

PKPSuiWallet

First you need to create config.json file

{
  "PRIVATE_KEY": "<your private key. If there is a leading 0x, delete it>",
  "CONTROLLER_AUTHSIG": {
    "sig": "",
    "derivedVia": "",
    "signedMessage": "",
    "address": ""
  },
  "PKP_PUBKEY": "<your pubkey>"
}

Then you can type yarn start <test-number> or yarn dev <test-number> to select the test case you want to run. At the moment, we have the following

before minting nft, you need to prefund testnet sui to your wallet.

/**
 * Test cases:
 * 1 = create a wallet
 * 2 = create a wallet and mint nft
 * 3 = create a PKP wallet
 * 4 = create a PKP wallet and mint nft
 */

Readme

Keywords

none

Package Sidebar

Install

npm i @yhl125/pkp-sui

Weekly Downloads

1

Version

1.0.0

License

Apache-2.0

Unpacked Size

275 kB

Total Files

16

Last publish

Collaborators

  • yhl125