Send Raw Transactions to Orchestrate
To submit raw transactions to Orchestrate, use the SDK or REST API.
Prerequisites:
- Orchestrate running
- Chain registered on the Chain Registry
- Smart contract registered on Contract Registry
- Sender account generated in Orchestrate.
Use the SDK
Prerequisites:
- Install the PegaSys Orchestrate JS client library.
Example code is available in the Orchestrate Node SDK repository examples directory.
Use the REST API
Send the signed raw transaction to the /transactions/send-raw
endpoint on the Chain Registry service.
Send the raw transaction
Example
{
"chain": "besu",
"params": {
"raw": "0xf86580808253189493f7274c...7ecbc53c0f57442ccf3d5960baa17"
}
}
{
"uuid": "00931dae-a047-4ec1-91bc-7104877370f8",
"idempotencyKey": "nqRX3ljo0i71QFJq",
"chain": "besu",
"params": {
"raw": "0xf86580808253189493f7274c9059e601be4512f656b57b830e019e23808490fa17bb820fe8a0ae9a7c01956f7c16f3e8858dddd117e8581c0b7a030130547893bbfcd89d5a1ea04fa1f39b76cfaf7ef6768469563f6ccdcaf7ecbc53c0f57442ccf3d5960baa17"
},
"schedule": {
"uuid": "5b684827-656f-401b-8465-84c69f8c50b2",
"tenantID": "_",
"jobs": [
{
"uuid": "a9a6bedd-3405-40e7-833f-fe44bd7fe90c",
"chainUUID": "4760abd2-d1b6-407b-99fe-11c8d71aeea8",
"scheduleUUID": "5b684827-656f-401b-8465-84c69f8c50b2",
"transaction": {
"raw": "0xf86580808253189493f7274c9059e601be4512f656b57b830e019e23808490fa17bb820fe8a0ae9a7c01956f7c16f3e8858dddd117e8581c0b7a030130547893bbfcd89d5a1ea04fa1f39b76cfaf7ef6768469563f6ccdcaf7ecbc53c0f57442ccf3d5960baa17",
"createdAt": "2020-08-12T09:00:58.532112Z",
"updatedAt": "2020-08-12T09:00:58.532112Z"
},
"logs": [
{
"status": "CREATED",
"at": "2020-08-12T09:00:58.532112Z"
},
{
"status": "STARTED",
"at": "2020-08-12T09:00:58.541245Z"
}
],
"annotations": {
"chainID": "2018"
},
"status": "STARTED",
"type": "eth://ethereum/rawTransaction",
"createdAt": "2020-08-12T09:00:58.532112Z"
}
],
"createdAt": "2020-08-12T09:00:58.532112Z"
},
"createdAt": "2020-08-12T09:00:58.532112Z"
}