Skip to content

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

@homura

Description

@homura

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions