Repository
https://github.com/harpagon210/steemsmartcontracts/issues/11
As a token issuer, I would like to be able to express a batch of contract actions, so that I can get around one-block-per-account-per-custom-json.
The condition in question is:
E.g., a second case for when contractPayload === 'list'
(I think?). Or just make single-actions become one-element batches directly outside this condition.
Preferred example:
{
"required_auths":[
"inertia"
],
"required_posting_auths":[
],
"id":"ssc-00000000000000000002",
"json":"[{\"contractName\":\"tokens\",\"contractAction\":\"issue\",\"contractPayload\":{\"symbol\":\"SPAMMY\",\"to\":\"mack-bot\",\"quantity\":0.00139503,\"memo\":\"@chucha530/6o2xgq\"}},{\"contractName\":\"tokens\",\"contractAction\":\"issue\",\"contractPayload\":{\"symbol\":\"SPAMMY\",\"to\":\"prowler\",\"quantity\":8.4e-07,\"memo\":\"@chucha530/6o2xgq\"}},{\"contractName\":\"tokens\",\"contractAction\":\"issue\",\"contractPayload\":{\"symbol\":\"SPAMMY\",\"to\":\"spaminator\",\"quantity\":0.9972102,\"memo\":\"@chucha530/6o2xgq\"}}]"
}
Notice, I'm passing an array ([]
) to json
that contains three actions, instead of a single object ({}
) with a single action.