Common use cases for
pact-lang-api
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 |
- Install dependencies
npm install
- 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.
- Run commands
Example:
node accounts/create-account account-name