#transaction #rpc-client #near #high #nonce #key #high-level

near-fetch

High level client library for transacting to the NEAR network

20 releases (6 breaking)

0.6.0 Oct 9, 2024
0.5.0 Jul 8, 2024
0.2.0 Dec 1, 2023
0.1.0 Nov 30, 2023

#14 in #nonce

Download history 64/week @ 2024-07-22 25/week @ 2024-07-29 31/week @ 2024-08-05 3/week @ 2024-08-12 25/week @ 2024-08-19 37/week @ 2024-08-26 175/week @ 2024-09-02 3/week @ 2024-09-09 68/week @ 2024-09-16 68/week @ 2024-09-23 8/week @ 2024-09-30 220/week @ 2024-10-07 78/week @ 2024-10-14 12/week @ 2024-10-21 6/week @ 2024-10-28 10/week @ 2024-11-04

111 downloads per month

MIT/Apache

80KB
1.5K SLoC

NEAR Fetch

High level rust client library for sending transactions into the NEAR chain. This is a WIP library so use at your own risk and can likely be deprecated.

Features

  • Retrying transactions with exponential backoff.
  • When sending transactions, the nonces are cached and invalidated locally as to avoid querying for them everytime we need to make a transaction.
  • KeyRotatingSigner for switching between keys on each sign point.

NOTE: this is currently not a complete replacement for near-jsonrpc-client-rs as this is more for transactions and not every single possible RPC method that you can make.

Dependencies

~24–37MB
~543K SLoC