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
108 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 ...
user avatar
  • 1
0 votes
1 answer
120 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 ...
user avatar
0 votes
0 answers
54 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=...
user avatar
  • 71
0 votes
0 answers
73 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 ...
user avatar
  • 101
0 votes
0 answers
147 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\...
user avatar
  • 3
1 vote
1 answer
4k 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 ...
user avatar
  • 45
0 votes
1 answer
1k 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 = ...
user avatar
  • 1
0 votes
1 answer
5k 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 ...
user avatar
2 votes
0 answers
68 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 ...
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, ...
user avatar
0 votes
1 answer
2k 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.
user avatar
6 votes
1 answer
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.
user avatar
  • 172
0 votes
1 answer
142 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 ...
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....
user avatar
  • 172
0 votes
0 answers
455 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 ...
user avatar
  • 172
5 votes
1 answer
6k 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 ...
user avatar
  • 172
2 votes
1 answer
779 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 ...
user avatar
  • 883
3 votes
1 answer
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 ...
user avatar
2 votes
2 answers
677 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 ...
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"; ...
user avatar