Skip to content

1.1.2接口文档

KooFrank edited this page Jun 25, 2018 · 2 revisions

交易

手续费

充值提现

充值 gateway
  • 是否可以充值

  • 生成二维码地址

  • 充值提示

提现 gateway
  • 是否可以提现

  • 验证提现地址

  • 最小提现数量

  • 手续费 (网关 + 链) 实际到账减去网关的手续费 链上手续费需要额外扣除

  • 提示信息

具体API

database get_objects 2.0.0 (手续费)

database get_objects 2.1.0 (block_num block_id)

database get_chain_id

database get_required_fees (动态手续费)

转账先要发送operation签名后的获取fee 然后在重新签名 上链

转账
{
    "method": "call", 
    "params": [
        3, 
        "broadcast_transaction_with_callback", 
        [
            339, 
            {
                "ref_block_num": 32204, 
                "ref_block_prefix": 305512197, 
                "expiration": "2018-06-19T03:19:46", 
                "operations": [
                    [
                        0, 
                        {
                            "fee": {
                                "amount": "1000", 
                                "asset_id": "1.3.0"
                            }, 
                            "from": "1.2.28828", 
                            "to": "1.2.2926", 
                            "amount": {
                                "amount": "10000", 
                                "asset_id": "1.3.0"
                            }, 
                            "extensions": [ ]
                        }
                    ]
                ], 
                "extensions": [ ], 
                "signatures": [
                    "1f114dcdcd34b95a912e8606cb815d6143acf05a2a064aab3abc3964f77a2b54992275b896b884ea09350c970a14c989530fe5814655dc56a0d4af9651587a8e24"
                ]
            }
        ]
    ], 
    "id": 339
}
回调
{
    "method": "notice", 
    "params": [
        339, 
        [
            {
                "id": "0fafab56b9bb9ba712d05e049b8ab3fc15addbde", 
                "block_num": 3243470, 
                "trx_num": 3, 
                "trx": {
                    "ref_block_num": 32204, 
                    "ref_block_prefix": 305512197, 
                    "expiration": "2018-06-19T03:19:46", 
                    "operations": [
                        [
                            0, 
                            {
                                "fee": {
                                    "amount": 1000, 
                                    "asset_id": "1.3.0"
                                }, 
                                "from": "1.2.28828", 
                                "to": "1.2.2926", 
                                "amount": {
                                    "amount": 10000, 
                                    "asset_id": "1.3.0"
                                }, 
                                "extensions": [ ]
                            }
                        ]
                    ], 
                    "extensions": [ ], 
                    "signatures": [
                        "1f114dcdcd34b95a912e8606cb815d6143acf05a2a064aab3abc3964f77a2b54992275b896b884ea09350c970a14c989530fe5814655dc56a0d4af9651587a8e24"
                    ], 
                    "operation_results": [
                        [
                            0, 
                            { }
                        ]
                    ]
                }
            }
        ]
    ]
}
Clone this wiki locally