0

I watched a tutorial video here. In the following example, we use req.addInt("times", 100);

Where are the adapter references specified (in this case, "times")? On market.link, I'm unable to see any reference to this identifier. How does one usually find these adapter references, such as "times"?

function requestPrice()
  public
{
  Chainlink.Request memory req = buildChainlinkRequest(jobId, this, this.fulfill.selector);

  req.addInt("times", 100);

  sendChainlinkRequest(req, LINK * 1);
}

2 Answers 2

1

Following the written tutorial, in the Core Adapters section, take a look at step 3: multiply.

You will se that the core adapter multiply requires the parameter "times", specified in the documentation, which is the number of times it will be multiplied.

0

Version 1 Core Adapters have been removed. See documentation for Version 2 adapters here. And here's the link for the Version 2 multiply.

1
  • While this link may answer the question, it is better to include the essential parts of the answer here and provide the link for reference. Link-only answers can become invalid if the linked page changes. - From Review Mar 29, 2022 at 2:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.