You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The MPC Sign Requests are timing out when calling
`account.signAndSendTransaction`. This appears to be buried deeply in
the non-configurable `provider.txStatus` polling (when waiting for an
EXECUTED status).
Add alternate/semi-manual transaction broadcast & result fetching as
follows:
- signTransaction
- sendTransactionAsync
- poll txStatus for INCLUDED instead of EXECUTED on a loop until
EXECUTED (with 1 second/block sleep).
This is entirely due to some usability issue with near-js/providers:
near/near-api-js#1448
Prerequisites
near-api-js
.Description
the providers package has a hard-coded backoff/retry configuration that times out at 11.33 seconds:
near-api-js/packages/providers/src/fetch_json.ts
Lines 5 to 6 in c49fd67
These
sign
transactions onv1.signer
are taking approximately 12 blocks to confirm. Example Tx:https://nearblocks.io/txns/F683A1dLFZYbqRbNjEuNpQTA9gKFVfHVkgUfyeYuhnrx#execution
Results in errors like this:
Reproducible demo
https://github.com/Mintbase/near-ca
Steps to reproduce
npx tsx examples/send-eth.ts
Expected behavior
Not a timeout
Actual behavior
always a timeout.
Your environment
Self-service
The text was updated successfully, but these errors were encountered: