简要描述:
- 获取gwei预估费用
请求域名:
- http://xx.com
请求URL:
POST/wapapi/addons/blockchain/blockchain/getGasPrice
参数:
参数名 | 是否必须 | 类型 | 说明 |
---|---|---|---|
gas | 是 | int | gas |
symbol | 是 | string | 货币符号 |
type | 是 | int | 1积分兑换货币 2货币兑换积分 3货币转换 4货币转账 |
toAddress | 否 | string | 转账地址 |
返回示例:
正确时返回:
{
"code": "200",
"msg": "SUCCESS",
"data": {
"gasFee": 0.00185695,
"gasPrice": 0.00185695,
"unit": "ETHER"
}
}
错误时返回:
{
"code": -1,
"message": "invalid appid"
}
返回参数说明:
参数名 | 类型 | 说明 |
---|---|---|
gasFee | floatval | gasFee货币金额 |
gasPrice | floatval | gasPrice转换后金额 |
备注:
- 更多返回错误代码请看首页的错误代码描述