Gets the call policies for a specific signer on the EIP-7702 account. Returns a list of CallSpec objects that define which contracts and functions the signer can call.
CallSpec
// Get call policies for a signervar callPolicies = await ecosystemWallet.GetCallPoliciesForSigner( chainId: 1, signerAddress: "0x1234567890123456789012345678901234567890"); // Examine the policiesforeach (var policy in callPolicies){ Console.WriteLine($"Can call {policy.Target} with selector {BitConverter.ToString(policy.Selector)}"); Console.WriteLine($"Max value per use: {policy.MaxValuePerUse}"); Console.WriteLine($"Constraints: {policy.Constraints.Count}");}
BigInteger: The chain ID of the EIP-7702 account.
BigInteger
string: The address of the signer to get call policies for.
string
A list of call policies for the signer. Each CallSpec contains:
Target
Selector
MaxValuePerUse
ValueLimit
Constraints
Thrown when the execution mode is not EIP7702 or EIP7702Sponsored.
Thrown when the signer address is null or empty.