Comments (8)
hi, for now, there is no fee message in the transaction. If the transaction type is trade(like createOrder), you can find fee in trade
api, for other kind of transaction you need get fee parameters from /api/v1/fees
, and calculate the fee.
from go-sdk.
I use RPC query transaction
/tx?hash=_
, how to get the transaction fee? i need to know the fee of this transaction
trade fee可以从http api 查到: https://dex.binance.org/api/v1/trades?symbol=UGAS-B0C_BNB&start=1562544000000&end=1562630400000&total=1&offset=0&limit=1000
from go-sdk.
If the fee changed, how to know the history transfer transaction fee via RPC?
from go-sdk.
If the fee changed, how to know the history transfer transaction fee via RPC?
You can only get the current fee by querying abci interface.
The fee history is recorded in the fee change proposals.
from go-sdk.
You still have an option:
use api
https://explorer.binance.org/api/v1/tx?txHash=0E50ABF5DAA042CBB23A118EF73DD1DD7F1BCED5457EB9E2281D89A25F30CA55
In that API, you will get a fee message.
But this is not an official API, may not stable.
from go-sdk.
It's not a good choice use the explorer.binance.org, it's should query from RPC, i think it's should record on blockchain.
I know the query abci can get the current fee, or fee change proposals, it's hard to sure how much fee for this transaction.
from go-sdk.
@crossle you request are reasonable, I also discuss with other members, we may wrap the rest api rather than RPC in future. It would be a breaking change for RPC to support fee info which beyond what an sdk could do, would you clarify your scene and make an issue in https://github.com/binance-chain/BEPs, we could have a serious discussion there.
from go-sdk.
Thanks your reply.
Plz don't breaking RPC, RPC should have all feature, it's low level API, it's just run full node, no any other REST server. REST API is a high level API, it should just a wrapper for RPC, it's just convenience for some developers, but it's dependence REST server, we have to run REST server, it's hard to maintenance.
If no REST API, it's ok, the developers can use RPC, If no RPC api, it's very bad, many developers don't like the REST API, it's hard to satisfy almost developers.
from go-sdk.
Related Issues (20)
- Client.Block() returns nil block ID and invalid block hash HOT 3
- rpcClient.Block(&block) return context.DeadlineErr HOT 2
- Check amount for bep8 transfer
- go: finding module for package github.com/tendermint/tendermint/libs/common D:\mygo\pkg\mod\github.com\binance-chain\[email protected]\common\types\nodeinfo.go:6:2: module github.com/tendermint/tendermint@latest found (v0.33.6), but does not contain package github.com/tendermint/tendermint/libs/common HOT 1
- Go SDK's testnet chain ID still set to "Binance-Chain-Nile"
- 创建的地址与实际不符
- problem with open orders and order status
- 怀疑bnb 节点维护的nonce有问题
- No support for creating orders with IOC TimeInForce
- response: RPC error -32603 - Internal error: Timed out waiting for tx to be included in a block
- Not able to communicate with RPC public node
- why must use https when new dex client? please support http
- This project is useless
- Conflict with go-ethereum: duplicate symbol '_secp256k1GoPanicError' HOT 2
- tx decode problem HOT 1
- 我现在的Mac系统是13.2.1,报错了。能否修复一下这个bug。感谢了 HOT 1
- i get error undefined: sdk.LimitConsAddrUpdateInterval HOT 5
- Websocket subscription gets closed after a few minutes HOT 1
- why the package is err?
- why does package 'github.com/bnb-chain/node/common/upgradef' show error?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-sdk.