Using Signer as a parameter in the walrus TS sdk

I always use functions that take a “signer: Signer” as a parameter, however, I really don’t know how to get the signer, I only know using:

const keypair = new Ed25519Keypair();

which can not be used because it’s a random string
But what I really needed is the signer related to the current wallet, can anyone help me to solve this problem please.

1 Like

Hey! How does the wallet interact with the attached source code?

Is this supposed to be running on the client-side, meaning that the current wallet is a Sui Wallet that is connected to a specific dApp?
Or is it a script running on the server-side, meaning that you actually have access to the secret key of the wallet?

1 Like

Hello, I think this is supposed to be running on the client-side, and the users use their Sui Wallets to interact with this dapp, like users click a button, then they’re required to use wallet to sign(maybe like this) a transaction to create a storage space on Walrus.