Questions tagged [django]

Django is an open source server-side web application framework, written in Python. It is designed to reduce the effort required to create complex data-driven websites and web applications, with a special focus on less code, no-redundancy and being more explicit than implicit.

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

In the post merge 2023 developer ecosystem, what's the best practice for connecting to a web3 dApp that doesn't use client-server JS (e.g. node)?

I have a very simple application that uses Django as the underlaying web framework, and our app got a bit stranded by the move from Walletconnect's services in the migration from v1 to v2 that was ...
jdero's user avatar
  • 101
0 votes
0 answers
30 views

AttributeError: 'Eth' object has no attribute 'abi'

I am building a web application using django to register phone battery details and it interacts with a smart contract. I am trying to use the decode_log method but I keep getting this error: ...
Koyemushi's user avatar
1 vote
1 answer
423 views

Replacement transaction underpriced

I am building a Django service with Celery that sends multiple transactions to a contract and I am finding that the error {'code': -32000, 'message': 'replacement transaction underpriced'} from geth ...
tinom9's user avatar
  • 256
0 votes
1 answer
188 views

What is the best way to interact with a smart contract from Django?

I developed a smart contract (ERC721) for minting NFTs. I want to mint an NFT on a Django server when some specific event occurs. I do know how to mint them using Brownie framework but I don't know ...
ZigaK's user avatar
  • 1
0 votes
1 answer
212 views

msg.sender not work parallel with metamask

I am working with django project that is empowered with blockchain. I want to create an authentication system using blockchain technology. I write a smart contract and deploy it in ganache. In here I ...
Dilshan Madhuranga's user avatar
4 votes
1 answer
7k views

How do you verify a Metamask signature on the server side?

I want my server to be able to authenticate a user based on whether or not they have the private key to their wallet. I am using web3.js in my front end, and web3.py in my backend. The scenario will ...
dx1's user avatar
  • 105
1 vote
1 answer
3k views

when sending a str, it must be a hex string. Got: "'MY _PUBLIC _KEY'"

web3s.py from web3 import Web3 import json url = 'https://kovan.infura.io/v3/NODE' web3 = Web3(Web3.HTTPProvider(url)) abi = json.loads('[{"ABI"}]') Raw_ADDRESS = MY_ADDRESS address = ...
MGM's user avatar
  • 11
0 votes
1 answer
6k views

Metamask stopped innjecting Web3. How to inject Web3.js properly?

I've been running a Django application which allows users to sign up/log in using Metamask. Everything worked great until recent breaking changes: In early 2021, MetaMask will no longer inject the ...
jackygab's user avatar
2 votes
0 answers
90 views

Sending tokens out on coinpayments success payment using Web3py

I'm writing Django app and want to send out tokens using Web3 once Coinpayments sends me callback about successfull payment. The problem is that Coinpayments sends multiple callbacks at once and just ...
vkozlovsk's user avatar
0 votes
0 answers
33 views

compile_files gives errror for given path of the contract [duplicate]

pragma solidity ^0.5.1; import "./Owned.sol"; contract Greeter is Owned { bytes32 public greeting; event GreetingChange ( address indexed changer, bytes32 indexed _from, ...
Chidananda Nayak's user avatar
1 vote
1 answer
3k views

How to make batch transaction in ethereum using web3.py

I want to make batch transaction in ethereum using the web3.py. I found web3.createBatch() in Web3.js, but i can not find it on web3.py.
Muhassin Babu's user avatar
6 votes
2 answers
4k views

How to get all transaction lists of local ethereum wallet using web3.py?

I have developed django project that have local ethereum wallet using web3.py. I want to get transaction history of my wallet. But I have no way. Please help me.
Coder HHC's user avatar
  • 172
0 votes
1 answer
152 views

How to send transaction using ethereum contract?

I made ethereum contract according to sample code. And then generated ethereum wallet. The abstract contract is as follow. pragma solidity ^0.4.18; /** * @title ERC20Basic * @dev Simpler version ...
Coder HHC's user avatar
  • 172
1 vote
1 answer
2k views

How to use sendRawTransaction of web3.py?

I read the web3.eth.API carefully and I typed the code in my project. signed_txn = self.web3.eth.account.signTransaction( { 'nonce': self.web3.eth.getTransactionCount(Web3....
Coder HHC's user avatar
  • 172
0 votes
0 answers
522 views

pywallet: Which is the private key of child wallet?

Using pywallet, I have developed ethereum wallet under following code. seed = wallet.generate_mnemonic() wallet_info = wallet.create_wallet(network=network, seed=seed, children=0) In this case ...
Coder HHC's user avatar
  • 172
5 votes
1 answer
7k views

How to make Ethereum tx using web3.py?

I am new to Ethereum. Using pywallet, In my project, I had make ethereum wallet in local. Infura API is used as a provider for me. https://mainnet.infura.io/MYTOKEN So I get balance of address ...
Coder HHC's user avatar
  • 172
2 votes
1 answer
874 views

What is the best practice of a Dapp development mixed with Python/Django?

I've written and tested the Smart Contracts in Truffle, and now want to develop a front-end and a small back-end for my Dapp. So far, I preferred MVP frameworks, particularly Django. Therefore, what ...
Ruham's user avatar
  • 953
3 votes
1 answer
4k views

Can I integrate smart contracts in Django application [closed]

I'm new to Blockchain and being from a Microsoft technology stack, a little biased to develop my smart contracts using Solidity. I am using truffle and NodeJS ecosystem. Now I've a Django application ...
Paritosh Tripathi's user avatar
2 votes
2 answers
698 views

Using same port for web-hosting and geth node

I'm hosting a Django website on an Apache virtual machine and wanted to connect it Ethereum. Currently, the page I'm working on is hosted at 146.169.45.149:9002 Since I wanted to run a node at that ...
punddalinni's user avatar
2 votes
1 answer
2k views

Integrating web3 and Django

I'm trying to integrate web3 into a website which uses Django. This snippet of code is not working <script type="text/javascript"> document.getElementById("Mining").innerText = "Test"; ...
punddalinni's user avatar