Skip to main content

mnft.registerMachine(RegisterMachine)

Register one or more Machine NFTs to a designated controller. This sends transactions from the Machine Issuer and charges the ERC20 fee from the controller. The Machine NFT contract must be funded before you call this. machineNft must be the Machine NFT contract created for this issuer by addMachineIssuer; a signer that is not its issuer reverts with User unauthorized. The controller must have an ONCHAINID identity with a verified KYC claim, or the call reverts with NoIdentityFound / UserNotKyxd.
In @peaq-network/rwa 0.1.0, registerMachine writes a fixed sample DID document for every machine (a BMW X3 vehicle record with placeholder service endpoints). It does not take your machine’s brand, model, or serial number, and salt only changes the sample serial-number suffix. The record is permanent and each machine costs the registration fee. Use agung until the SDK accepts real machine metadata.

RegisterMachine Type Parameters

Returns

Usage

TypeScript

JavaScript

Example outputs