├── PyChain
├── __init__.py
├── __pycache__
│ ├── __init__.cpython-36.pyc
│ ├── settings.cpython-36.pyc
│ ├── urls.cpython-36.pyc
│ └── wsgi.cpython-36.pyc
├── settings.py
├── urls.py
└── wsgi.py
├── blockchain
├── __init__.py
├── __pycache__
│ ├── __init__.cpython-36.pyc
│ ├── admin.cpython-36.pyc
│ ├── models.cpython-36.pyc
│ └── views.cpython-36.pyc
├── admin.py
├── apps.py
├── migrations
│ ├── __init__.py
│ └── __pycache__
│ │ └── __init__.cpython-36.pyc
├── models.py
├── tests.py
└── views.py
├── db.sqlite3
├── frontend
├── .gitignore
├── README.md
├── package-lock.json
├── package.json
├── public
│ ├── favicon.ico
│ ├── index.html
│ ├── logo192.png
│ ├── logo512.png
│ ├── manifest.json
│ └── robots.txt
└── src
│ ├── App.css
│ ├── App.js
│ ├── App.test.js
│ ├── components
│ ├── send.js
│ ├── status.js
│ └── transactions.js
│ ├── index.css
│ ├── index.js
│ ├── logo.svg
│ └── serviceWorker.js
├── instructions.md
├── manage.py
└── requirements.txt
/PyChain/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/PyChain/__init__.py
--------------------------------------------------------------------------------
/PyChain/__pycache__/__init__.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/PyChain/__pycache__/__init__.cpython-36.pyc
--------------------------------------------------------------------------------
/PyChain/__pycache__/settings.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/PyChain/__pycache__/settings.cpython-36.pyc
--------------------------------------------------------------------------------
/PyChain/__pycache__/urls.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/PyChain/__pycache__/urls.cpython-36.pyc
--------------------------------------------------------------------------------
/PyChain/__pycache__/wsgi.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/PyChain/__pycache__/wsgi.cpython-36.pyc
--------------------------------------------------------------------------------
/PyChain/settings.py:
--------------------------------------------------------------------------------
1 | """
2 | Django settings for PyChain project.
3 |
4 | Generated by 'django-admin startproject' using Django 2.2.6.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/2.2/topics/settings/
8 |
9 | For the full list of settings and their values, see
10 | https://docs.djangoproject.com/en/2.2/ref/settings/
11 | """
12 |
13 | import os
14 |
15 | # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
16 | BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
17 |
18 |
19 | # Quick-start development settings - unsuitable for production
20 | # See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/
21 |
22 | # SECURITY WARNING: keep the secret key used in production secret!
23 | SECRET_KEY = '^s)o14p$auv!401k(2(kv5=+ma*lajaab@rr%ksddaff-%7ug)'
24 |
25 | # SECURITY WARNING: don't run with debug turned on in production!
26 | DEBUG = True
27 |
28 | ALLOWED_HOSTS = []
29 |
30 |
31 | # Application definition
32 |
33 | INSTALLED_APPS = [
34 | 'django.contrib.admin',
35 | 'django.contrib.auth',
36 | 'django.contrib.contenttypes',
37 | 'django.contrib.sessions',
38 | 'django.contrib.messages',
39 | 'django.contrib.staticfiles',
40 | 'blockchain',
41 | 'corsheaders',
42 | ]
43 |
44 | MIDDLEWARE = [
45 | 'corsheaders.middleware.CorsMiddleware',
46 | 'django.middleware.security.SecurityMiddleware',
47 | 'django.contrib.sessions.middleware.SessionMiddleware',
48 | 'django.middleware.common.CommonMiddleware',
49 | 'django.middleware.csrf.CsrfViewMiddleware',
50 | 'django.contrib.auth.middleware.AuthenticationMiddleware',
51 | 'django.contrib.messages.middleware.MessageMiddleware',
52 | 'django.middleware.clickjacking.XFrameOptionsMiddleware',
53 | ]
54 |
55 | ROOT_URLCONF = 'PyChain.urls'
56 |
57 | TEMPLATES = [
58 | {
59 | 'BACKEND': 'django.template.backends.django.DjangoTemplates',
60 | 'DIRS': [],
61 | 'APP_DIRS': True,
62 | 'OPTIONS': {
63 | 'context_processors': [
64 | 'django.template.context_processors.debug',
65 | 'django.template.context_processors.request',
66 | 'django.contrib.auth.context_processors.auth',
67 | 'django.contrib.messages.context_processors.messages',
68 | ],
69 | },
70 | },
71 | ]
72 |
73 | WSGI_APPLICATION = 'PyChain.wsgi.application'
74 |
75 |
76 | # Database
77 | # https://docs.djangoproject.com/en/2.2/ref/settings/#databases
78 |
79 | DATABASES = {
80 | 'default': {
81 | 'ENGINE': 'django.db.backends.sqlite3',
82 | 'NAME': os.path.join(BASE_DIR, 'db.sqlite3'),
83 | }
84 | }
85 |
86 |
87 | # Password validation
88 | # https://docs.djangoproject.com/en/2.2/ref/settings/#auth-password-validators
89 |
90 | AUTH_PASSWORD_VALIDATORS = [
91 | {
92 | 'NAME': 'django.contrib.auth.password_validation.UserAttributeSimilarityValidator',
93 | },
94 | {
95 | 'NAME': 'django.contrib.auth.password_validation.MinimumLengthValidator',
96 | },
97 | {
98 | 'NAME': 'django.contrib.auth.password_validation.CommonPasswordValidator',
99 | },
100 | {
101 | 'NAME': 'django.contrib.auth.password_validation.NumericPasswordValidator',
102 | },
103 | ]
104 |
105 |
106 | # Internationalization
107 | # https://docs.djangoproject.com/en/2.2/topics/i18n/
108 |
109 | LANGUAGE_CODE = 'en-us'
110 |
111 | TIME_ZONE = 'UTC'
112 |
113 | USE_I18N = True
114 |
115 | USE_L10N = True
116 |
117 | USE_TZ = True
118 |
119 |
120 | # Static files (CSS, JavaScript, Images)
121 | # https://docs.djangoproject.com/en/2.2/howto/static-files/
122 |
123 | STATIC_URL = '/static/'
124 |
125 | CORS_ORIGIN_ALLOW_ALL = True
126 | CORS_ALLOW_CREDENTIALS = True
127 | #CORS_ORIGIN_WHITELIST = [
128 | #'http://127.0.0.1:3000',
129 | #]
130 | #CORS_ORIGIN_REGEX_WHITELIST = [
131 | # 'http://127.0.0.1:3000',
132 | #]
133 |
--------------------------------------------------------------------------------
/PyChain/urls.py:
--------------------------------------------------------------------------------
1 | """PyChain URL Configuration
2 |
3 | The `urlpatterns` list routes URLs to views. For more information please see:
4 | https://docs.djangoproject.com/en/2.2/topics/http/urls/
5 | Examples:
6 | Function views
7 | 1. Add an import: from my_app import views
8 | 2. Add a URL to urlpatterns: path('', views.home, name='home')
9 | Class-based views
10 | 1. Add an import: from other_app.views import Home
11 | 2. Add a URL to urlpatterns: path('', Home.as_view(), name='home')
12 | Including another URLconf
13 | 1. Import the include() function: from django.urls import include, path
14 | 2. Add a URL to urlpatterns: path('blog/', include('blog.urls'))
15 | """
16 | from django.contrib import admin
17 | from django.urls import path
18 | from django.conf.urls import url
19 | from blockchain import views
20 | from blockchain.views import *
21 |
22 | urlpatterns = [
23 | path('admin/', admin.site.urls),
24 | url('^get_chain$', views.get_chain, name="get_chain"),
25 | url('^mine_block$', views.mine_block, name="mine_block"),
26 | url('^add_transaction$', views.add_transaction, name="add_transaction"),
27 | url('^is_valid$', views.is_valid, name="is_valid"),
28 | url('^connect_node$', views.connect_node, name="connect_node"),
29 | url('^replace_chain$', views.replace_chain, name="replace_chain"),
30 | ]
31 |
--------------------------------------------------------------------------------
/PyChain/wsgi.py:
--------------------------------------------------------------------------------
1 | """
2 | WSGI config for PyChain project.
3 |
4 | It exposes the WSGI callable as a module-level variable named ``application``.
5 |
6 | For more information on this file, see
7 | https://docs.djangoproject.com/en/2.2/howto/deployment/wsgi/
8 | """
9 |
10 | import os
11 |
12 | from django.core.wsgi import get_wsgi_application
13 |
14 | os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'PyChain.settings')
15 |
16 | application = get_wsgi_application()
17 |
--------------------------------------------------------------------------------
/blockchain/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/blockchain/__init__.py
--------------------------------------------------------------------------------
/blockchain/__pycache__/__init__.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/blockchain/__pycache__/__init__.cpython-36.pyc
--------------------------------------------------------------------------------
/blockchain/__pycache__/admin.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/blockchain/__pycache__/admin.cpython-36.pyc
--------------------------------------------------------------------------------
/blockchain/__pycache__/models.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/blockchain/__pycache__/models.cpython-36.pyc
--------------------------------------------------------------------------------
/blockchain/__pycache__/views.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/blockchain/__pycache__/views.cpython-36.pyc
--------------------------------------------------------------------------------
/blockchain/admin.py:
--------------------------------------------------------------------------------
1 | from django.contrib import admin
2 |
3 | # Register your models here.
4 |
--------------------------------------------------------------------------------
/blockchain/apps.py:
--------------------------------------------------------------------------------
1 | from django.apps import AppConfig
2 |
3 |
4 | class BlockchainConfig(AppConfig):
5 | name = 'blockchain'
6 |
--------------------------------------------------------------------------------
/blockchain/migrations/__init__.py:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/blockchain/migrations/__init__.py
--------------------------------------------------------------------------------
/blockchain/migrations/__pycache__/__init__.cpython-36.pyc:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/blockchain/migrations/__pycache__/__init__.cpython-36.pyc
--------------------------------------------------------------------------------
/blockchain/models.py:
--------------------------------------------------------------------------------
1 | from django.db import models
2 |
3 | # Create your models here.
4 |
--------------------------------------------------------------------------------
/blockchain/tests.py:
--------------------------------------------------------------------------------
1 | from django.test import TestCase
2 |
3 | # Create your tests here.
4 |
--------------------------------------------------------------------------------
/blockchain/views.py:
--------------------------------------------------------------------------------
1 | from django.shortcuts import render
2 | import datetime
3 | import hashlib
4 | import json
5 | from uuid import uuid4
6 | import socket
7 | from urllib.parse import urlparse
8 | from django.http import JsonResponse, HttpResponse, HttpRequest
9 | from django.views.decorators.csrf import csrf_exempt
10 |
11 |
12 | class Blockchain:
13 |
14 | def __init__(self):
15 | self.chain = []
16 | self.transactions = []
17 | self.create_block(nonce = 1, previous_hash = '0')
18 | self.nodes = set()
19 |
20 | def create_block(self, nonce, previous_hash):
21 | block = {'index': len(self.chain) + 1,
22 | 'timestamp': str(datetime.datetime.now()),
23 | 'nonce': nonce,
24 | 'previous_hash': previous_hash,
25 | 'transactions': self.transactions}
26 | self.transactions = []
27 | self.chain.append(block)
28 | return block
29 |
30 | def get_last_block(self):
31 | return self.chain[-1]
32 |
33 | def proof_of_work(self, previous_nonce):
34 | new_nonce = 1
35 | check_nonce = False
36 | while check_nonce is False:
37 | hash_operation = hashlib.sha256(str(new_nonce**2 - previous_nonce**2).encode()).hexdigest()
38 | if hash_operation[:4] == '0000':
39 | check_nonce = True
40 | else:
41 | new_nonce += 1
42 | return new_nonce
43 |
44 | def hash(self, block):
45 | encoded_block = json.dumps(block, sort_keys = True).encode()
46 | return hashlib.sha256(encoded_block).hexdigest()
47 |
48 | def is_chain_valid(self, chain):
49 | previous_block = chain[0]
50 | block_index = 1
51 | while block_index < len(chain):
52 | block = chain[block_index]
53 | if block['previous_hash'] != self.hash(previous_block):
54 | return False
55 | previous_nonce = previous_block['nonce']
56 | nonce = block['nonce']
57 | hash_operation = hashlib.sha256(str(nonce**2 - previous_nonce**2).encode()).hexdigest()
58 | if hash_operation[:4] != '0000':
59 | return False
60 | previous_block = block
61 | block_index += 1
62 | return True
63 |
64 | def add_transaction(self, sender, receiver, amount, time):
65 | self.transactions.append({'sender': sender,
66 | 'receiver': receiver,
67 | 'amount': amount,
68 | 'time': str(datetime.datetime.now())})
69 | previous_block = self.get_last_block()
70 | return previous_block['index'] + 1
71 |
72 | def add_node(self, address):
73 | parsed_url = urlparse(address)
74 | self.nodes.add(parsed_url.netloc)
75 |
76 |
77 | def replace_chain(self):
78 | network = self.nodes
79 | longest_chain = None
80 | max_length = len(self.chain)
81 | for node in network:
82 | response = requests.get(f'http://{node}/get_chain')
83 | if response.status_code == 200:
84 | length = response.json()['length']
85 | chain = response.json()['chain']
86 | if length > max_length and self.is_chain_valid(chain):
87 | max_length = length
88 | longest_chain = chain
89 | if longest_chain:
90 | self.chain = longest_chain
91 | return True
92 | return False
93 |
94 |
95 | # Creating our Blockchain
96 | blockchain = Blockchain()
97 | # Creating an address for the node running our server
98 | node_address = str(uuid4()).replace('-', '')
99 | root_node = 'e36f0158f0aed45b3bc755dc52ed4560d'
100 |
101 | # Mining a new block
102 | def mine_block(request):
103 | if request.method == 'GET':
104 | previous_block = blockchain.get_last_block()
105 | previous_nonce = previous_block['nonce']
106 | nonce = blockchain.proof_of_work(previous_nonce)
107 | previous_hash = blockchain.hash(previous_block)
108 | blockchain.add_transaction(sender = root_node, receiver = node_address, amount = 1.15, time=str(datetime.datetime.now()))
109 | block = blockchain.create_block(nonce, previous_hash)
110 | response = {'message': 'Congratulations, you just mined a block!',
111 | 'index': block['index'],
112 | 'timestamp': block['timestamp'],
113 | 'nonce': block['nonce'],
114 | 'previous_hash': block['previous_hash'],
115 | 'transactions': block['transactions']}
116 | return JsonResponse(response)
117 |
118 | # Getting the full Blockchain
119 | def get_chain(request):
120 | if request.method == 'GET':
121 | response = {'chain': blockchain.chain,
122 | 'length': len(blockchain.chain)}
123 | return JsonResponse(response)
124 |
125 | # Checking if the Blockchain is valid
126 | def is_valid(request):
127 | if request.method == 'GET':
128 | is_valid = blockchain.is_chain_valid(blockchain.chain)
129 | if is_valid:
130 | response = {'message': 'All good. The Blockchain is valid.'}
131 | else:
132 | response = {'message': 'Houston, we have a problem. The Blockchain is not valid.'}
133 | return JsonResponse(response)
134 |
135 | # Adding a new transaction to the Blockchain
136 | @csrf_exempt
137 | def add_transaction(request):
138 | if request.method == 'POST':
139 | received_json = json.loads(request.body)
140 | transaction_keys = ['sender', 'receiver', 'amount','time']
141 | if not all(key in received_json for key in transaction_keys):
142 | return 'Some elements of the transaction are missing', HttpResponse(status=400)
143 | index = blockchain.add_transaction(received_json['sender'], received_json['receiver'], received_json['amount'],received_json['time'])
144 | response = {'message': f'This transaction will be added to Block {index}'}
145 | return JsonResponse(response)
146 |
147 | # Connecting new nodes
148 | @csrf_exempt
149 | def connect_node(request):
150 | if request.method == 'POST':
151 | received_json = json.loads(request.body)
152 | nodes = received_json.get('nodes')
153 | if nodes is None:
154 | return "No node", HttpResponse(status=400)
155 | for node in nodes:
156 | blockchain.add_node(node)
157 | response = {'message': 'All the nodes are now connected. The Sudocoin Blockchain now contains the following nodes:',
158 | 'total_nodes': list(blockchain.nodes)}
159 | return JsonResponse(response)
160 |
161 | # Replacing the chain by the longest chain if needed
162 | def replace_chain(request):
163 | if request.method == 'GET':
164 | is_chain_replaced = blockchain.replace_chain()
165 | if is_chain_replaced:
166 | response = {'message': 'The nodes had different chains so the chain was replaced by the longest one.',
167 | 'new_chain': blockchain.chain}
168 | else:
169 | response = {'message': 'All good. The chain is the largest one.',
170 | 'actual_chain': blockchain.chain}
171 | return JsonResponse(response)
172 |
--------------------------------------------------------------------------------
/db.sqlite3:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/db.sqlite3
--------------------------------------------------------------------------------
/frontend/.gitignore:
--------------------------------------------------------------------------------
1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2 |
3 | # dependencies
4 | /node_modules
5 | /.pnp
6 | .pnp.js
7 |
8 | # testing
9 | /coverage
10 |
11 | # production
12 | /build
13 |
14 | # misc
15 | .DS_Store
16 | .env.local
17 | .env.development.local
18 | .env.test.local
19 | .env.production.local
20 |
21 | npm-debug.log*
22 | yarn-debug.log*
23 | yarn-error.log*
24 |
--------------------------------------------------------------------------------
/frontend/README.md:
--------------------------------------------------------------------------------
1 | This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
2 |
3 | ## Available Scripts
4 |
5 | In the project directory, you can run:
6 |
7 | ### `npm start`
8 |
9 | Runs the app in the development mode.
10 | Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11 |
12 | The page will reload if you make edits.
13 | You will also see any lint errors in the console.
14 |
15 | ### `npm test`
16 |
17 | Launches the test runner in the interactive watch mode.
18 | See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19 |
20 | ### `npm run build`
21 |
22 | Builds the app for production to the `build` folder.
23 | It correctly bundles React in production mode and optimizes the build for the best performance.
24 |
25 | The build is minified and the filenames include the hashes.
26 | Your app is ready to be deployed!
27 |
28 | See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29 |
30 | ### `npm run eject`
31 |
32 | **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33 |
34 | If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
35 |
36 | Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
37 |
38 | You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
39 |
40 | ## Learn More
41 |
42 | You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43 |
44 | To learn React, check out the [React documentation](https://reactjs.org/).
45 |
46 | ### Code Splitting
47 |
48 | This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49 |
50 | ### Analyzing the Bundle Size
51 |
52 | This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53 |
54 | ### Making a Progressive Web App
55 |
56 | This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57 |
58 | ### Advanced Configuration
59 |
60 | This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61 |
62 | ### Deployment
63 |
64 | This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65 |
66 | ### `npm run build` fails to minify
67 |
68 | This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
69 |
--------------------------------------------------------------------------------
/frontend/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "frontend",
3 | "version": "0.1.0",
4 | "private": true,
5 | "proxy": "http://127.0.0.1:8000",
6 | "dependencies": {
7 | "axios": "^0.19.0",
8 | "bootstrap": "^4.3.1",
9 | "font-awesome": "^4.7.0",
10 | "react": "^16.10.2",
11 | "react-bootstrap": "^1.0.0-beta.14",
12 | "react-dom": "^16.10.2",
13 | "react-scripts": "3.2.0"
14 | },
15 | "scripts": {
16 | "start": "react-scripts start",
17 | "build": "react-scripts build",
18 | "test": "react-scripts test",
19 | "eject": "react-scripts eject"
20 | },
21 | "eslintConfig": {
22 | "extends": "react-app"
23 | },
24 | "browserslist": {
25 | "production": [
26 | ">0.2%",
27 | "not dead",
28 | "not op_mini all"
29 | ],
30 | "development": [
31 | "last 1 chrome version",
32 | "last 1 firefox version",
33 | "last 1 safari version"
34 | ]
35 | }
36 | }
37 |
--------------------------------------------------------------------------------
/frontend/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kemoszn/PyChain/fd958db3be619adb9093f1c1a7de67726b0e2cc2/frontend/public/favicon.ico
--------------------------------------------------------------------------------
/frontend/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
(Sync to get the latest transactions in the blockchain)
25 |From | 29 |To | 30 |Amount (Sudo) | 31 |Timestamp | 32 |
---|---|---|---|
0x{t.sender} | 39 |0x{t.receiver} | 40 |{parseFloat(t.amount).toFixed(5)} | 41 |{t.time} | 42 |