I want to scan the block and parse the transactions of the specified contract in the block. Is there a demo?
😂
Hi, yes, you can use this example https://github.com/xssnick/tonutils-go/blob/master/example/accept-payments/main.go
It reports every contract's tx to the channel
@xssnick why can't I set the contract to: UQBAjaOyi2wGWlk-EDkSabqqnF-MrrwMadnwqrurKpkla4QB
我想我已经拿到我想要的了,谢谢你,但是我仍然有一些问题:
type Cell struct {
special bool
levelMask LevelMask
bitsSz uint
data []byte
hashes []byte
depthLevels []uint16
refs []*Cell
}
the data I want is in data, which contains transaction information. How should I obtain and parse it?
see readme, ton docs and examples, load cell similar to how it happens in contract (.BeginParse()) or map data to struct with tlb tags
你好,是的,你可以使用这个例子https://github.com/xssnick/tonutils-go/blob/master/example/accept-payments/main.go
它将每个合约的交易报告给渠道
Is it necessary to set treasuryAddress? I want to listen to all transfers to this contract EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs.