Class: Privy::Models::EthereumSendCallsRpcInput

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

Defined Under Namespace

Modules: ChainType, Method

Instance Attribute Summary collapse

Class Method 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:, method_:, params:, address: nil, chain_type: nil, experimental_data_suffix: nil, sponsor: nil, wallet_id: nil) ⇒ Object

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

Executes the ‘wallet_sendCalls` RPC (EIP-5792) to batch multiple calls into a single atomic transaction.

Parameters:



# File 'lib/privy/models/ethereum_send_calls_rpc_input.rb', line 50

Instance Attribute Details

#addressString?

Returns:

  • (String, nil)


26
# File 'lib/privy/models/ethereum_send_calls_rpc_input.rb', line 26

optional :address, String

#caip2String

A valid CAIP-2 chain ID (e.g. ‘eip155:1’).

Returns:

  • (String)


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

required :caip2, String

#chain_typeSymbol, ...



31
# File 'lib/privy/models/ethereum_send_calls_rpc_input.rb', line 31

optional :chain_type, enum: -> { Privy::EthereumSendCallsRpcInput::ChainType }

#experimental_data_suffixString?

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

Returns:

  • (String, nil)


38
# File 'lib/privy/models/ethereum_send_calls_rpc_input.rb', line 38

optional :experimental_data_suffix, String

#method_Symbol, Privy::Models::EthereumSendCallsRpcInput::Method



15
# File 'lib/privy/models/ethereum_send_calls_rpc_input.rb', line 15

required :method_, enum: -> { Privy::EthereumSendCallsRpcInput::Method }, api_name: :method

#paramsPrivy::Models::EthereumSendCallsRpcInputParams

Parameters for the ‘wallet_sendCalls` RPC.



21
# File 'lib/privy/models/ethereum_send_calls_rpc_input.rb', line 21

required :params, -> { Privy::EthereumSendCallsRpcInputParams }

Returns:

  • (Boolean, nil)


43
# File 'lib/privy/models/ethereum_send_calls_rpc_input.rb', line 43

optional :sponsor, Privy::Internal::Type::Boolean

#wallet_idString?

Returns:

  • (String, nil)


48
# File 'lib/privy/models/ethereum_send_calls_rpc_input.rb', line 48

optional :wallet_id, String

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/privy/models/ethereum_send_calls_rpc_input.rb', line 79