near/near-cli-rs

Transaction expires / times out due to archival-rpc in config

petersalomonsen opened this issue · 1 comments

A newly installed near-cli is configured to use archival-rpc:

image

This cause many transaction to expire/time out (like this build https://github.com/NEAR-DevHub/neardevhub-bos/actions/runs/8009365088/job/21879301976#step:6:311 ). Changing to the standard rpc fixes the issue.

It seems like the archival RPC is set up as a default here:

rpc_url: "https://archival-rpc.mainnet.near.org".parse().unwrap(),

frol commented

Archival RPC default is by design. We don't want users to get confusing errors when they are trying to get the status of a transaction or some other view calls that need the data older than 2 days.