Questions tagged [blockchain]

A blockchain is an open, distributed ledger that can record transactions between two parties in a verifiable and permanent way. The ledger itself can also be programmed to trigger transactions automatically.

Filter by
Sorted by
Tagged with
0 votes
0 answers
11 views

How to perform a read-only query in subxt?

Working with the subxt library in Rust to interact with a substrate-contracts-node, I can not find a solution to make a query on an ink! based contract. In the JavaScript library polkadotjs is a query ...
chriamue's user avatar
  • 969
0 votes
1 answer
12 views

CompilerError: Stack too deep. Try compiling

// SPDX-License-Identifier: [` `MIT` pragma solidity >=0.5.0 <0.9.0; contract Record { struct Patients { string ic; string name; string phone; string gender; ...
Thamesh chandravanshi's user avatar
-1 votes
0 answers
6 views

The link for installing homebrew on ubuntu timing out on windows [closed]

I am a beginner mern stack developer and just starting to learn block chain too. however whenever i try to install homebrew on ubuntu, its timing out. i dont understand what could be the problemthe ...
maaz-anwer's user avatar
-1 votes
0 answers
20 views

Javascript chainlink payment

Is there any easy way to process a Chainlink payment using javascript and metamask? I can't make heads or tails of the chainlink documentation, it seems awfully complicated to me. If there's no easy ...
DubiousTunic's user avatar
0 votes
0 answers
12 views

Backend API for accepting crypto payment like Coinbase commerce

I want to create a personal crypto gateway REST API with simple actions like Coinbase Commerce via Nodejs from scratch and not using Coinbase Commerce API or other third-party company. I want to ...
Abdol Seed's user avatar
  • 1,227
-1 votes
0 answers
18 views

What is different with 'Sign' and 'SignDirect'

recently I started develop with javascript cosmos sdk 'cosmjs'. I'm trying to make interface to map evm based method with cosmos based method so for example, function myFunc(networkType, method){ ...
Jisang Seo's user avatar
-1 votes
0 answers
26 views

Event flooding in gossipsub protocol (rust_libp2p)

I've prepared a P2P network similar to rust-libp2p/examples/chat with the only difference being that my network is time-based (checks queue every 2 seconds and publishes if data is available) and the ...
Pawan Bisht's user avatar
0 votes
0 answers
10 views

How does HD wallet generates the ENT? [closed]

i've been searching for a while but i didn't get a decent answer, I'm working on a persona project and i would like to ricreare as precise as i can a real HD wallet does anyone know how are ENT ...
edoardosanti's user avatar
1 vote
0 answers
11 views

TrustWallet not injecting Ethereum provider with deeplinking into mobile IOS TrustWallet app

const connectTrustWallet = () => { // alert(`is window.trustwallet.ethereum ${window.trustwallet?.ethereum}`); // alert(`is window.ethereum ${window.ethereum}`); if (isOnMobile() &&...
Mila A's user avatar
  • 409
-1 votes
0 answers
12 views

How to use large Memory and Compute on blockchain? [closed]

I am new to blockchain and trying to understand it from an implementation perspective. Specifically, I am trying to solve a problem that needs both memory and compute. For example, if when sorting ...
yts's user avatar
  • 1
0 votes
0 answers
24 views

cross contract call to ref finance on near protocol

I'm currently building a smart contract that tries swap tokens on ref finance dex but did not find a trait implementing the ref finance dex interface. I attempted using "transfer_call" ...
c_e_nwadike's user avatar
0 votes
1 answer
13 views

Looking for Uniswap-like Swap Routers on Ethereum Mainnet

Could someone kindly provide me with a list of Ethereum mainnet swap routers that are derived from the Uniswap V2 router? Similar to how SushiSwap is a fork of the Uniswap router. I couldn't find any ...
Ibrahim Khalil's user avatar
-1 votes
0 answers
9 views

What if L1 reject state commit from starknet L2?

According to the description of the transaction lifecycle in the official website documentation, there are four finality states for a transaction: NOT_RECEIVED, RECEIVED, ACCEPTED_ON_L2, and ...
Chen Chen's user avatar
-3 votes
0 answers
15 views

What is the reason about removed preset files from OpenZeppelin Contract Github? [closed]

[Background] I`m interested in Blockchain and Token System. So, I want to use Native Token(ex. ETH) Transfer, and ERC20 Token Transfer. But, that is look like so expensive to me and did`t know how to ...
PJH's user avatar
  • 7
0 votes
0 answers
30 views

How does DAG-based consensus like Narwhal prevent two validators from including identical transactions in their blocks?

I am reading about DAG-based consensus and BFT. However, I can't understand how validators interpret their DAG as a list of blocks. In BFT, like Tendermint, a leader is the only validator that ...
Fieldza555's user avatar
0 votes
0 answers
7 views

Does Algorand have a clear-cut distinction between ALGO and ASA tokens?

In Ethereum, the only native asset is Ether (ETH). It's the only asset that gets first-class treatment in terms of cost and ability to be pushed and pulled through contract calls. Is there a similarly ...
Paul Razvan Berg's user avatar
1 vote
1 answer
22 views

How did this PEPE dev manage to get his contract address to end in "42069"?

Have noticed the trend among a few shtcoin devs of customizing the last digits of your erc20 contract address. Here is an example of one of the tokens (ending in 42069) and for a PEPE coin nonetheless ...
w0nky's user avatar
  • 11
0 votes
0 answers
21 views

Rainbow kit only showing qr code even the metamask extension is installed

I have installed rainbow kit in my react app. I am having an issue that when I connect to metamask, it shows qr code and an option to install the metamask even I have already installed the metamask. ...
Zain Sahi's user avatar
  • 123
-1 votes
0 answers
18 views

How long does it take to develop a dex platform? [closed]

Our company recently developed a new chain using Cosmos SDK and now we're aiming to develop a dex platform that runs on the chain. Does anybody know what the best practices to do this and how long ...
Usman Jaggi's user avatar
-1 votes
1 answer
24 views

Eth::Client::ContractExecutionError - transaction underpriced

I am using the eth gem ruby library https://q9f.github.io/eth.rb/ to execute a function called from the ABI but it keeps getting the error transaction underpriced. I assume that it has something to do ...
javanoob2pro's user avatar
0 votes
0 answers
18 views

event args array is not available in the transaction receipt

I am trying to access the emitted events of a contract after calling a function. I wrote the following code. const simpleNft = await ethers.getContract("SimpleNFT"); const mintTx = await ...
Plycedes's user avatar
-2 votes
0 answers
8 views

Decentralized Identifiers (DIDs) and Verifiable Credentials (VCs) for Ownership Transfer

I've seen some references to using DIDs and VCs for tracking ownership of an asset, which is something I'm interested in implementing. For example, the W3C documentation on DIDs provides an example of ...
Jordan's user avatar
  • 4,024
-4 votes
0 answers
26 views

The best way to study a large codebase [closed]

I am a front-end developer working with a blockchain company. I am very interested in learning blockchain and I want to study the backend codebase which includes blockchain to study how everything ...
Rishabh Raghwendra's user avatar
0 votes
0 answers
9 views

how multiple (LP)pairs of a token works, for pricing?

I am working on a token to launch on BSC and we want this token to be traded in multiple pairs For Example : Token Name : GAME Token Pair 1 : GAME/USDT Token Pair 2 : GAME/WBNB Token Pair 3 : GAME/ETH ...
trigOz's user avatar
  • 1
-1 votes
1 answer
23 views

Why Binance Testnet transaction fails?

I don't know why this transaction fails: https://testnet.bscscan.com/tx/0xe464a4bb94268c97c0e5f795f6fb336d982c1570c426e8518266875515d42a76 It's called like this: const contract = new web3.eth.Contract(...
Jure's user avatar
  • 69
0 votes
1 answer
24 views

ERC20: insufficient allowance --> Approve function is not working for depositing ERC-20 tokens in a smart contact

I'm creating a smart contract to deposit and withdraw USDT token. But I'm getting an error while depositing saying that "ERC20: insufficient allowance". Below is the solidity function I have ...
manichand kondapaka's user avatar
0 votes
0 answers
8 views

Unable to fetch application channel config after updating consenter certificates incorrectly

As part of the certificate renewal procedure, I simultaneously updated the system channel consenter certificates (tls certs) in channel configuration for all three orderers. I understand that the ...
ASHISH N.C.'s user avatar
-2 votes
0 answers
19 views

I'm trying to deploy my smart contract on hardhat's local node which works fine but it returns the contract address as undefined

This is the deploy.js file(https://i.stack.imgur.com/sxsCR.png) This is the console(https://i.stack.imgur.com/y6uxW.png) I tried running it through chatGpt but it added the deployed() function and ...
Shubham Soni's user avatar
-3 votes
0 answers
20 views

Smart Contract for PancakeSwap with buy tax/sell tax

PancakeZap contract source code: https://github.com/pancakeswap/pancake-smart-contracts/blob/d8f55093a43a7e8913f7730cfff3589a46f5c014/projects/exchange-protocol/contracts/PancakeZapV1.sol How to add ...
JazzNeurotic's user avatar
1 vote
1 answer
14 views

Build Cross-Chain DAPPs between EVM and Cosmos non-EVM chains

I'm wondering is it possible to build an entire DAPP for example a DEX or NFT marketplace with Axelar that exists on an EVM chain like Avalanche and a Cosmos chain that is non-evm compatible? I am ...
Corey Williams's user avatar
-1 votes
0 answers
12 views

WAX blockchain user account

How to check if WAX address is valid? I tried to get the user's assets using atomicassets npm package, but even if I entered the wrong account, it still returned the data. How can I validate the user ...
Sargis Yeitsyan's user avatar
0 votes
1 answer
26 views

where can I find a list of events supported by contract event listeners in Ethers.js - Swap Event Listeners?

I am studying a code that uses ethers.js to listen to Ethereum blockchain events and triggers a series of tasks when a swap occurs in the blockchain. The part of the code that listens for the event is ...
Marcelo Urquiza's user avatar
-1 votes
0 answers
15 views

Pending Transactions on Polygon

Can someone please help why these transactions are pending https://www.oklink.com/polygon/address/0x34ee060eecf5f2c6b6afb5d7c7eb895a7626dd44 Already, changed the nonce and increased gas fees. Tried ...
Shan B's user avatar
  • 1
0 votes
0 answers
15 views

I am having problem with Web3provider in ethers.providers

TypeError: Cannot read properties of undefined (reading 'Web3Provider') at connectingWihContract (apiFeature.js:41:43) at async fetchData (ChatAppContext.js:30:24) const provider = new ethers....
Nioct Shorts's user avatar
-1 votes
1 answer
20 views

samrt-contract: call payable function through react frontend

I tried to call this function through the React app: function getData(address _userAddress, string [] memory _attribute) public payable returns ( string[] memory, Person[] memory){ Some logic . . . } ...
Abdullah's user avatar
-1 votes
0 answers
37 views

In Dogecoin, Bitcoin, Litecoin, etc. how are the values in key_tests.cpp generated?

I'm looking at the Dogecoin source code in key_tests.cpp At the top of the file, there are 4 Dogecoin addresses and 4 private keys. From what I can tell, 2 uncompressed private keys were generated, ...
david2278's user avatar
  • 420
0 votes
0 answers
12 views

blockdaemon SDK giving null in JSON

I am trying to integrate blockdaemon in my project to track live transactions. I am passing auth key and my local server link but when I log SDK to check whether it is installed properly It returns ...
Chetan Patil's user avatar
-2 votes
0 answers
32 views

Transfer ETH before making external contract call

I've developed a Solidity contract which is suposed to work as a fee taker for my web3 automation software. Every time a user sends a transaction this transaction will call my contract with the target ...
Oscar's user avatar
  • 37
-1 votes
0 answers
9 views

How to use getStatePartialCompositeKey method to get data from blockchain?

``async addNewPatients(ctx, patientName, SSN, age, gender, mobileNo, address){ const iterator = await ctx.stub.getStateByPartialCompositeKey('healthnet.patient', [SSN]); const patientBuffer = []; let ...
Ram's user avatar
  • 9
0 votes
0 answers
15 views

Are there any way to pay transaction cost from a hardware wallet when deploying contract using ethers.js?

I am working on developing Dapp and facing a challenge. ▶ Thing I want to achieve ◀ I'd like to create a new wallet instance, then when deploying a contract, I want to pay transaction costs from a ...
smy's user avatar
  • 1
0 votes
1 answer
34 views

ThirdWeb:- Failed to get upload token

I got this error while npx thirdweb@0.9.13 deploy and when i install npx thirdweb@latest create --contract then also it give my some error now please help me how I can solve this problem I tried ...
Yadvendra Shukla's user avatar
-1 votes
1 answer
27 views

How is the following Cryptographic Predictability happening?

This is the scenario: Server Key (always 40 chars) Player1 Key (usually 20 chars) (selected as the first player in the current game) Player2 Key (usually 20 chars) (selected as the second player in ...
Chris Roy's user avatar
  • 943
0 votes
1 answer
29 views

How can I return an array of structs using a Chainlink Direct Request job?

I'm trying to return an array of custom type (struct) MyStruct[] of ambiguous size to my Chainlink consumer contract, and am having trouble developing the appropriate job config (TOML) for it. I'm ...
Donald's user avatar
  • 131
-1 votes
0 answers
11 views

Error: Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.7.2)

// SPDX-License-Identifier: MIT pragma solidity ^0.8.0; contract SimpleStorage { uint256 favoriteNumber; struct People { uint256 favoriteNumber; string name; } ...
JATIN KUMAR's user avatar
0 votes
0 answers
26 views

I am deploying smart contract of 23 kb on Hedera Previewnet, But it gives error "HardhatError: HH110: Invalid JSON-RPC response received"

I am having an issue in deploying the smart contract with a size of 23.4 kb on Hedera Preview net using hardhat. Below is the error HardhatError: HH110: Invalid JSON-RPC response received: 502 Server ...
Sanju's user avatar
  • 1
-1 votes
0 answers
18 views

Fetch Data from the Excel sheet to the ethereum blockchain

I want to fetch data from the excel sheet to the solidity like have to create a contract that takes the roll number as the input from the user and check the roll number in the sheet if its there ...
Saifullah Omar's user avatar
-1 votes
0 answers
13 views

How to Import Custom Minted ERC1155 NFTs into Metamask Wallet from a Hardhat Localhost Node?

I've been working on deploying ERC1155 tokens using Hardhat and a local development node. I successfully connected my Metamask wallet to the Hardhat localhost node. However, I'm now faced with the ...
Tanjin Alam's user avatar
  • 1,746
1 vote
1 answer
27 views

How to compare two 'wei' values?

Here is the code snippet of my smart contract: provider = new ethers.BrowserProvider(window.ethereum); signer = await provider.getSigner(); let contract = new ethers.Contract(NFTMarketplaceAddress, ...
snsakib's user avatar
  • 1,074
-1 votes
0 answers
23 views

How can I verify the source code on the sepolia network?

i have this problem when i try to verify the contract with the sepolia network Running 'scripts/deploy.py::main'... Transaction sent: 0x3a8c060bda2655fb6ee2078aa6be229e2e36631c2136dbcfa83f23d36101d598 ...
Nachito's user avatar

1
2 3 4 5
135