Skip to content

Hiram20buz/transaction

Repository files navigation

transaction

transaction web3 etherum

npm i

npm list

You need to create an account ON INFURA.IO

HOW TO CREATE AN ACCOUNT ON INFURA.IO

Go to Infura and create an account or login.

Then, get your API key for the network you want.

For example, for etherum:

FOR MORE INFORMATION GO TO

Info

pre-requirements

You need to create .env file

Example:

nano .env
ETHEREUM_NETWORK = "goerli"
INFURA_API_KEY = "your-api-key"
SIGNER_PRIVATE_KEY_PRO = "any-wallet"
SIGNER_PRIVATE_KEY_CLIENT = "any-wallet""
RECEIVER_ADDRESS = "any-wallet""

Run a test

node testsGetBalance/checkBalance.js

You can send a file through a transaction on the ethereum blockchain

node testsSendFileFromTransaction/sendFile.js
Screen Shot 2023-11-23 at 22 50 54 If you go to : https://goerli.etherscan.io/tx/0xbcfd160f6f91f372d186e8d60d902699f0ba33d5595b4c67042c0eb21973a9dc Screen Shot 2023-11-23 at 22 52 26 This is the transaction Screen Shot 2023-11-23 at 22 52 37 Screen Shot 2023-11-23 at 22 52 57 This is the base64 file Screen Shot 2023-11-23 at 22 53 09

You can get back a file from a transaction

node testCreateFileFromTransaction/createFileFromTicket.js
Screen Shot 2023-11-23 at 22 56 10 Screen Shot 2023-11-23 at 22 57 03 Screen Shot 2023-11-23 at 22 57 20

About

transaction web3 etherum

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published