Class: Privy::Models::EvmTransactionWalletActionStep

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

Defined Under Namespace

Modules: Type

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(caip2:, status:, transaction_hash:, type:, failure_reason: nil) ⇒ Object

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

A wallet action step consisting of an EVM transaction.

Parameters:



# File 'lib/privy/models/evm_transaction_wallet_action_step.rb', line 36

Instance Attribute Details

#caip2String

CAIP-2 chain identifier of the transaction, containing the chain ID.

Returns:

  • (String)


10
# File 'lib/privy/models/evm_transaction_wallet_action_step.rb', line 10

required :caip2, String

#failure_reasonPrivy::Models::FailureReason?

A description of why a wallet action (or a step within a wallet action) failed.



34
# File 'lib/privy/models/evm_transaction_wallet_action_step.rb', line 34

optional :failure_reason, -> { Privy::FailureReason }

#statusSymbol, Privy::Models::EvmWalletActionStepStatus

Status of an EVM step in a wallet action.



16
# File 'lib/privy/models/evm_transaction_wallet_action_step.rb', line 16

required :status, enum: -> { Privy::EvmWalletActionStepStatus }

#transaction_hashString?

The transaction hash for this step. May change while the step status is non-terminal.

Returns:

  • (String, nil)


23
# File 'lib/privy/models/evm_transaction_wallet_action_step.rb', line 23

required :transaction_hash, String, nil?: true

#typeSymbol, Privy::Models::EvmTransactionWalletActionStep::Type



28
# File 'lib/privy/models/evm_transaction_wallet_action_step.rb', line 28

required :type, enum: -> { Privy::EvmTransactionWalletActionStep::Type }