Comments (2)
Closing as this isn't related to the repo, but I'lll answer anway.
The API you're calling has a JSON response like so:
[
24
]
So you need to access the 0
th position in the JSON list.
request.add("get","http://www.randomnumberapi.com/api/v1.0/random");
request.add("path","0");
request.addInt("times",1);
However, it looks like you're trying to get a random number... This is a terrible way to get a random number as you're relying on a centralized API. Please do not use this method, and instead use a method of true randomness like the Chainlink VRF
from nft-mix.
Thanks a lot for the help. I am aware of Chainlink VRF and was making API call just for testing purposes. The main issue is, while I am making a transaction call, either to createCollectible or requestAirDrop, the respective events show that the functions are called but the chainlink call is not refected when I search it in the Chainlink Explorer
https://rinkeby.explorer.chain.link/job-runs?search=6d1bfe27e7034b1d87b5270556b17277
BTW, I am using Etherscan to make the transaction calls
from nft-mix.
Related Issues (20)
- eth not found HOT 1
- Stuck on calling Createcollectible.py
- Stuck on Create_Collectible.py deployment HOT 9
- I'm try deploy on rinkeby testnets its give me error that ValueError(f"'{value}' is not a valid ETH address") from None HOT 2
- Openzeppelin _setTokenURI HOT 1
- ROCADERI
- Rinkeby Deprecated Oct.2022 HOT 4
- Lesson 6: ValueError: insufficient funds for gas * price + value when testing bad_actor try to use withdraw function HOT 2
- Switching To Sepolia Testnet HOT 1
- Cannot Run Scripts HOT 7
- ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) HOT 4
- No matter however I run, it shows The number of tokens you've deployed is: 0 HOT 3
- No matter however I run, it shows "The number of tokens you've deployed is: 0"
- invalid op code in create collectible HOT 5
- invalid opcode: opcode 0xfe not defined when funding on Polygon-main HOT 5
- Polygon-Main Gas Estimation Error on Mint HOT 2
- There is no main() in upload_to_pinata.py HOT 3
- len(advancedCollectible) -1 out of range HOT 6
- Stuck on TokenID 0 is ... HOT 2
- API request failed with: Invalid API Key HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nft-mix.