Parameters
| Parameter | Type | Description |
|---|---|---|
options | ListSpendPermissionsOptions | The options for listing spend permissions. |
Returns
Promise<ListSpendPermissionsResult>
The result of the spend permissions listing.
function listSpendPermissions(options: ListSpendPermissionsOptions): Promise<ListSpendPermissionsResult>;
| Parameter | Type | Description |
|---|---|---|
options | ListSpendPermissionsOptions | The options for listing spend permissions. |
Promise<ListSpendPermissionsResult>
The result of the spend permissions listing.
const result = await listSpendPermissions({
evmSmartAccount: "0x1234...",
network: "base-sepolia",
pageSize: 10
});
console.log("Found", result.spendPermissions.length, "spend permissions");
for (const permission of result.spendPermissions) {
console.log("Permission:", permission.permissionHash, "Revoked:", permission.revoked);
}
Was this page helpful?