Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.11 KB

README.md

File metadata and controls

42 lines (29 loc) · 1.11 KB

Pact-Lang-API Cookbook

Common use cases for pact-lang-api


Overview

Name Description
ACCOUNTS
Create Account Create a KDA account.
Create And Fund Account Create and fund a KDA account.
Rotate Keys Update the keyset guarding the account.
Get Balance Get account balance.
TRANSACTIONS
Get Transaction Status Gets transaction status using the tx request key
Utils
Deploy contract Deploy a Pact smart contract
Read state Read state of a contract
Verify Signature Verify a key pair signature

Setup

  1. Install dependencies
npm install
  1. Set key pair

Each script requires a key pair that controls a KDA account used to pay for gas fees. Make sure you set the KEY_PAIR const.

  1. Run commands

Example:

node accounts/create-account account-name