# User operation attributes

> Attributes of the send and confirm spans of ERC-4337 user operations: blockchain.user_operation.*. Type, spans, default and meaning of each.

Source: https://hashspan.dev/docs/reference/attributes/user-operations

Generated from the semantic conventions These rows are generated from the semantic conventions at @hashspan/core@1.1.0, the version on npm. They are a draft: names can still change.

Attributes of the send and confirm spans of ERC-4337 user operations: `blockchain.user_operation.*`. *Default* is what is recorded without configuration; addresses follow the address mode described under [privacy](https://hashspan.dev/docs/reference/semantic-conventions#privacy).

## `blockchain.user_operation.hash`

| Type | Spans | Default |
|---|---|---|
| string | send, confirm | on |

`0x`-prefixed user operation hash (`userOpHash`), which identifies the operation with the chain id

## `blockchain.user_operation.sender`

| Type | Spans | Default |
|---|---|---|
| string | send, confirm | raw |

address of the smart account, subject to address mode

## `blockchain.user_operation.entry_point`

| Type | Spans | Default |
|---|---|---|
| string | send, confirm | raw |

address of the EntryPoint contract, subject to address mode

## `blockchain.user_operation.call_count`

| Type | Spans | Default |
|---|---|---|
| int | send | on |

number of calls the operation makes, when the adapter knows them

## `blockchain.user_operation.nonce`

| Type | Spans | Default |
|---|---|---|
| string | confirm | on |

the operation's nonce, decimal string (a 192-bit key and a 64-bit sequence number)

## `blockchain.user_operation.success`

| Type | Spans | Default |
|---|---|---|
| boolean | confirm | on |

whether the operation's calls succeeded; the bundle transaction can succeed while they revert

## `blockchain.user_operation.gas.used`

| Type | Spans | Default |
|---|---|---|
| int | confirm | on |

gas the operation used (`actualGasUsed`)

## `blockchain.user_operation.gas.cost`

| Type | Spans | Default |
|---|---|---|
| string | confirm | on |

what the operation paid (`actualGasCost`), wei, decimal string; its share of the bundle, not the bundle transaction's fee; paid by the paymaster when `blockchain.user_operation.paymaster` is recorded

## `blockchain.user_operation.paymaster`

| Type | Spans | Default |
|---|---|---|
| string | confirm | raw |

address of the paymaster that paid for the operation, subject to address mode; absent when none paid
