.env
file in your project root with the following variables:
schema.json
to specify your runtime configuration:
userArgs.json
and fill in your userArgs to test your web3 function:
storage.json
and fill in the storage values:
.env
file and fill up your secrets:
multichainProvider
allows us to instantiate RPC providers for every network Gelato is deployed on.
.env
at the root folder:
multiChainProvider
is designed to work seamlessly within the Gelato Web3 Functions SDK, it is possible to extract the underlying RPC URL and use it with other client libraries. This flexibility is valuable for developers who prefer or require features from other libraries, such as viem
.
Here’s an example of how to utilize the RPC URL from multiChainProvider
with the viem
library:
chainId
, the gasPrice
, and the taskId
into the context.