EcosystemWallet.GetCallPoliciesForSigner

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.

Usage

// Get call policies for a signer
var callPolicies = await ecosystemWallet.GetCallPoliciesForSigner(
chainId: 1,
signerAddress: "0x1234567890123456789012345678901234567890"
);
// Examine the policies
foreach (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}");
}