Skip to main content

Timeline for Consecutive seed pdas

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Sep 12, 2022 at 21:17 comment added user3688985 How could I get the urls otherwise? I need to have the seed of the pdas and I think that an id would be a good way because with an id I will get all the pdas.
Sep 12, 2022 at 19:55 comment added Ohad Dahan Why this requires the seeds to depend on the counter?
Sep 12, 2022 at 1:26 comment added user3688985 I want to store picture urls in various pdas (1 on each) to fetch them in the front end and show the image. So Im trying to set the seed of those pdas with an id that is a on-chain counter. The idea is to fetch the counter first and get the total amount if pictures, and then loop to get the pictures url and show the images.
Sep 8, 2022 at 16:00 comment added Ohad Dahan What part of the global counter is used for the user specific counter? Also what you're trying to do? Maybe can be done in other ways.
Sep 7, 2022 at 20:50 comment added user3688985 The global pda is already created, with a counter on it. Users dont just update, they create a new pda. This pda has the counter as seeds. So if user1 call the instruction, a new pda with seed "1" will be created and counter will add 1, then user2 calls it and creates pda with seed "2".. and as users creates pdas, I want the seeds to be 3,4,5.. etc. The problem is when 2 users wants to create the pda at the same time. They will both fetch the counter on the client and get the same number. Then one user will fail the transaction because the other one has already created the pda with that seed.
Sep 7, 2022 at 15:51 history answered Ohad Dahan CC BY-SA 4.0