New answers tagged

0 votes
Accepted

Is there a way to find the price of an asset from the JSON object of a transaction received from a Blockfrost webhook?

The price of the asset is stored within the datum of the order itself by the jpg.store contract. Let's take the transaction 8698d938588ca9a93663cb1a9e4478390f374873970ced6d46ae9c4e6ac88723 for example....
0 votes
Accepted

How can I build a transaction to register a stake pool using Cardano Serialization Lib?

This is the code to build a transaction to register a Stake Pool using cardano-serialization-lib: export const submitRegistrationTransaction = async ( mnemonic, poolCertificate ) => { //...
0 votes
Accepted

How to convert UTxOs from Graphql to Cardano Serialization lib format?

This is the function I use to convert the UTxOs from graphql to TransactionUnspentOutputs: async function getUTxOs(address: string) { const url = `https://d.graphql-api.${process.env.ENVIRONMENT}....
0 votes
Accepted

How can I build a transaction to send different assets (not just ada) using Cardano Serialization Lib?

This is how you build a multi-token transaction using cardano-serialization-lib: export async function buildMultiAssetTx( fromAddress: string, toAddress: string, policy: string, assetName: ...

Top 50 recent answers are included