Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Manually Sign, Broadcast and Poll Signature Requests #153

Merged
merged 1 commit into from
Jan 9, 2025

Conversation

bh2smith
Copy link
Collaborator

@bh2smith bh2smith commented Jan 9, 2025

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

@bh2smith bh2smith merged commit 007e55c into main Jan 9, 2025
1 check passed
@bh2smith bh2smith deleted the manual-polling branch January 9, 2025 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant