New answers tagged dapps
0
votes
how to sign a batch of transaction with a private key in web3.js
What you're trying to do isn't possible. Batching in web3.js refers to only the batching of JSON-RPC calls. That means you can batch readonly calls (i.e. balanceOf, calls getting current prices on ...
- 11.4k
0
votes
Best way to programmatically get an eth address
It all depends on which wallet client you are using on the frontend. They always has an method which will return the address of the current user. Then you can just store it on a variable and pass to ...
- 536
0
votes
Best way to programmatically get an eth address
Do you mean, grab the address an user that visits your frontend? Metamask has an endpoint for that, it's eth_requestAccounts(https://docs.metamask.io/guide/rpc-api.html#eth-requestaccounts)
- 2,563
0
votes
NFT Id using erc-1155
The point of ERC1155 is that each NFT id has a distinct balance of tokens. You can see it as a fungible NFT.
This is a feature, which is often used on NFT collection reveals for example. At first, ...
- 336
0
votes
Error: could not detect network
The issue on my end was that I was using an old Alchemy API key.
0
votes
Provided address undefined is invalid, the capitalization checksum test failed, or it's an indirect IBAN address which can't be converted
If this is all the code, it looks like you don't have a function to connect the users wallet. Also it should be: window.ethereum.selectedAddress not window.ethereum.selectedWallet
you have to use ...
- 331
0
votes
Developing a Staking and Un-staking Smart Contract
For your reference that was a project on BSC before.
*It's a Ponzi mechanism there. Don't try it.
https://bscscan.com/address/0x1b81f2267d957ce9d041d547593dac9bdf68f819#code
- 111
1
vote
How to upload URL to IPFS API
if you want to stay purely decentralized, do not do this under any circumstances UNLESS your url is another IPFS reference:
{
"image":url
}
I've seen some NFTs rugpulling due to the ...
- 594
0
votes
How to upload URL to IPFS API
You dont have to reupload your images, you can upload the metadata and use the image URL inside the image: field.
Here is an example on how to upload metadata to IPFS using Moralis IPFS API.
https://...
0
votes
What is the best practice of a Dapp development mixed with Python/Django?
To start with Ethereum and Python development, Ethereum documentation "Python" page is a good place to start.
https://ethereum.org/en/developers/docs/programming-languages/python/
It will ...
- 19.5k
0
votes
How to upload URL to IPFS API
In case of NFT, if you already have images uploaded somewhere then this is a good news because the NFT contract looks up at metadata. Just prepare metadata json files and upload those files to the ...
- 146
0
votes
How to upload URL to IPFS API
Why not simply download the image from the link and upload it to IPFS?
Otherwise, you could do similar to what people do with NFTs, which is to create a JSON with an image tag in which you insert the ...
- 336
0
votes
Crypto blog project using smart contracts as payment system and NFT's as access tokens for articles - am I doing it right?
The idea sounds great
I suggest to use IPFS to hold the articles encrypted with metamask encryption (public-private keys encryption)
You don't need multiple smart contracts. Just create the logic in ...
- 162
0
votes
How do I send multiple transactions as one transaction?
I always use this Token MultiSender (BlockBucket) just because the fees are 0.01 ETH compared to the other app which is 0.09 ETH per transaction.
Looked at Etherscan just to check it's all legit and ...
- 36
2
votes
Accepted
ParserError: Expected identifier but got '(' error when using array.push
It's a syntax error because you close the deposit function with bracket } before it ends. The fix : remove the '}' after the line totalDeposits += msg.value; in your deposit function :
// Function to ...
- 1,309
2
votes
Compiling a Smart Contract
You are missing an end quote, parenthesis, and semicolon in your final require statement along with a few other syntax issues. You will also need a closing bracket to close out the deposit() function, ...
- 31
1
vote
Compiling a Contract
The deposit function should look something like this.
function deposit() public payable {
// Check that the contract is still active
require(isActive, "The contract is no longer active.&...
- 118
1
vote
Can revert context be provided to frontend application for solidity's reverts?
You can use the parseError method from your contract's interface. Read the docs for better understanding about Interface parsing
Using your contract's interface, you can use the parseError method and ...
- 356
0
votes
Can revert context be provided to frontend application for solidity's reverts?
Lets test it.
//SPDX-License-Identifier: Unlicense
pragma solidity ^0.8.0;
contract Test {
uint32 check;
error InvalidCheck(uint32 _check);
error StringError(string why);
modifier ...
- 76
0
votes
What does the keyword "memory" do exactly?
In Solidity, the keyword memory is used to declare variables that are stored in the EVM's memory, which is a temporary, short-lived storage area that is used during contract execution. Memory ...
Top 50 recent answers are included
Related Tags
dapps × 1120solidity × 304
web3js × 242
dapp-development × 217
blockchain × 130
metamask × 116
go-ethereum × 86
contract-development × 85
ethereum-wallet-dapp × 70
truffle × 63
react × 50
ether × 49
remix × 48
javascript × 48
tokens × 39
contract-design × 39
ipfs × 37
wallets × 35
transactions × 32
dapp-design × 32
erc-20 × 29
private-blockchain × 26
nft × 26
ethers.js × 26
ethereumjs × 23