Questions tagged [erdpy]

Elrond erdpy consists of Command Line Tools and Python SDK for interacting with the Elrond Blockchain (in general) and with its Smart Contracts (in particular).

erdpy is an open source project created by Elrond Network that consists of Command Line Tools and Python SDK for interacting with the Elrond Blockchain (in general) and with its Smart Contracts (in particular).

Resources

16 questions
6
votes
1 answer

How to format EGLD value send to SC/Account?

I'm trying to send an EGLD value (e.g. 1.5 EGLD) to an account/smart contract but in some cases only BigUInt type seems to be allowed. How does this value work and how should I format it correctly?
Brother Jder
  • 415
  • 2
  • 9
5
votes
1 answer

Erdpy: Token issuance transaction fails with code: internal_issue

I try to make an ESDT token issuance transaction using the following Python code from erdpy.accounts import Account, Address from erdpy.proxy import ElrondProxy from erdpy.transactions import BunchOfTransactions from erdpy.transactions import…
Mikko Ohtamaa
  • 82,057
  • 50
  • 264
  • 435
2
votes
1 answer

Maiar DEX: erdpy query to a smart contract response is empty

I am trying to use erdpy to find the address of the pair EGLD-MEX on the testnet Maiar Exchange. I am using this call: erdpy --verbose contract query erd1qqqqqqqqqqqqqpgqum3tp4paqxt3snyfj3a5qj37tr9umv970n4s0kv06c --proxy…
2
votes
1 answer

Mandos: smart contract invalid when deploying a smart contract

I created a smart contract and I want to test it using the mandos framework. When I run the erdpy contract test, it fails with the following command output: Output: Scenario: contract-deploy.scen.json ... FAIL: result code mismatch. Tx 1. Want:…
Moebius
  • 6,242
  • 7
  • 42
  • 54
1
vote
2 answers

invalid token index when issuing token

After deploy a NFT smart contract on Elrond Blockchain, I'm trying to issueToken using snippets: erdpy --verbose contract call ${ADDRESS} --recall-nonce --pem=${ALICE} --gas-limit=${GAS_LIMIT} \ --function="issueToken" \ --value…
1
vote
1 answer

Triggering a function when an Elrond's transactions has status "success"

I don't find a way to trigger a function automatically when an Elrond's transactions has status "success". I wait some amount of time until the transaction ends (or I query the contract until the status is "success"), but I want to run some code in…
Sergi-O
  • 51
  • 6
1
vote
1 answer

How can I verify a signed message(not transaction) from a dApp (elrond)?

I am trying to create backend authorization for the maiar wallet user on the backend. I am creating server-side authentication using python, but am unable to figure out to verify signed messages on the server. I am looking for something similar to…
1
vote
3 answers

How do I generate the content from the `wasm` folder?

I'm trying to build from scratch a smart contract. I'm starting from cargo new my-contract. I wired the Elrond dependencies and now cargo run does not complain. Now when I run erdpy contract build I get FileNotFoundError: [Errno 2] No such file or…
Bogdan Oloeriu
  • 183
  • 2
  • 11
1
vote
1 answer

FAIL: address in "setState" "newAddresses" field should have SC format: address:the_crowdfunding_contract

I'm trying to run the below mandos test, but when running erdpy contract test, the test fails and returns the following error: FAIL: address in "setState" "newAddresses" field should have SC format: address:the_crowdfunding_contract. The test code…
mccuna
  • 471
  • 7
  • 11
1
vote
1 answer

No such file or directory: '/elrondsdk/vmtools/mandos-test'

I'm trying to run the tests for the contract from this tutorial, https://docs.elrond.com/developers/tutorials/your-first-dapp/, but I'm stumbling upon the below error when running erdpy contract test INFO:projects.core:run_tests.project:…
mccuna
  • 471
  • 7
  • 11
1
vote
1 answer

Can’t build smart contract - error compiling elrond-wasm with erdpy build contract

When I try to build the ping-pong smart contract from here using: erdpy build contract I don't get the following expected output: INFO:projects.core:WASM file generated: output/ping-pong.wasm because of the following errors that appear in the…
1
vote
4 answers

Cannot install erdpy on macOS - failed building wheel for pynacl

I'm trying to install erdpy on a macOS by following the official guide, I successfully managed to download erdpy-up and when I run it, I receive the following error: File…
Mircea
  • 187
  • 6
1
vote
1 answer

Could not install erdpy - no module named 'ledgercomm'

When I try to install erdpy, it fails with the following message: ModuleNotFoundError: No module named 'ledgercomm' CRITICAL:installer:Could not install erdpy. I follow the steps from here. Running: $ wget -O erdpy-up.py…
ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
0
votes
1 answer

transaction generation failed: invalid chain ID (ERDPY)

I'm trying to send a bulk transaction on the elrond devnet but i still have an error : I'm following this doc -> Click here to see it The script is working but he give me a log talking about an invalid chain id ->…
0
votes
1 answer

Measure time of execution of an Elrond's transacion

I'm sending transactions using Python 3 and erdpy. When the transaction ends with status "success", I have in the transaction's data a timestamp that I think it is the time the transactions entered the blockchain. But, is there a way to know another…
Sergi-O
  • 51
  • 6
1
2