Type alias PolicyFromSDK

PolicyFromSDK: {
    contractAddress: Hex;
    functionSelector: string | AbiFunction;
    interval?: SessionEpoch;
    rules: Rule[];
    sessionKeyAddress: Hex;
    valueLimit: bigint;
}

Type declaration

  • contractAddress: Hex

    The address of the contract to be included in the policy

  • functionSelector: string | AbiFunction

    The specific function selector from the contract to be included in the policy

  • Optional interval?: SessionEpoch

    The time interval within which the session is valid. If left unset the session will remain invalid indefinitely

  • rules: Rule[]

    The rules to be included in the policy

  • sessionKeyAddress: Hex

    The address of the sessionKey upon which the policy is to be imparted

  • valueLimit: bigint

    The maximum value that can be transferred in a single transaction