Class: Privy::Models::FundsWithdrawnWebhookPayload

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

Defined Under Namespace

Modules: Type Classes: Block

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(number:, timestamp:) ⇒ Object

Parameters:

  • number (Float)

    The block number.

  • timestamp (Float)

    The block timestamp.



# File 'lib/privy/models/funds_withdrawn_webhook_payload.rb', line 71

Instance Attribute Details

#amountString

The amount transferred, as a stringified bigint.

Returns:

  • (String)


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

required :amount, String

#assetPrivy::Models::WalletFundsNativeTokenAsset, ...

An asset involved in a wallet transfer.



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

required :asset, union: -> { Privy::WalletFundsAsset }

#blockPrivy::Models::FundsWithdrawnWebhookPayload::Block



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

required :block, -> { Privy::FundsWithdrawnWebhookPayload::Block }

#caip2String

The CAIP-2 chain identifier.

Returns:

  • (String)


27
# File 'lib/privy/models/funds_withdrawn_webhook_payload.rb', line 27

required :caip2, String

#idempotency_keyString

A unique key for this event.

Returns:

  • (String)


33
# File 'lib/privy/models/funds_withdrawn_webhook_payload.rb', line 33

required :idempotency_key, String

#recipientString

The recipient address.

Returns:

  • (String)


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

required :recipient, String

#senderString

The sender address.

Returns:

  • (String)


45
# File 'lib/privy/models/funds_withdrawn_webhook_payload.rb', line 45

required :sender, String

#transaction_feeString?

The transaction fee paid, as a stringified bigint in the chain’s native token.

Returns:

  • (String, nil)


69
# File 'lib/privy/models/funds_withdrawn_webhook_payload.rb', line 69

optional :transaction_fee, String

#transaction_hashString

The blockchain transaction hash.

Returns:

  • (String)


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

required :transaction_hash, String

#typeSymbol, Privy::Models::FundsWithdrawnWebhookPayload::Type

The type of webhook event.



57
# File 'lib/privy/models/funds_withdrawn_webhook_payload.rb', line 57

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

#wallet_idString

The ID of the wallet.

Returns:

  • (String)


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

required :wallet_id, String