> For the complete documentation index, see [llms.txt](https://docs.defisaver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.defisaver.com/actions/utils/subinputs.md).

# SubInputs

### Description

Helper action to subtract 2 inputs/return values

### Action ID

`0x2f36fd35`

### SDK Action

```ts
const subInputsAction = new dfs.actions.basic.SubInputsAction(
    a,
    b
);
```

### Action Type

`STANDARD_ACTION`

### Input Parameters

```solidity
    /// @param a First input
    /// @param b Second input
    struct Params {
        uint256 a;
        uint256 b;
    }
```

### Return Value

```solidity
return bytes32(a - b)
```

### Events and Logs

```solidity
```
