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

near-fetch

High level client library for transacting to the NEAR network

18 releases (5 breaking)

new 0.5.0 Jul 8, 2024
0.4.0 Jun 13, 2024
0.3.1 Jun 5, 2024
0.2.0 Dec 1, 2023
0.0.11 Sep 28, 2023

#16 in #nonce

Download history 38/week @ 2024-03-11 48/week @ 2024-03-18 37/week @ 2024-03-25 65/week @ 2024-04-01 43/week @ 2024-04-08 15/week @ 2024-04-15 2/week @ 2024-04-22 15/week @ 2024-04-29 5/week @ 2024-05-20 386/week @ 2024-06-03 129/week @ 2024-06-10 40/week @ 2024-06-17

555 downloads per month

MIT/Apache

79KB
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

~35–50MB
~780K SLoC