Skip to main content

Questions tagged [oracles]

The tag has no usage guidance.

1 vote
2 answers
36 views

How much does it cost to generate a random number with Orao and Switchboard?

I know Orao and Switchboard are probably the most popular VRF solutions on Solana. I'm wondering how much does it cost (in USD or tokens) to generate a random number with each of the 2 solutions? In ...
Yan's user avatar
  • 387
0 votes
0 answers
18 views

What is a Price Feed?

I have tried to research about this and have gotten a term which I understand is associated (Oracles) but I so far I have not gotten a plain definition. I understand their use I.E they are needed for ...
R. Vargas's user avatar
2 votes
1 answer
32 views

Pyth V2 migration for projects with older dependencies (pull oracles)

At the end of June 2024, Pyth push oracles will be discontinued, so all programs that currently use them must migrate to pull oracles. The drop-in replacement is to consume Price Feed Accounts. To use ...
Whiteseal's user avatar
  • 3,234
0 votes
0 answers
49 views

How to allow withdraw of spl-tokens based on price growth

I am a beginner and I am learning about Solana development with anchor. I am trying to create a token vesting program that allows a user withdraw tokens based on price growth. For example, a user will ...
Anas's user avatar
  • 51
0 votes
1 answer
60 views

InvalidAccountData Passing a price id to rust pyth-sdk program from typescript client - Pyth

I'm trying to use pyth SDK make a program to fetch a price, then using a typescript client to pass the id of the price feed I want to the program. My rust lib.rs is essentially this: pub fn ...
NDXP's user avatar
  • 1
1 vote
2 answers
254 views

How to get price for a token pair at a specific time in an onchain program?

I need to get a price for ETH/USD and BTC/USD for the specified time. For example yesterday at 9:00 am. How can I do it in the on-chain Solana program? What oracle can be used? I have checked the Pyth ...
Jerzy Lasyk's user avatar
5 votes
1 answer
255 views

Is there a program that offers an instruction to assert on the oracle price of an asset?

I want to create a transaction that will succeed only if the price of a certain asset is greater than or equal to some value. Essentially, I want to add an instruction to the transaction that will ...
steveluscher's user avatar
  • 2,465
2 votes
1 answer
735 views

: AccountOwnedByWrongProgram. Error Number: 3007

I'm trying to pass a switchboard aggregator as an account to my anchor program. However I encounter the following error: Error: AnchorError caused by account: aggregator. Error Code: ...
rumika howdie's user avatar
1 vote
1 answer
200 views

How to handle multiple tokens + SOL in a payments program?

Context Depending on the item price in USD, users should be able to pay for items with different tokens/currencies (this is made possible with Switchboard Oracles). The payments then go towards a ...
Burger Bob's user avatar
  • 1,466
0 votes
2 answers
322 views

Is it possible make an API POST inside an on-chain program?

Once a transaction has been completed, the application I'm building needs to send a POST to my API.I believe that posting on chain is the most secure approach to go about it (instead of posting from ...
cris.sol's user avatar
  • 282
1 vote
1 answer
28 views

Orao Oracle: fail to import JS SDK

When loading the node module @orao-network/solana-vrf to interact with the Orao oracle, I receive this error: Uncaught ReferenceError: Buffer is not defined at ./node_modules/@orao-network/solana-vrf/...
dawka's user avatar
  • 101
3 votes
1 answer
151 views

Resources for building/launching a Solana Oracle

I'm looking for any demos, tutorials, or open-source code for building and connecting to a Solana-based Oracle. Would appreciate anyone pointing me in the right direction!
firstwonk's user avatar
5 votes
2 answers
334 views

Best oracle for random numbers?

What is the best oracle for random numbers as chainlink VRF is not yet available on Solana?
dawka's user avatar
  • 101
1 vote
0 answers
52 views

Building a request based twitter oracle on the Solana blockchain [closed]

I am trying to understand how in principle someone might build an Oracle for Solana that works on a request basis. A simple example would be that someone passes the id of a tweet to a program, that ...
daoplays's user avatar
  • 587
4 votes
1 answer
98 views

How do oracles work under the hood? [closed]

I understand "oracles" in blockchain lingo refer to pieces of software that connect a smart contract chain like Solana to some "real world" data. I am trying to wrap my head around ...
AllBlooming's user avatar
  • 2,269