Skip to main content

Questions tagged [on-chain]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
150 views

How to get NFT total supply?

I would like to store the total supply of an NFT collection on-chain. However it seems this value is not in the collection metadata. How can I then obtain this value on-chain ?
qubitz's user avatar
  • 210
0 votes
0 answers
46 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
0 answers
8 views

Extension to extension request

We are developing an extension allowing users to make on-chain transaction.But they should connect their phantom to our extension. However, because Our product is an extension and other wallets are ...
kker's user avatar
  • 1
1 vote
1 answer
37 views

- Design Pattern (Discussion) Address Lookuptables to compress on chain storage of `PubKeys`

Reading up on ALT's, A certain usecase came to mind, where in a program if for some arbitary reason i want to store a list of pubkeys(32bytes) say in the 10,000 on chain, wdnt using ALT allow me to ...
Nabeel Naveed's user avatar
0 votes
0 answers
11 views

What rust std::collection datastructure are not supported on Solana

I remember there used to be this limitation that std::collection::Hashmap data structure was not supported and the solution was to use a pda, i just wanted to find information on all such possible ...
Nabeel Naveed's user avatar
2 votes
1 answer
184 views

Source of slot_hash and current timestamp on chain

I know the Clock and Slothashes sysvars return a current timestamp and history of slot hashes, but my question is where this data comes from? Is this the timestamp that correlates to the latest ...
kwelliott's user avatar
  • 514
0 votes
2 answers
314 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
89 views

How to read the on-chain program

How to read on-chain program and also how to fetch idl for it. Could you please provide the steps with an example?
NaveeN .G's user avatar
4 votes
1 answer
128 views

How to write on-chain program leveraging the "Address Lookup Table" feature

I would like to write an on-chain program that leverages the "Address Lookup Table" feature (https://github.com/solana-labs/solana/issues/26391). I would like the on-chain program to de-...
Yifan Jiang's user avatar
4 votes
2 answers
688 views

GET all collections of NFT, API, Magic eden

Good morning. I'm looking to make a small coinmarketcap, but from solana nfts, like solsniper or matricnft. I have tried with the magic eden api but it does not give many options, get /collections can ...
Aitor_nft's user avatar
8 votes
2 answers
745 views

How do I create an NFT using Anchor?

What is the simplest way to create an NFT using Anchor, without using the candy machine. The goal is to be able to mint a token and corresponding metadata. Ideally with a single instruction.
zfedoran's user avatar
  • 761
11 votes
3 answers
829 views

What are the frameworks and development environments for Solana?

I’m familiar with Ethereum and EVM-based smart contracts. I wanted to know if similar development environments and frameworks like Truffle and Hardhat for Ethereum are available for Solana. Also, from ...
nekofar's user avatar
  • 213