encodeSmartSessionSignature
Get encoded smart session signature.
Usage
const encodedSig = encodeSmartSessionSignature({
  mode: SmartSessionMode.ENABLE,
  permissionId: '0xabcd...',
  signature: '0x1234...',
  enableSessionData: {
    enableSession: {
      chainDigestIndex: 0,
      hashesAndChainIds,
      sessionToEnable,
      permissionEnableSig,
    },
    validator: OWNABLE_VALIDATOR_ADDRESS,
    accountType: account.type,
  },
})Parameters
mode
- Type: SmartSessionMode
The mode of the smart session.
permissionId
- Type: Hex(opens in a new tab)
The permission ID of the session to enable.
signature
- Type: Hex(opens in a new tab)
The signature of the session to enable.
enableSessionData
- Type: EnableSessionData
The data needed to enable a session in an account.
Returns
encodedSignature
- Type: Hex
The encoded smart session signature.