Skip to content

An example Lambda Layer containing the Ethereum web3.js Javascript API

License

Notifications You must be signed in to change notification settings

scenarex/web3-lambda-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web3.js Lambda Layer

An AWS Lambda Layer for the Ethereum web3.js Javascript API. It makes use of the lambci/docker-lambda images to replicate the live AWS Lambda environment and build the web3.js dependencies for said environments. It can then be used as a dependency bundle.

Prerequisites

You'll need to have Docker installed. You can opt to use Serverless for deployment or simply run the build.sh file manually and upload the resulting layer/nodejs folder as a ZIP archive to the AWS online console.

Deployment

sls deploy

How to use

Check out the example folder for a simple use case of this layer in a Serverless function.

Additional notes

This dependency bundle will not be available locally to Serverless. If you need to test locally, install the web3.js npm package as a development dependency.

About

An example Lambda Layer containing the Ethereum web3.js Javascript API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published