Skip to content

Instantly share code, notes, and snippets.

@daoka
Created June 9, 2018 16:12
Show Gist options
  • Save daoka/ea515819d4919cc874b396430ac6806f to your computer and use it in GitHub Desktop.
Save daoka/ea515819d4919cc874b396430ac6806f to your computer and use it in GitHub Desktop.
NEM2 Transfer Transaction Sample with Node-Red
[
{
"id": "e00a6b2.2f87898",
"type": "transfer",
"z": "7c68421c.ffca4c",
"name": "",
"address": "",
"message": "",
"amount": "0",
"namespace": "",
"mosaic": "",
"publicKey": "",
"network": "4661c9ad.9c42a8",
"aggregate": false,
"x": 372,
"y": 99,
"wires": [
[
"53b1657c.f12c0c"
]
]
},
{
"id": "12aaf9df.e72e06",
"type": "announce transaction",
"z": "7c68421c.ffca4c",
"name": "",
"server": "95315b2.c9315a8",
"announceType": "announce",
"x": 581,
"y": 243,
"wires": [
[
"5def19b0.d619c8",
"9c94125d.e7fce",
"482009f0.a40e78",
"2560fb19.5e6384",
"961b196b.f43ca8"
]
]
},
{
"id": "953eb520.edb578",
"type": "http in",
"z": "7c68421c.ffca4c",
"name": "",
"url": "/sendTest",
"method": "get",
"upload": false,
"swaggerDoc": "",
"x": 112,
"y": 100,
"wires": [
[
"e00a6b2.2f87898"
]
]
},
{
"id": "2bf9905a.1fce1",
"type": "http response",
"z": "7c68421c.ffca4c",
"name": "",
"statusCode": "",
"headers": {},
"x": 1030,
"y": 247,
"wires": []
},
{
"id": "53b1657c.f12c0c",
"type": "signTransaction",
"z": "7c68421c.ffca4c",
"name": "",
"privateKey": "",
"coSign": false,
"network": "4661c9ad.9c42a8",
"x": 699,
"y": 102,
"wires": [
[
"12aaf9df.e72e06"
]
]
},
{
"id": "5def19b0.d619c8",
"type": "debug",
"z": "7c68421c.ffca4c",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "nem",
"x": 775,
"y": 372,
"wires": []
},
{
"id": "9c94125d.e7fce",
"type": "function",
"z": "7c68421c.ffca4c",
"name": "toNEMObj",
"func": "msg.payload = msg.nem\nreturn msg;",
"outputs": 1,
"noerr": 0,
"x": 838.5,
"y": 243,
"wires": [
[
"2bf9905a.1fce1"
]
]
},
{
"id": "482009f0.a40e78",
"type": "listener",
"z": "7c68421c.ffca4c",
"name": "",
"server": "95315b2.c9315a8",
"address": "",
"listenerType": "status",
"x": 684,
"y": 494,
"wires": [
[
"f73c968d.ac38e8"
]
]
},
{
"id": "f73c968d.ac38e8",
"type": "debug",
"z": "7c68421c.ffca4c",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "nem",
"x": 915,
"y": 492,
"wires": []
},
{
"id": "2560fb19.5e6384",
"type": "listener",
"z": "7c68421c.ffca4c",
"name": "",
"server": "95315b2.c9315a8",
"address": "",
"listenerType": "unconfirmedAdded",
"x": 725.5,
"y": 554,
"wires": [
[
"6f4a337f.d86f8c"
]
]
},
{
"id": "6f4a337f.d86f8c",
"type": "debug",
"z": "7c68421c.ffca4c",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "nem",
"x": 926.5,
"y": 557,
"wires": []
},
{
"id": "961b196b.f43ca8",
"type": "listener",
"z": "7c68421c.ffca4c",
"name": "",
"server": "95315b2.c9315a8",
"address": "",
"listenerType": "confirmed",
"x": 697.5,
"y": 610,
"wires": [
[
"3d30722f.017dae"
]
]
},
{
"id": "3d30722f.017dae",
"type": "debug",
"z": "7c68421c.ffca4c",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "nem",
"x": 928.5,
"y": 613,
"wires": []
},
{
"id": "4661c9ad.9c42a8",
"type": "networkConfig",
"z": "",
"network": "MIJIN_TEST"
},
{
"id": "95315b2.c9315a8",
"type": "serverConfig",
"z": "",
"url": "localhost",
"customServer": "localhost",
"network": "4661c9ad.9c42a8",
"port": "3000"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment