Skip to main content

getItemMeta

Function

Get the item meta data by itemId.

Example

import { getItemMeta } from 'arseeding-js'
const run = async () => {
const arseedingUrl = 'https://arseed.web3infra.dev'
const itemId = '<itemId>'
const itemMeta = await getItemMeta(arseedingUrl, itemId)
console.log(itemMeta)
}

Parameters

FieldDescription
arseedingUrlarseedUrl is the address of the Arseeding backend service that needs to be configured. Here we use the Arseed service provided by permadao at https://arseed.web3infra.dev.
itemIdUnique identification.

Return Data

{
signatureType: 3,
signature: 'AicM-UAHqrZTAtngxLPpe_F8rHiivKYkFCYI784P4Dsg0e2WCfP67vtRLlvzX7bniH6GtH1IgBdhaoE3qdo8DBs',
owner: 'BAztruEItSG5MwXkcTsOGURHq_3YU52AgPK1uoZGdjsMfqlVhPBASHs6A7AMeHEU3z6bBO-p3mTjCDKp7nl2cPM',
target: '',
anchor: '',
tags: [
{ name: 'Content-Type', value: 'text/plain' },
{ name: 'aa', value: 'aaa' }
],
data: '',
id: 'ZpX2EUJjvXdQYtDpSEopKeqF8mFJrwjEoBTDHg16QiI',
tagsBy: 'BBhDb250ZW50LVR5cGUUdGV4dC9wbGFpbgRhYQZhYWEA'
}