Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NFT order verification support #19

Open
sakdeniz opened this issue Apr 1, 2022 · 1 comment
Open

NFT order verification support #19

sakdeniz opened this issue Apr 1, 2022 · 1 comment

Comments

@sakdeniz
Copy link
Contributor

sakdeniz commented Apr 1, 2022

It would be good to make the necessary update so that 3rd party applications can verify the validity of nft buy/sell/mint orders.

@aguycalled
Copy link
Member

added in [email protected]

VerifyOrder(order)

Verifies the correctness of an order.

Example:

try {
    // Create buy order to buy an NFT mint in exchange of 10 xNAV payment and verify its correctness
    let fValid = await wallet.VerifyOrder(await wallet.CreateSellNftOrder("adb78af655528f5323e1c4c241a3c4576634449a98162697fc74bd2041e3d878", 4, "xNUBDkjEKRRxXfN3nAbeBZLWbePjswoKi9PHboXfJzbqmg6heMbxJhhovMmebqN96AaXyFYsZFfGXaGVptFnPzyQjGE8bbo83kEZG5jUXbKoaJPC4ztTg1zw3dUyavXNVVUoeuDB3Yu", 10*1e8))
} catch(e) {
    console.log(`error validating order: ${e}`);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants