Comments (5)
Hi, to make raw address you could do this way:
raw := fmt.Sprintf("%d:%x", internalMessage.SrcAddr.Workchain(), internalMessage.SrcAddr.Data())
from tonutils-go.
internalMessage.SrcAddr.String()
returns user friendly address
from tonutils-go.
I think i didn't put it that way. When user want to detect transactions from some address and send it to the app (0QAqow_s3o17yQk8h6QXVvE0yw_7IVzohVK1qcHfTCx_wVe_
for example) then i need to compare SrcAddr of each transaction to this address to detect whether it's transaction from address that user gave to us or not. But when i get the address from the transaction it's a bit different from one that user sent (EQAqow_s3o17yQk8h6QXVvE0yw_7IVzohVK1qcHfTCx_wbHw
for the address shown in the example above) so it's a problem for me how to compare them. If anything, I'm new to TON, so I apologize in advance if this is a stupid question :)
from tonutils-go.
This is because address flags, your address which starts from 0 is address with testnet and nonboubce flags, you could set flag to src address too using SetTestnetOnly(true) and SetBounce(false), then call String(), then they should be the same.
from tonutils-go.
Thanks!
from tonutils-go.
Related Issues (20)
- always get "Transfer err:failed to get account state: adnl request timeout, node 185.86.79.9:4701",why this happen? HOT 3
- Support wallet V3R1 HOT 8
- Send jetton with comment HOT 4
- Optimize raptorq/discmath package and cover with tests HOT 2
- Add new real world usage examples
- wallet.SendWaitTransaction deploys the contract instead of sending the transaction HOT 1
- Fix policy ProofCheckPolicyFast with multiple existing shards HOT 2
- parse Tact map HOT 2
- GetBalance Error HOT 3
- "Failed to parse payload: recursive reference of cells" on "cell.FromBOC" call HOT 2
- failed to check proof: should have 2 roots HOT 4
- How do we get user wallet from this backend ? HOT 4
- invalid seed check HOT 5
- how to parse jetton transaction to get jetton token amount and comment? HOT 6
- how can i get one transcation info by hash? HOT 3
- i only want use GetTransaction method get one transcation by address+lt,please give me use this method demo.thank you HOT 5
- Accessing validator-engine-console with ADNL client HOT 3
- ListTransactions() always fail with -400 error HOT 1
- How to transfer jettons from subwallets using highload wallet? HOT 2
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 tonutils-go.