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
1answer
17 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 ...
0
votes
0answers
14 views

How to fetch data like account address using normal javascript [duplicate]

I want to ask how we can fetch data from the metamask the data which i need is its account address i am creating a website for nft using django so i cant use node js here
0
votes
0answers
18 views

How to properly track nonce using database?

I have a model that stores eth wallet data and its next nonce. User = get_user_model() class EthWallet(TimeStampedModel): user = models.OneToOneField(User, on_delete=models.DO_NOTHING, primary_key=...
0
votes
0answers
25 views

how to install web.py on cpanel

Im using web3 in one of my django projects. everything works just fine on localserver but I cant install web3.py. on cpanels terminal. it gives me these errors: ERROR: Command errored out with exit ...
0
votes
0answers
53 views

unable to install Django-Web3-Auth

unable to install django-web3-auth anyone know any alternate to connect meta mask with django Requirement already satisfied: eth-utils<2,>=1.0.2 in c:\users\mohsin\appdata\local\programs\python\...
0
votes
1answer
1k 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 ...
0
votes
1answer
428 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 = ...
0
votes
1answer
3k 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 ...
2
votes
0answers
54 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 ...
0
votes
0answers
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, ...
0
votes
1answer
1k 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.
4
votes
1answer
3k 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.
0
votes
1answer
132 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 ...
1
vote
1answer
1k 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....
0
votes
0answers
419 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 ...
5
votes
1answer
5k 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 ...
2
votes
0answers
721 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 ...
3
votes
1answer
3k 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 ...
2
votes
2answers
651 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 ...
2
votes
1answer
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"; ...