Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

EOSJS PreRelease3 Updated Transaction Support Retry and Irreversible

Pre-release
Pre-release
Compare
Choose a tag to compare
@ericpassmore ericpassmore released this 15 Aug 18:56
· 50 commits to main since this release

Install

npm install enf-eosjs

What's Changed

  • Updated support for send_transaction2
    • returnFailureTrace: return partial traces on failed transactions
    • retryTrxNumBlocks: request node to retry transaction until in a block of given height, blocking call
    • retryIrreversible: request node to retry transaction until it is irreversible or expires, blocking call
    • useOldRPC: use old RPC push_transaction, rather than new RPC send_transaction
    • useOldSendRPC: use old RPC /v1/chain/send_transaction, rather than new RPC /v1/chain/send_transaction2
  • Updated support for get_info
    • server_version_string: string;
    • fork_db_head_block_num: number,
    • fork_db_head_block_id: string,
    • server_full_version_string: string,
    • total_cpu_weight: string,
    • total_net_weight: string,
    • earliest_available_block_num: number,
    • last_irreversible_block_time: string

Notes

Retry irreversible currently set for 30 blocks. This limit may be revised up to a max of 90 blocks.
Moving to npm. yarn support is deprecated and will go away with full release.

Tested on node 16.15.1 and npm 8.11.00

New Contributors

Full Changelog: https://github.com/eosnetworkfoundation/mandel-eosjs/commits/23.0.0-rc3