.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: []
}

Last updated