Questions tagged [express]
The express tag has no usage guidance.
12
questions
0
votes
1
answer
23
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'...
0
votes
0
answers
11
views
Why is it not showing any results in the Table / Collection Section?
this is my transport.request.model
import mongoose from "mongoose";
const schema = new mongoose.Schema({
Transport : String,
Product : String,
Material : String,
Capacity : Number,
...
0
votes
0
answers
229
views
Run express api with hardhat and ethersJS
I am trying to call the ethers js functions which in turn call my smart contract using an express API. I created the APIs but I'm unable to run the server and get the response for the API request.
I ...
1
vote
0
answers
43
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
208
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
407
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
1k
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
6k
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
183
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
491
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\...