Type of the modular smart account, extending ModularSmartAccount or undefined.
The client used to interact with the blockchain.
Parameters for using the session, including actions to execute and optional gas settings.
A promise that resolves to the hash of the sent user operation.
If no account is provided and the client doesn't have an associated account.
const result = await usePermission(nexusClient, {
calls: [
{
to: '0x1234...',
data: '0xabcdef...'
}
],
maxFeePerGas: 1000000000n
});
console.log(`Transaction hash: ${result}`);
sendUserOperation
method, which is specific to account abstraction implementations.
Executes actions using a smart session.
This function allows for the execution of one or more actions within an enabled smart session. It can handle batch transactions if the session is configured for multiple actions.