Steem-Engine的Custom Json操作笔记

in hive-180932 •  4 years ago 

Steem-Engine的Custom Json操作

  • Stake:
{
 required_auths: [ 'koreaminer'],
required_posting_auths: [],
id: 'ssc-mainnet1',
json: '{
        "contractName": "tokens",
        "contractAction": "stake",
        "contractPayload": {
            "to": "koreaminer",
            "symbol": "ZZAN",
            "quantity": "0.00212"
        }
    }'
}

  • Issue:
{
    required_auths: [ 'dliker'
    ],
    required_posting_auths: [],
   id: 'ssc-mainnet1',
    json: '
        {
        "contractName": "tokens",
        "contractAction": "issue",
        "contractPayload": {
            "symbol": "DLIKER",
            "to": "dliker",
            "quantity": "34.934"
        }
    }'
}
  • Transfer:
{
        required_auths: [ 'gomdory'
    ],
       required_posting_auths: [],
        id: 'ssc-mainnet1',
       json: '{
        "contractName": "tokens",
        "contractAction": "transfer",
        "contractPayload": {
            "to": "finex",
            "symbol": "MARLIANS",
            "quantity": "0.01224555",
            "memo": "autofinex"
        }
    }'
}
  • Sell
{
            required_auths: [ 'finex'
    ],
             required_posting_auths: [],
             id: 'ssc-mainnet1',
            json: '{
        "contractName": "market",
        "contractAction": "sell",
        "contractPayload": {
            "symbol": "ZZAN",
            "quantity": "0.01204",
            "price": "0.029099"
        }
    }'
}
  • Cancel
 {
                required_auths: [ 'mian290'
    ],
                required_posting_auths: [],
                id: 'ssc-mainnet1',
             json: '{
        "contractName": "market",
        "contractAction": "cancel",
        "contractPayload": {
            "type": "buy",
            "id": "6f39531cdffb724113a2dc385e697f2b1b25c336"
        }
    }'
}
  • Buy
{
                     required_auths: [ 'mian290'
    ],
                   required_posting_auths: [],
                   id: 'ssc-mainnet1',
                   json: '{
        "contractName": "market",
        "contractAction": "buy",
        "contractPayload": {
            "symbol": "APX",
            "quantity": "500",
            "price": "0.160135"
        }
    }'
}
  • Delegate

{
    "contractName": "tokens",
    "contractAction": "delegate",
    "contractPayload": {
        "to": "harpagon",
        "symbol": "TKN",
        "quantity": "3.5"
    }
}
  • Undelegate
{
    "contractName": "tokens",
    "contractAction": "undelegate",
    "contractPayload": {
        "to": "harpagon",
        "symbol": "TKN",
        "quantity": "3.5"
    }
}
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  
  ·  4 years ago 

啪啪啪