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

One-step function to dump the tranasction for ckb debugger #723

Open
homura opened this issue Jun 28, 2024 · 0 comments
Open

One-step function to dump the tranasction for ckb debugger #723

homura opened this issue Jun 28, 2024 · 0 comments

Comments

@homura
Copy link
Collaborator

homura commented Jun 28, 2024

How to

// usage
const dataLoader = createRpcDataLoader("http://localhost:8114")
dumpForCkbDebugger(signedTx, dataLoader)
// declaration

declare DataLoader {
  loadOutPoints(outPoints: OutPoint[]): Promise<CellOutput[]>
  loadHeaders(hashes: Hash[]): Promise<Header[]>
}

declare function dumpForCkbDebugger(
  transaction: Transaction, 
  { loader: DataLoader }
): DebuggerData;

declare function createRpcDataLoader(url: string): DataLoader;
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