Welcome to the Hive Engine Developer Portal
There are two ways to interact with the Hive Engine:
1) via custom_json
Send a
custom_json
operation to the main blockchain with the following parameters:
id: "ssc-mainnet-hive",
json: [{
"contractName": "NAME OF THE CONTRACT",
"contractAction": "ACTION OF THE CONTRACT TO PERFORM",
"contractPayload": { OBJECT THAT WILL BE PASSED TO THE CONTRACT ACTION }
}, {
"contractName": "NAME OF THE CONTRACT",
"contractAction": "ACTION OF THE CONTRACT TO PERFORM",
"contractPayload": { OBJECT THAT WILL BE PASSED TO THE CONTRACT ACTION }
}]
2) via transfer
Transfer funds with the following json as memo:
{
"id": "ssc-mainnet-hive",
"json": {
"contractName": "NAME OF THE CONTRACT",
"contractAction": "ACTION OF THE CONTRACT TO PERFORM",
"contractPayload": { OBJECT THAT WILL BE PASSED TO THE CONTRACT ACTION }
}
}
Note: The
id
is used to identify to which sidechain you want to send the transaction. For Steem Engine, use
ssc-mainnet1
.