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

near-fetch

High level client library for transacting to the NEAR network

14 releases

0.2.0 Dec 1, 2023
0.1.2 Dec 1, 2023
0.1.0 Nov 30, 2023
0.0.12 Oct 3, 2023
0.0.11 Sep 28, 2023

#21 in #nonce

Download history 8/week @ 2024-01-08 4/week @ 2024-01-15 23/week @ 2024-02-05 153/week @ 2024-02-12 12/week @ 2024-02-19 27/week @ 2024-02-26 14/week @ 2024-03-04 38/week @ 2024-03-11 48/week @ 2024-03-18 37/week @ 2024-03-25 65/week @ 2024-04-01

189 downloads per month

MIT/Apache

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

~31–48MB
~758K SLoC