Skip to main content

Questions tagged [oracles]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
11 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,185
0 votes
0 answers
35 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
  • 41
0 votes
1 answer
49 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
211 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
249 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,425
2 votes
1 answer
635 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
192 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,456
0 votes
2 answers
270 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
  • 272
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
  • 91
2 votes
1 answer
142 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
319 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
  • 91
1 vote
0 answers
45 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
91 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