Class: Privy::Models::UserOperationInput

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/privy/models/user_operation_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(call_data:, call_gas_limit:, max_fee_per_gas:, max_priority_fee_per_gas:, nonce:, pre_verification_gas:, sender:, verification_gas_limit:, paymaster: nil, paymaster_data: nil, paymaster_post_op_gas_limit: nil, paymaster_verification_gas_limit: nil) ⇒ Object

Some parameter documentations has been truncated, see Privy::Models::UserOperationInput for more details.

An ERC-4337 user operation.

Parameters:

  • call_data (String)

    A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 byt

  • call_gas_limit (String)

    A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 byt

  • max_fee_per_gas (String)

    A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 byt

  • max_priority_fee_per_gas (String)

    A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 byt

  • nonce (String)

    A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 byt

  • pre_verification_gas (String)

    A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 byt

  • sender (String)
  • verification_gas_limit (String)

    A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 byt

  • paymaster (String) (defaults to: nil)
  • paymaster_data (String) (defaults to: nil)

    A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 byt

  • paymaster_post_op_gas_limit (String) (defaults to: nil)

    A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 byt

  • paymaster_verification_gas_limit (String) (defaults to: nil)

    A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 byt



# File 'lib/privy/models/user_operation_input.rb', line 86

Instance Attribute Details

#call_dataString

A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 bytes).

Returns:

  • (String)


11
# File 'lib/privy/models/user_operation_input.rb', line 11

required :call_data, String

#call_gas_limitString

A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 bytes).

Returns:

  • (String)


18
# File 'lib/privy/models/user_operation_input.rb', line 18

required :call_gas_limit, String

#max_fee_per_gasString

A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 bytes).

Returns:

  • (String)


25
# File 'lib/privy/models/user_operation_input.rb', line 25

required :max_fee_per_gas, String

#max_priority_fee_per_gasString

A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 bytes).

Returns:

  • (String)


32
# File 'lib/privy/models/user_operation_input.rb', line 32

required :max_priority_fee_per_gas, String

#nonceString

A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 bytes).

Returns:

  • (String)


39
# File 'lib/privy/models/user_operation_input.rb', line 39

required :nonce, String

#paymasterString?

Returns:

  • (String, nil)


63
# File 'lib/privy/models/user_operation_input.rb', line 63

optional :paymaster, String

#paymaster_dataString?

A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 bytes).

Returns:

  • (String, nil)


70
# File 'lib/privy/models/user_operation_input.rb', line 70

optional :paymaster_data, String

#paymaster_post_op_gas_limitString?

A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 bytes).

Returns:

  • (String, nil)


77
# File 'lib/privy/models/user_operation_input.rb', line 77

optional :paymaster_post_op_gas_limit, String

#paymaster_verification_gas_limitString?

A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 bytes).

Returns:

  • (String, nil)


84
# File 'lib/privy/models/user_operation_input.rb', line 84

optional :paymaster_verification_gas_limit, String

#pre_verification_gasString

A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 bytes).

Returns:

  • (String)


46
# File 'lib/privy/models/user_operation_input.rb', line 46

required :pre_verification_gas, String

#senderString

Returns:

  • (String)


51
# File 'lib/privy/models/user_operation_input.rb', line 51

required :sender, String

#verification_gas_limitString

A hex-encoded string prefixed with ‘0x’, capped at 100002 characters (50,000 bytes).

Returns:

  • (String)


58
# File 'lib/privy/models/user_operation_input.rb', line 58

required :verification_gas_limit, String