Please view the third-party content disclaimer here.
Pull Oracle integration
The Pull Oracle fetches proof data from Supra’s gRPC server and passes it to your smart contract via a JavaScript client.Prerequisites
- Node.js installed.
- A deployed smart contract that accepts Supra proof data.
Install dependencies
Clone the Supra repository or download the source, then run:Configure main.js
Set the following parameters before running the client.
gRPC server address:
| Environment | Address |
|---|---|
| Mainnet | mainnet-dora-2.supra.com:443 |
| Testnet | testnet-dora-2.supra.com:443 |
| Environment | URL |
|---|---|
| Mainnet | https://rpc-mainnet-dora-2.supra.com |
| Testnet | https://rpc-testnet-dora-2.supra.com |