Skip to content
New issue

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

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

Already on GitHub? # to your account

Attempt MultiSign #143

Draft
wants to merge 9 commits into
base: main
Choose a base branch
from
Draft

Attempt MultiSign #143

wants to merge 9 commits into from

Conversation

bh2smith
Copy link
Member

@bh2smith bh2smith commented Nov 6, 2024

requestMulti to build and sign payloads on multi-networks simultaneously! 🎉

To try:

npx tsx examples/send-eth.ts

To see the following "Sprayed" results:

Creating 2 payload(s) for neareth-dev.testnet <> 0x759e10411dda5138e331b7ad5ce1b937550db737
Transaction Request {
  nonce: 68,
  account: '0x759e10411dda5138e331b7ad5ce1b937550db737',
  to: '0x759e10411dda5138e331b7ad5ce1b937550db737',
  value: 1n,
  data: '0x',
  gas: 21000n,
  maxFeePerGas: 21297361002n,
  maxPriorityFeePerGas: 7870054n,
  chainId: 11155111
}
Built (unsigned) Transaction for chainId=11155111: 0x02ea83aa36a744837816668504f56bf06a82520894759e10411dda5138e331b7ad5ce1b937550db7370180c0
Transaction Request {
  nonce: 1,
  account: '0x759e10411dda5138e331b7ad5ce1b937550db737',
  to: '0x759e10411dda5138e331b7ad5ce1b937550db737',
  value: 1n,
  data: '0x',
  gas: 21000n,
  maxFeePerGas: 1000306n,
  maxPriorityFeePerGas: 1000000n,
  chainId: 1301
}
Built (unsigned) Transaction for chainId=1301: 0x02e782051501830f4240830f437282520894759e10411dda5138e331b7ad5ce1b937550db7370180c0
Requesting signature from v1.signer-dev.testnet

yields:

Transaction Confirmed:
https://sepolia.etherscan.io/tx/0xbdc07e065700841205f0ff26ccbf353443704e101c8253c2b304dce6d16f95bc
Transaction Confirmed:
https://sepolia.uniscan.xyz/tx/0x21201634396d4934235617625b40dafd2b90ceede4f69b848689bf68c9d249eb

However, the contract authors will soon implement this natively on the contract!

near/mpc#880

@bh2smith
Copy link
Member Author

This approach does not appear to work anymore. We may have to close this PR and start over from scratch.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant