Using Chainlink in Clarity smart contracts

Hi, I started learning Clarity recently to write smart contracts for a dapp I’m building on the stacks blockchain and I need to generate random numbers in my contract.

It was announced last September that Blockstack and Chainlink were working together to integrate Chainlink’s API into the Blockstack ecosystem, but I haven’t seen any news about this since. I wanted to make use of Chainlink’s VRF API to generate random numbers in my smart contract but I haven’t found any documentation on how to do that.

Does anybody know how to do this? Or if there’s an alternative?

1 Like

Maybe you can generate a random number client side and submit it to the smart contract and use that. Another option is to use the Bitcoin nonce, or a variation, as a random number.

Maybe these guys know and can help Cleveroad