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

Provide an API to list all value transfers #11303

Open
3 of 9 tasks
Stebalien opened this issue Sep 27, 2023 · 0 comments
Open
3 of 9 tasks

Provide an API to list all value transfers #11303

Stebalien opened this issue Sep 27, 2023 · 0 comments
Labels
kind/feature Kind: Feature

Comments

@Stebalien
Copy link
Member

Stebalien commented Sep 27, 2023

Checklist

  • This is not brainstorming ideas. If you have an idea you'd like to discuss, please open a new discussion on the lotus forum and select the category as Ideas.
  • I have a specific, actionable, and well motivated feature request to propose.

Lotus component

  • lotus daemon - chain sync
  • lotus fvm/fevm - Lotus FVM and FEVM interactions
  • lotus miner/worker - sealing
  • lotus miner - proving(WindowPoSt/WinningPoSt)
  • lotus JSON-RPC API
  • lotus message management (mpool)
  • Other

What is the motivation behind this feature request? Is your feature request related to a problem? Please describe.

At the moment, listing all value transfers within a tipset requires:

  1. Calling StateCompute on the tipset.
  2. Walking the trace to find all non-reverted sends with non-zero value transfers.

This can make it difficult to track internal transfers without a deep understanding of Filecoin.

Describe the solution you'd like

I'd like an API like the following:

type Transfer struct {
	From ActorID
	To   ActorID
}

type TransferFilter struct {
	From []address.Address
	To   []address.Address
}

func ChainTransfers(ctx context.Context, ts types.TipSetKey, filter *TransferFilter) -> ([]Transfer, error);

Describe alternatives you've considered

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Kind: Feature
Projects
None yet
Development

No branches or pull requests

2 participants