Sending a Request from Remix

In Remix, under “DEPLOY & RUN TRANSACTIONS”, click the left arrow next to your deployed contract:

Click the left arrow

To the right of the sendRequest function, click the down arrow:

Click the down arrow

Here, you will find two parameter inputs, subscriptionId and args. Paste in your Subscription ID (#1) from your Chainlink subscription . Then put in `[1]` for the args (#2). This is the character Id we're going to fetch! Then click the “transact” orange button (#3). MetaMask will pop-up asking to confirm the transactions so press the "Confirm" button (#4)

Steps to make the off-chain data call

Now after the transaction is confirmed, click the character call button and you shall see Luke Skywalker! Try it out will different args and it will return different Star Wars characters!

Luke, may the force be with you!

Last updated