如何使用asch-cli将一些XAS传输到Dapp

时间:2018-07-30 23:05:14

标签: asch-development asch asch-cli

我尝试过:

select a.*,group_concat(b._id || ', ' || b.product_id || ', ' || b.no_of_units || ', ' || b.unit_price || ', ' || b.discount || ', ' || b.discount, '; ') as d
    from transactions a  join transactions b on a._id=b.local_ref_txn_id 
group by a.id

1 个答案:

答案 0 :(得分:1)

mCursor = new MyDbHelper(mContext).getReadableDatabase().rawQuery("select group_concat(b._id || ', ' || b.product_id || ', ' || b.no_of_units || ', ' || b.unit_price || ', ' || b.discount || ', ' || b.discount, '; ') as d,a.* \n" + "from transactions a left join transactions b on a._id=b.local_ref_txn_id " + "group by a._id", null); String details = cursor.getString(cursor.getColumnIndex("d")); 的完整文档可在https://github.com/AschPlatform/asch-docs/blob/master/cli_usage/en.md中找到。您应该尝试使用asch-cli -H 127.0.0.1 -P 4096 dapptransaction --secret "acquire paper fun spice celery design able shrimp lunch angry alter gather" --dapp 559ddee66bacb008f1a5eb2692ef18ba9b0d9da923989da4070c0fd33d0d3352 --args "{currency:'XAS',amount:5000000000}" --fee 10000000 替换asch-cli

因此请尝试如下所示的内容:

dapptransaction