Skip to content

The purpose of this smart contract to retrieves a text from a real-world API and stores it on the Ethereum blockchain.

Notifications You must be signed in to change notification settings

gr8h/message-storage

Repository files navigation

Message Storage

The purpose of this smart contract to retrieves a text from a real-world API and stores it on the Ethereum blockchain.

Assumptions

Enviroment variables

  • DEV_RINKEBY_KEY=[Rinkeby test network key]
  • PROD_MAINNET_KEY=[Mainnet network key]
  • PRIVATE_KEY=[Private Key]
  • CHAINLINK_TOKEN_ADDRESS=[Chainlink LINK token address]
  • CHAINLINK_ORACLE_ADDRESS=[Chainlink Oracle address]
  • CHAINLINK_JOBID=[Chainlink Job ID]
  • EXTERNAL_API_URL=[External API URL]
  • EXTERNAL_API_PATH=[External API Path]

Interact with the deployed smart-contract

  • Smart-contract address
    • Get balance
    • Update message
npm run execute

Run Tests

npm run test

Run Deploy

  • Deploy the contract to Rinkeby test network

Tools

About

The purpose of this smart contract to retrieves a text from a real-world API and stores it on the Ethereum blockchain.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published