Skip to content

generateAddressWithSigners

generateAddressWithSigners(args): object

Defined in: packages/transact/src/signer.ts:48

Generate type-safe domain-separated signer callbacks given an ed25519 pubkey and a signing callback

The arguments for generating signers

Uint8Array

The ed25519 public key used for signing

RawEd25519Signer

A callback function that signs raw bytes using the ed25519 private key

Address

The address that will be used as the sender of transactions. If not provided, defaults to the address derived from the ed25519 public key. This is useful when signing for a rekeyed account where the sending address differs from the auth address.

object

An object containing the sending address and various signer functions

addr: Readonly<Address>

lsigSigner: DelegatedLsigSigner

mxBytesSigner: MxBytesSigner

programDataSigner: ProgramDataSigner

signer: TransactionSigner