Skip to content

Adding support for batching JSON-RPC requests. #66

@Chengxuan

Description

@Chengxuan

Batching JSON-RPC request is an efficient way to reduce the overhead of HTTP communication.

The batching syntax are documented in https://www.quicknode.com/guides/ethereum-development/transactions/how-to-make-batch-requests-on-ethereum

An example batching implementation can be found https://github.com/hyperledger/firefly-transaction-manager/blob/1ac00b5eb37664d73abebd8822ae8439cef3f4bc/internal/persistence/postgres/transaction_writer.go#L79

I think we should use this chance to pull out the batching logic as a library in firefly-common as well.

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