Creation of a middleware for blockchain interaction based on NestJS

Accessing and operating with a blockchain node is paramount when interacting with smart contracts. Several API providers already exist, but this approach includes an extra dependency in development. Moreover, these tools require an already provided JSON-RPC node, instead of a locally-managed one. He...

ver descrição completa

Detalhes bibliográficos
Autor: Cosgaya Capel, Marc
Tipo de documento: dissertação
Data de publicação:2023
País:España
Recursos:Universitat Politècnica de Catalunya (UPC)
Repositório:UPCommons. Portal del coneixement obert de la UPC
Idioma:inglês
OAI Identifier:oai:upcommons.upc.edu:2117/402646
Acesso em linha:https://hdl.handle.net/2117/402646
Access Level:Acceso aberto
Palavra-chave:Blockchains (Databases)
Ethereum (Databases)
ethereum
ethers
Solidity
Nest
Cadena de blocs (Bases de dades)
Àrees temàtiques de la UPC::Informàtica::Sistemes d'informació
Descrição
Resumo:Accessing and operating with a blockchain node is paramount when interacting with smart contracts. Several API providers already exist, but this approach includes an extra dependency in development. Moreover, these tools require an already provided JSON-RPC node, instead of a locally-managed one. Hence, the scope of this work is to develop a middleware, which provides an API, to interact with a local node using HTTP calls. In particular, the work focuses on an Ethereum middleware and, in turn, on smart contracts programmed using Solidity. The main technology that allows building the middleware is Nest, a backend framework built on top of Express. And to interact with the blockchain, it uses the Ethers library.