🌊
Urchin Web3 CMS
  • 🌊What is Urchin?
  • 🛠️How it works
  • 🏎️Getting started
  • 🧱API Reference
    • Core
      • urchin()
      • .preflight()
      • .process()
    • Template
      • .template.create()
      • .template.update()
      • .template.get()
      • .template.getAll()
    • Taxonomy
      • .taxonomy.create()
      • .taxonomy.update()
      • .taxonomy.get()
      • .taxonomy.getAll()
    • Asset
      • .asset.create()
      • .asset.update()
      • .asset.get()
      • .asset.getAll()
    • Entry
      • .entry.create()
      • .entry.update()
      • .entry.get()
      • .entry.getAll()
  • 🤔FAQs
Powered by GitBook
On this page
  • Function Example
  • Response Example
  1. API Reference
  2. Core

.process()

Commit all items in queues to the blockchain in one batched transaction

Function Example

/// Create instance
const connection = urchin(...config); 

/// Load data
connection.taxonomy.create(...taxonomyData);
connection.template.create(...templateData);
connection.entry.create(...entryData);
connection.asset.create(...assetData)

async = () => {
	const r = await connection.process();
}

Response Example

Displays completed status as well as all data from created and updated records

{
  completed: true,
  taxonomy: [
    {
      publicKey: 'HvdwPHiDH7EVUk7Mtbfz9BmtJVjCYtHNkSwTB2wW49iR',
      label: 'newer label',
      owner: '8XXXzYKeJ4N5HRAXtXYBKwU3FxGzJPWBDXSipSr41Gvx',
      parent: null
    }
  ],
  template: [],
  asset: [],
  entry: []
}
Previous.preflight()NextTemplate

Last updated 1 year ago

🧱