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

[Feedback] extend documentation on how to sign a transaction using a viem walletClient #695

Open
1 task
alramalho opened this issue Feb 27, 2025 · 0 comments
Labels
nextra-feedback Feedback submitted through Nextra

Comments

@alramalho
Copy link

Feedback

from your docs it seems you can only sign with

// Connect OWNER_1_ADDRESS
protocolKit = await protocolKit.connect({
  provider: RPC_URL,
  signer: OWNER_1_PRIVATE_KEY
})

// Sign the safeTransaction with OWNER_1_ADDRESS
// After this, the safeTransaction contains the signature from OWNER_1_ADDRESS
safeTransaction = await protocolKit.signTransaction(
  safeTransaction,
  SigningMethod.ETH_SIGN
)

// Connect OWNER_2_ADDRESS
protocolKit = await protocolKit.connect({
  provider: RPC_URL,
  signer: OWNER_2_PRIVATE_KEY
})

// Sign the safeTransaction with OWNER_2_ADDRESS
// After this, the safeTransaction contains the signature from OWNER_1_ADDRESS and OWNER_2_ADDRESS
safeTransaction = await protocolKit.signTransaction(
  safeTransaction,
  SigningMethod.ETH_SIGN_TYPED_DATA_V4
)

How can this issue be resolved?

i am still struggling with this lol

Are you interested in working on this?

  • I would like to implement/fix this issue
@alramalho alramalho added the nextra-feedback Feedback submitted through Nextra label Feb 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
nextra-feedback Feedback submitted through Nextra
Projects
None yet
Development

No branches or pull requests

1 participant