auction-house | Zora Auction House is an open and permissionless system | Web Site library
kandi X-RAY | auction-house Summary
kandi X-RAY | auction-house Summary
The Zora Auction House is an open and permissionless system that allows any creator, community, platform or DAO to create and run their own curated auction houses. These auction houses run reserve timed auctions for NFTs, with special emphasis given to the role of curators. If an owner of an NFT chooses to list with a curator, that curator can charge a curator fee and has to approve any auction before it commences with that curators auction house. Anyone is able to run an NFT auction on the protocol for free by simply not specifying a curator. The Zora ethos is to create public goods that are either owned by the community or by no one. As such, we have deployed this without admin functionality, and is therefore entirely permissionless and unstoppable.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of auction-house
auction-house Key Features
auction-house Examples and Code Snippets
Community Discussions
Trending Discussions on auction-house
QUESTION
When using metaplex
auction-house
contract, some users are unable to complete a sell
command.
Confirmed that if the same NFT
is sent to a different wallet, that wallet can sell
just fine.
The issue seems to be bad ATA
.
Initially , the ATA
account that returned via https://github.com/metaplex-foundation/metaplex/blob/b7760611d0838307757b831505eaaffee25b1b2a/js/packages/cli/src/auction-house-cli.ts#L260 didn't have owner
or token
inside.
When sent to another wallet, was able to complete just fine. https://explorer.solana.com/tx/GUybhU53qY56bu4j2raQyp7uecGLgaFge6GBvRNtX1u8gqDzocKk8MDg52upZV985UPW8FAregpwTv7JGyWdNwf
After manually setting up the ATA
, still didn't help.
https://explorer.solana.com/address/Cu6Dru1j6PZa3f9K2acuqsHcaVDRxniFVqPPk7WX7RaC
Seems like due toe the token being 0
.
Tried finding the correct ATA
by using getTokenLargestAccounts
but then I'm getting 0x12c
which says PublicKeyMismatch
.
Would love some help in finding a stable way to complete this, this is happening to many users sporadically.
...ANSWER
Answered 2021-Dec-13 at 11:37The code that you linked, getATAForMint
, does not actually create the ATA, which is why owner
and token
weren't populated.
The succeeding transaction that you linked correctly creates the ATA, which is why it succeeds.
So one way to resolve this is:
- Before doing a transfer to your user, check that an account exists at the address, perhaps by calling
getAccountInfo
on the ATA: https://docs.solana.com/developing/clients/jsonrpc-api#getaccountinfo - checking that the
owner
field is the token program, given byTokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA
. More info about ownership at: https://docs.solana.com/developing/programming-model/accounts#ownership-and-assignment-to-programs - if the account exists, great, nothing to do. If it doesn't exist, then you have to add an instruction to create the associated token account, ie. through some call like this: https://github.com/solana-labs/solana-program-library/blob/8eb2c3ce60bfe943e277eb172ba8e9ce9b6bdae6/token/js/client/token.js#L494
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install auction-house
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page