A decentralized application (Dapp, dApp or DApp) is an application that is run by many users on a decentralized network with trustless protocols.
Questions tagged [decentralized-applications]
259 questions
0
votes
1 answer
how to connect trust wallet and metamask in react with ethers.js
I am going to connect with trust wallet on mobile and metamask on computer in react.
but now I can only connect with metamask. I want to connect with trust wallet on mobile.
How does it solve?

Rango22
- 66
- 10
0
votes
1 answer
Display Transaction Hash in Frontend
How can we display transaction Hash in the front end using blockchain? I tried
getTransactionsByAccount("*")
Find transactions to/from eth.accounts[0] address
https://web3js.readthedocs.io/en/v1.2.11/web3-eth-contract.html

yamna iftikhar
- 103
- 1
- 5
0
votes
0 answers
While running truffle migrate it gives me this error
truffle migrate it gives me this error
I can't migrate the contracts. Here´s what I do:
truffle init
truffle compile
truffle migrate
0
votes
0 answers
How to save hidden data in the blockchain? Mapping?
When I use mapping to store data, in that case, if I don't know the key (_secretToken), I won't be able to get the data in my dapp.
contract Register {
mapping(bytes => bool) private myHiddenToken;
function register(bytes calldata…

Alexey Norilsk
- 3
- 1
0
votes
1 answer
`dapp-build: building with linked libraries` | why do I get this?
I have a dapptools project, and when I run dapp test I get the following before my tests happen:
dapp-build: building with linked libraries
dapp: Predeploying test library lib/openzeppelin-contracts/contracts/utils/Address.sol:Address at…

Patrick Collins
- 5,621
- 3
- 26
- 64
0
votes
1 answer
TypeError: this is undefined in rect js while passing BigNumber in solana RPC Request
i am getting this is undefined at BN while making RPC request to a function in solana smart contract
'''
let token1Amount = BN(token1_amount);
let token2Amount = BN(token2_amount)
const add_liquidity = await router_program.rpc.addLiquidity(
…

mohan A
- 65
- 2
- 10
0
votes
1 answer
Can I create a same pair in different DEXes?
All.
I'm new to blockchain and currently in a course of learning it.
While I was reading books about DEX(Decentralized Exchanges), I have got a questions regarding liquidity and pair.
Is it possible to create the same pair on difference…

Ming Soon
- 998
- 2
- 11
- 32
0
votes
1 answer
How to get price information from Chainlink?
I would like to get USD price of DeFi tokens from Chainlink.
However, it looks like, I can get the price of an asset through either the Chainlink API calls, or Chainlink price feeds.
What are the costs associated with each and the differences and…

Yizhar
- 875
- 9
- 11
0
votes
0 answers
Is there any testnet for trading? I want to test trading my newly created token
I'm a newbie here. We are currently developing a token but we need to test it as if we are trading on mainnet. Is there any testnet for trading on BSC testnet? Our token is now registered on testnet in bscscan. I also set the liquidity for my test…
0
votes
1 answer
Fork pancakeswap frontend
Trying to fork pancakeswap from https://github.com/pancakeswap/pancake-frontend.
Steps what I did,
Clone Repo
Run npm install command
Run npm start command
Solve some no-used props error by commenting that props. After that also 2 errors are still…

Aadhavan G S
- 87
- 1
- 2
- 18
0
votes
1 answer
Fail with error PancakeRouter: INSUFFICIENT_B_AMOUNT
In pancake swap, when we enter liquidity pool with any pair of tokens, i'm getting this error
after confirming the transaction through connected wallet
Fail with error 'PancakeRouter: INSUFFICIENT_B_AMOUNT

corning
- 361
- 5
- 20
0
votes
1 answer
Programmatic Minting Process
IM new to the Blockchain/DAPP/NFT thing and need to get the process straight
Assuming my smart contract is setup and pretty standard, I need users to login to the dapp and buy an NFT; IE not on Opensea
Iv created the artwork and stored it on the…

Stefanpt
- 77
- 9
0
votes
1 answer
What is the point of inheriting from ERC271 contract?
I have just started Solidity. For this question, I think it's useful if I first state my understanding of inheritance: If Contract B inherits from Contract A (ie. in contractB.sol we have
contract B is A {...
}
then Contract B will have access to…

Mammoth
- 331
- 3
- 9
0
votes
1 answer
GUNjs user not getting authenticated in incognito window
I have a very strange issue. I have a login page in React where users can either Sign-Up or Login .
When the user signs up, I create a user in GUNjs. And when I login, it logins successfully. However, when I open the site in incognito mode and try…

Pranava Mohan
- 533
- 2
- 8
- 18
0
votes
1 answer
Decentralized Peer to Peer
I am interested in a peer 2 peer decentralized network , I have tried using libraries like pyp2p which required a rendezvous and the likes of https://github.com/macsnoeren/python-p2p-network , since i am not deep in the computer networks domain , I…

Pouriyatajmehrabi
- 47
- 6