-
Install dependencies
npm install
-
Set up Environment variables
-
Optional: Run tests
npm test
-
Run
createRequest()
in one of the following ways:- call it directly (by running
node app.js
). - use the
handler()
wrapper for AWS Lambda - use the
gcpservice()
wrapper for GCP
- call it directly (by running
-
Use one of the available methods.
- Set method name in
data.method
, along with method-specific parameters
- Set method name in
To create a ZIP file to upload to AWS/GCP, run:
zip -r cl-ea.zip .
Variable | Description | Example | |
---|---|---|---|
ACCOUNT_NAME |
Required | Account name of IOST user. | octalmage |
PRIVATE_KEY |
Required | Private key for IOST user | 2a8f2e4e3b7e541 |
API_HOST |
Required | IOST Node to use for API requests | api.iost.io |
Use callAbi to submit a transaction to a smart contract.
Variable | Type | Description |
---|---|---|
contract |
String | The ID of the contract |
action |
String | The name of the method to call |
args |
String | Stringified array of arguments for smart contract |
Got questions or feedback? Stop by our Telegram room!
MIT