secretkeylabs / sats-connect

Sats connect is a simple javascript library that connects apps to Bitcoin wallets
https://www.npmjs.com/package/sats-connect
95 stars 36 forks source link

Ability to add collection name to ord_createInscription when inscribing from files #153

Closed denizhankara closed 1 month ago

denizhankara commented 1 month ago

Description

Hi,

I am not sure if this is planned or implemented, however, it would be great if we are able to set collection names when using createInscription using files. Currently, the inscriptions created from files look like below (empty collection name)

image

I use the method as per described: await createInscription({ payload: { network: { type: network }, contentType: 'image/webp', content, payloadType: 'BASE_64', appFeeAddress, appFee: appFee ? parseInt(appFee, 10) : undefined, }, onFinish: (response) => { setTxnId(response.txId); alert(Transaction ID: ${response.txId}); }, onCancel: () => alert('Canceled'), }); } catch (error) { console.error('Error creating inscription:', error); } };

Solution

No response

teebszet commented 1 month ago

hi @denizhankara,

ordinal inscription collections can be defined by either:

for the second option, you could feasibly inscribe your collection on chain first, and then submit the entire collection to be indexed on the marketplaces afterwards.

for the first option, while we don't support creating parent-child inscriptions in sats-connect yet, it could be included in the future if there is a demand for it.

hope that helps!