Steem-Engine的Custom Json操作笔记

in STEEM CN/中文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"
    }
}

Coin Marketplace

STEEM 0.26
TRX 0.11
JST 0.033
BTC 64359.90
ETH 3105.50
USDT 1.00
SBD 3.87