# setFee

_Sets the fee rate used when funding transactions, in satoshis per virtual byte._

## Type

```ts
;(fee: number) => void
```

### Parameters

#### `fee`

New `satPerByte` value.

### Syntax

```js
computer.setFee(2)
```

## See also

- [getFee](./getFee.md)
