- This project showing example how to do transfer Xem and mosaic.
- Using Nodejs, Express, nem-sdk
- please check on more info on nem-sdk.
- this is endpoint
For Xem: /transfer/xem/TargetAddress/Amount
For Mosaic: /transfer/mosaic/TargetAddress/Amount
Example : curl http://localhost:3000/transfer/xem/TCPVKPCPGMDH7KCQQR6JWIGQ5RM6C2FRB2LALJ4V/25
npm install
npm start
var common = nem.model.objects.create('common')('Password', 'PrivateKey');
var mosaicAttachment = nem.model.objects.create('mosaicAttachment')(
'Namespace',
'masaicName',
amount
);
var neededDefinition = nem.utils.helpers.searchMosaicDefinitionArray(res.data, [
'masaicName',
]);