Sending a Request from Remix
Last updated
Last updated
In Remix, under “DEPLOY & RUN TRANSACTIONS”, click the left arrow next to your deployed contract:
To the right of the sendRequest
function, 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)
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!