Crypto Paycheck
Photo by Mario Gogh on UnsplashEmployees will receive their paycheck in the period as a reward for their work. However, the employer wants to pay less to employees so that they can have maximum profits. The tension between working and anti-working has increased ever since. TL;DR Nobody wants to work unless they can pay fairly. Fiat payment may not be sustainable to satisfy what workers can contribute if the employer continues paying less and gaining more from profits. Employees will want thei...
Defi Review #4: AAVE The Defi Lending Services
AAVE is a decentralized finance lending service before decentralized finance even existed. It is an innovation lending service in crypto and one of the first kind. However, the lending service may only restrict to the crypto community and it may expand into the traditional financial field later. TL;DR AAVE is a crypto lending financial service which to provides lending services to the crypto community. They focus on security and smart contract lending may be the future of financial services. ...

Stablecoin Crisis
Stablecoin is in the crisis mode. The most reputable stablecoin USDC is depegged. It is all triggered by the traditional bank collapse - Silicon Valley Bank or SVB collapse. Why traditional bank collapse impacts crypto stablecoin? Let's sort this out and reveal how stablecoin operates. First, why SVB collapse? The short answer is overleveraged. SVB is one of the 20 largest commercial banking in the United States. Some even estimate the bank owned half of startup assets. Bank operated in ...


Crypto Paycheck
Photo by Mario Gogh on UnsplashEmployees will receive their paycheck in the period as a reward for their work. However, the employer wants to pay less to employees so that they can have maximum profits. The tension between working and anti-working has increased ever since. TL;DR Nobody wants to work unless they can pay fairly. Fiat payment may not be sustainable to satisfy what workers can contribute if the employer continues paying less and gaining more from profits. Employees will want thei...
Defi Review #4: AAVE The Defi Lending Services
AAVE is a decentralized finance lending service before decentralized finance even existed. It is an innovation lending service in crypto and one of the first kind. However, the lending service may only restrict to the crypto community and it may expand into the traditional financial field later. TL;DR AAVE is a crypto lending financial service which to provides lending services to the crypto community. They focus on security and smart contract lending may be the future of financial services. ...

Stablecoin Crisis
Stablecoin is in the crisis mode. The most reputable stablecoin USDC is depegged. It is all triggered by the traditional bank collapse - Silicon Valley Bank or SVB collapse. Why traditional bank collapse impacts crypto stablecoin? Let's sort this out and reveal how stablecoin operates. First, why SVB collapse? The short answer is overleveraged. SVB is one of the 20 largest commercial banking in the United States. Some even estimate the bank owned half of startup assets. Bank operated in ...
Share Dialog
Share Dialog

Subscribe to xuanling11

Subscribe to xuanling11
<100 subscribers
<100 subscribers
Blockchain is a big word and a confusing word to newbies.
A blockchain is an online public bookkeeping ledger.

https://www.beginner-bookkeeping.com/bookkeeping-ledgers.html
It automatically registers a financial transaction from the sender to the receiver.
Before we go into depth about the blockchain, let’s build a simple financial transaction from Python.
You will need:
👉 sender’s name
👉 receiver’s name
👉 amount to transact
In Python, dictionaries are preferable for transaction data storage since it is a set of key: value pairs that are searchable.
If Alice, the sender, sent $30 to Bob, the receiver, through a transaction, here is how to construct the data:
transaction1 = { ‘amount’: ‘30’, ‘sender’: ‘Alice’, ‘receiver’: ‘Bob’}
You can register more transactions by repeating the above method:
transaction2 = { ‘amount’: ‘200’, ‘sender’: ‘Bob’, ‘receiver’: ‘Alice’}
transaction3 = { ‘amount’: ‘300’, ‘sender’: ‘Alice’, ‘receiver’: ‘Bob’ }
transaction4 = { ‘amount’: ‘300’, ‘sender’: ‘Bob’, ‘receiver’: ‘Alice’ }
transaction5 = { ‘amount’: ‘200’, ‘sender’: ‘Alice’, ‘receiver’: ‘Bob’ }
transaction6 = { ‘amount’: ‘400’, ‘sender’: ‘Bob’, ‘receiver’: ‘Alice’ }
Assume you will have six transactions total. You combine them together in one assigned variable, “mempool”:
mempool = [transaction1, transaction2, transaction3, transaction4, transaction5, transaction6]
Since there is a new transaction that needs to register in the blockchain, we can add through .append() :
my_transaction = { ‘amount’: ‘100’, ‘sender’: ‘Alice’, ‘receiver’: ‘Bob’ }mempool.append(my_transaction)
Now, you have got your ledger input through Python manually!
You can search transactions whichever you want to. For instance, if you want the first 3 transactions, you can do:
block_transactions = mempool[0:3]print(block_transactions)
Congratulation!
You got your blockchain! Although it does not automatically generate and capture transactions, you get your first blockchain at least!
You can have a code below:
https://gist.github.com/xuanling11/262023653ccbde9e7151b8c4aab37b1a

If you enjoy reading my articles, buy me a coffee here.
Photo byGuerrillaBuzz Crypto PR onUnsplash
Blockchain is a big word and a confusing word to newbies.
A blockchain is an online public bookkeeping ledger.

https://www.beginner-bookkeeping.com/bookkeeping-ledgers.html
It automatically registers a financial transaction from the sender to the receiver.
Before we go into depth about the blockchain, let’s build a simple financial transaction from Python.
You will need:
👉 sender’s name
👉 receiver’s name
👉 amount to transact
In Python, dictionaries are preferable for transaction data storage since it is a set of key: value pairs that are searchable.
If Alice, the sender, sent $30 to Bob, the receiver, through a transaction, here is how to construct the data:
transaction1 = { ‘amount’: ‘30’, ‘sender’: ‘Alice’, ‘receiver’: ‘Bob’}
You can register more transactions by repeating the above method:
transaction2 = { ‘amount’: ‘200’, ‘sender’: ‘Bob’, ‘receiver’: ‘Alice’}
transaction3 = { ‘amount’: ‘300’, ‘sender’: ‘Alice’, ‘receiver’: ‘Bob’ }
transaction4 = { ‘amount’: ‘300’, ‘sender’: ‘Bob’, ‘receiver’: ‘Alice’ }
transaction5 = { ‘amount’: ‘200’, ‘sender’: ‘Alice’, ‘receiver’: ‘Bob’ }
transaction6 = { ‘amount’: ‘400’, ‘sender’: ‘Bob’, ‘receiver’: ‘Alice’ }
Assume you will have six transactions total. You combine them together in one assigned variable, “mempool”:
mempool = [transaction1, transaction2, transaction3, transaction4, transaction5, transaction6]
Since there is a new transaction that needs to register in the blockchain, we can add through .append() :
my_transaction = { ‘amount’: ‘100’, ‘sender’: ‘Alice’, ‘receiver’: ‘Bob’ }mempool.append(my_transaction)
Now, you have got your ledger input through Python manually!
You can search transactions whichever you want to. For instance, if you want the first 3 transactions, you can do:
block_transactions = mempool[0:3]print(block_transactions)
Congratulation!
You got your blockchain! Although it does not automatically generate and capture transactions, you get your first blockchain at least!
You can have a code below:
https://gist.github.com/xuanling11/262023653ccbde9e7151b8c4aab37b1a

If you enjoy reading my articles, buy me a coffee here.
Photo byGuerrillaBuzz Crypto PR onUnsplash
No activity yet