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

Mint with multi-admin Policy ID #7

Closed
hussamBim opened this issue Jul 26, 2022 · 4 comments
Closed

Mint with multi-admin Policy ID #7

hussamBim opened this issue Jul 26, 2022 · 4 comments

Comments

@hussamBim
Copy link

hussamBim commented Jul 26, 2022

Hi, I have policy id that can mint from multiple admins. can you give a way around we can sign mint NFT transaction from admin and user account simultaneously from react side.

@dynamicstrategies
Copy link
Owner

Sounds like you need to sign the transaction by multiple users.
Try looking at this part of the code which requests the user to sign the transaction in App.js

        let txVkeyWitnesses = await this.API.signTx(Buffer.from(tx.to_bytes(), "utf8").toString("hex"), true);
        txVkeyWitnesses = TransactionWitnessSet.from_bytes(Buffer.from(txVkeyWitnesses, "hex"));

        transactionWitnessSet.set_vkeys(txVkeyWitnesses.vkeys());

        const signedTx = Transaction.new(
            tx.body(),
            transactionWitnessSet
        );

@hussamBim
Copy link
Author

hussamBim commented Jul 27, 2022

Yes, exactly i need that but owner is created from cardano-cli i have skey and user will sign it using its nami wallet. And can you please provide some reference how i can create mint NFT body as well using your repo. I have done all in backend using cardanocli-js. I have policy id generated from cli.

@dynamicstrategies
Copy link
Owner

Take a look at an example here for minting NFTs with the serialization lib:

https://github.com/Emurgo/cardano-serialization-lib/blob/master/doc/getting-started/minting-nfts.md

@hussamBim
Copy link
Author

Take a look at an example here for minting NFTs with the serialization lib:

https://github.com/Emurgo/cardano-serialization-lib/blob/master/doc/getting-started/minting-nfts.md

HI, thanks for your help. I have one issue left how, I can use policy id and skey, vkey made from cli in cardano-serialization-lib-node. I

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