src/utils/skynet-ops.js
// Adds a new entry to content record DAC.
Adds a new entry to content record DAC.
Adds a new entry to content record DAC .
async function recordNew(skylink) {
    try {
        console.debug(`Recording new content:\n\tskylink=${JSON.stringify(skylink)}`);
        return await contentRecord.recordNewContent({
            skylink: skylink,
            metadata: {
                content: { link: "https://siasky.net/" + skylink},
                description: "new proposal"
            }
        });
    } catch (e) {
        console.error(`Error recording new content: ${e.message}`);
    }
}
async function recordNew ( skylink ) { try { console . debug ( ` \n \t ${ JSON . stringify ( skylink ) } ` ) ; return await contentRecord . recordNewContent ( { skylink : skylink , metadata : { content : { link : "https://siasky.net/" + skylink } , description : "new proposal" } } ) ; } catch ( e ) { console . error ( ` ${ e . message } ` ) ; } }
Adds a new entry to content record DAC.
Adds a new entry to content record DAC .