Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 546 Bytes

File metadata and controls

29 lines (24 loc) · 546 Bytes

NEMLibrary on lambda

This is the sample, using NEMLibrary on AWS lambda.

Requirement

How to run it

  • Setting AWS credentials
  • Setting following environment variable on functions/SendXem/function.json
"environment": {
    "PRIVATE_KEY": "YOUR_PRIVATE_KEY",
    "TO_ADDRESS": "DESTINATION_ADDRESS"
}
  • Deploy with follwing command
% apex deploy
  • Run with following command
% echo -n '{}' | apex invoke SendXem