A 3-minute Smart Contract and Delphi — Part 1

  1. Alice has zero Bitcoin
  2. Bob has 1 Bitcoin
  3. Bob transfers 1 Bitcoin to Alice
  4. Alice has 1 Bitcoin
  5. Bob has zero Bitcoin

Code is law

Remix

https://remix.ethereum.org

Delphi

git clone https://github.com/svanas/DelphiBigNumbers
git clone https://github.com/Xor-el/SimpleBaseLib4Pascal
git clone https://github.com/Xor-el/HashLib4Pascal
git clone https://github.com/Xor-el/CryptoLib4Pascal
git clone https://github.com/svanas/delphereum
  1. replace the URL in the example above with your Infura endpoint. If you are unsure what an Infura endpoint is, then please refer to this article.
  2. replace the smart contract address in the example above with your own smart contract address (copied to your clipboard in step #22 above).

Read more

  1. Connecting Delphi to a local (in-memory) blockchain
  2. Connecting Delphi to the Ethereum main net
  3. Connecting Delphi to Smart Contracts
  4. Generating an Ethereum-signed message signature in Delphi
  5. Transferring Ether with Delphi
  6. Transferring ERC-20 tokens with Delphi
  7. Delphi and Ethereum Name Service (ENS)

--

--

--

Delphi/Rust/Go developer. Ethereum consultant. Embarcadero MVP. Ex-Adobe, Macromedia. Helped build 1Password.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

🧑‍🚀MonoX Launch II — Getting Started

Xswap Beta on TokenPocket

Wing 2021 February Recap

Introducing Climate Initiative Coin a BEP20 Token

OTC’s Weekly Retrospect 02/08–06/08/2021

DeFi Insight | Terra ‘LFG’ To Commit $450M To Maintain Anchor’s 19.3%

r/Astar_Network is live!

Coinbase Launches Support for Four Ethereum-Powered Altcoins, Triggering Massive Rallies

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Stefan

Stefan

Delphi/Rust/Go developer. Ethereum consultant. Embarcadero MVP. Ex-Adobe, Macromedia. Helped build 1Password.

More from Medium

Smart contract for blind auctions

blind auction

Smart Contracts and The Blockchain — Everything You Need to Know

Cross chain bridge transactions between blockchain

Achieving Security In Blockchain Part One: Outlining The Problem