Giter Club home page Giter Club logo

Comments (2)

PatrickAlphaC avatar PatrickAlphaC commented on June 13, 2024

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 0th 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.

BhaskarDutta2209 avatar BhaskarDutta2209 commented on June 13, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.