Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to scan the block and parse the transactions of the specified contract in the block. Is there a demo? #277

Open
ghost opened this issue Nov 10, 2024 · 5 comments

Comments

@ghost
Copy link

ghost commented Nov 10, 2024

No description provided.

@ghost
Copy link
Author

ghost commented Nov 12, 2024

😂

@xssnick
Copy link
Owner

xssnick commented Nov 12, 2024

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

@ghost
Copy link
Author

ghost commented Nov 13, 2024

@xssnick why can't I set the contract to: UQBAjaOyi2wGWlk-EDkSabqqnF-MrrwMadnwqrurKpkla4QB

@ghost
Copy link
Author

ghost commented Nov 13, 2024

我想我已经拿到我想要的了,谢谢你,但是我仍然有一些问题:

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?

@xssnick
Copy link
Owner

xssnick commented Nov 14, 2024

see readme, ton docs and examples, load cell similar to how it happens in contract (.BeginParse()) or map data to struct with tlb tags

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant