Skip to content

Johnycrown/transaction_contract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transaction contract in Solidity

This Solidity smart contract allows users to manage simple transactions, including deposits, withdrawals, and transfers between accounts. The contract is intended for educational purposes and demonstrates basic concepts such as ownership, balance management, and transaction validation.

Install

  1. Install Node.js

    Download and install from the official site.

  2. Install Truffle

    npm install -g truffle

Initialize

  1. Initialize Truffle in your project folder

    truffle init

    After initialization, you will find two folders called contracts and migrations. Contracts go in the contracts folder while contract deployment settings go in migrations.

  2. Features

  • Owner Assignment: The contract assigns the creator of the contract as the owner.
  • Deposit: Users can deposit funds into their account.
  • Withdraw: Users can withdraw funds from their account, provided they have sufficient balance.
  • Transfer: Users can transfer funds to another account.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published