@soulwallet/decoder / Modules
Ƭ Result<T
, E
>: Ok
<T
, E
> | Err
<T
, E
>
Defines a Result type, which can be either Ok or Err.
Name |
---|
T |
E |
soulwallet-result/lib.esm/Result.d.ts:4
▸ DecodeUserOp(chainId
, entrypoint
, userOperations
): Promise
<Result
<DecodeResult
[], Error
>>
Decode the transaction data (userOp.calldata, interaction from soulwallet contract only).
Name | Type | Description |
---|---|---|
chainId |
number |
|
entrypoint |
string |
contract address |
userOperations |
IUserOperation |
- |
Promise
<Result
<DecodeResult
[], Error
>>
{Promise<Result<DecodeResult[], Error>>}
Static
Memberof
Decoder