Questions tagged [express]
The express tag has no usage guidance.
11 questions
0
votes
1
answer
46
views
Not able to run a function of a smart contract (Create Community) from Express.js server
I am trying to create community from express server but getting an error. The get Community is running fine I am able to get the Community corresponding to that particular id. But when trying to send ...
0
votes
1
answer
30
views
Restricting External Adapter Access to a Specific Smart Contract: Is it Feasible?
How can I ensure that my external adapter is only accessible by a specific contract? Does the Post express middleware in the external adapter have a header key indicating the calling smart contract? I'...
1
vote
0
answers
54
views
Is it possible to use cors or something similar to reject all API calls not from a particular ENS Domain, Unstoppable Domain, or IPFS hash?
I love decentralized domain projects. I have worked with Unstoppable Domains, ENS domains, Handshake domains, and even just simple IPNS domains and IPFS hashes. The domain name system used by web2.0 ...
1
vote
0
answers
220
views
How to add logo to a web3 personal signature message?
I have generated a signature message from my react js app for the users. But in mobile metamask the message displays a letter D, the first letter of my url, at the top of the message.
But I want to ...
3
votes
2
answers
2k
views
Is there any way to listen smart contract events from nodejs-expressjs server?
I am developing a smart contract project and I need to listen events on my expressjs-server. Is it possible to listen events from there?
2
votes
1
answer
443
views
How do I listen to Contract Events in my Express App?
I have a Smart Contract rps.
I want my express app to be able to listen to its events.
My express app:
require("dotenv").config();
const express = require("express");
const app = ...
0
votes
1
answer
2k
views
Best practice for Single or Multiple instances of Provider for different types of block chain requests #
What the best practice is in terms of using the ethers provider as either a singleton (or persistent instance) in a module or to create a new instance every time a request is made. For example, for a ...
5
votes
1
answer
7k
views
Subscribing to events using ethers / hardhat network
I have a basic node express application. It connects to my locally running hardhat network via ethers & websocket. The connection seems to work, since I can query the blockchain succesfully (for ...
0
votes
1
answer
201
views
How can a server except a signed tx and pay the gas?
I have a contract where users can buy "credits".
With that credit, users can post a message to a server (a route set up in ExpressJS).
I have the buying of credits working.
But my question ...
1
vote
0
answers
80
views
where to host express api that communicates with smart contract to be fully decentralised?
I need to host express api that communicates with smart contract to be fully decentralised. Any to host it decentralised.
1
vote
0
answers
503
views
UnhandledPromiseRejectionWarning TypeError when deploying multiple contracts (>200) at the same time
I get the following error:
(node:6540) UnhandledPromiseRejectionWarning: TypeError: this.removeListener is not a function
at Object.receipt (c:\Users\pruto\OneDrive\Documents\Smart contracts\...