Global_ResponseModels

AccountBalanceModel

class AccountBalanceModel

A pydantic model for account balance.

AddressBalanceModel

class AddressBalanceModel

A pydantic model for an address balance.

AddressDescriptor

class AddressDescriptor

A pydantic model of an address descriptor.

AddressesModel

class AddressesModel

A pydantic model for a list of addressmodels.

AddressModel

class AddressModel

A pydantic model representing an address with balance.

BlockModel

class BlockModel

A pydantic model of a block.

BlockTransactionDetailsModel

class BlockTransactionDetailsModel

A pydantic model for block transaction details.

BuildContractTransactionModel

class BuildContractTransactionModel

A pydantic model for building a smart contact transaction.

BuildCreateContractTransactionModel

class BuildCreateContractTransactionModel

A pydantic model for a create smart contact transaction.

BuildOfflineSignModel

class BuildOfflineSignModel

A pydantic model for a built offline sign request.

BuildTransactionModel

class BuildTransactionModel

A pydantic model for a built transaction.

MaturedBlockInfoModel

class MaturedBlockInfoModel

A pydantic model representing a married block.

PollViewModel

class PollViewModel

A pydantic model for polling data.

RemovedTransactionModel

class RemovedTransactionModel

A pydantic model for a removed transaction.

ScriptPubKey

class ScriptPubKey

A ScriptPubKey.

A ScriptPubKey is a part of transaction’s output, and is the second half of a script.

Note

Learn more about transaction structure.

classmethod construct()

Creates a new model setting __dict__ and __fields_set__ from trusted or pre-validated data. Default values are respected, but no other validation is performed. Behaves as if Config.extra = ‘allow’ was set since it adds all passed values

copy

Duplicate a model, optionally choose which fields to include, exclude and change.

Parameters:
  • include – fields to include in new model
  • exclude – fields to exclude from new model, as with values this takes precedence over include
  • update – values to change/add in the new model. Note: the data is not validated before creating the new model: you should trust this data
  • deep – set to True to make a deep copy of the model
Returns:

new model instance

dict

Generate a dictionary representation of the model, optionally specifying which fields to include or exclude.

classmethod update_forward_refs(**localns) → None

Try to update ForwardRefs on fields based on this Model, globalns and localns.

ScriptSig

class ScriptSig

Represents ScriptSig.

A ScriptSig is a part of transaction’s input, and is the first half of a script.

Note

Learn more about transaction structure.

TransactionModel

class TransactionModel

A pydantic model for a transaction.

TransactionOutputModel

class TransactionOutputModel

A pydantic model of a transaction output.

UtxoDescriptor

class UtxoDescriptor

A pydantic model of a utxo descriptor.

VIn

class VIn

Represents transaction’s input.

Note

Learn more about transaction input structure.

VOut

class VOut

Represents transaction’s output.

WalletBalanceModel

class WalletBalanceModel

A pydantic model for a wallet balance.

WalletGeneralInfoModel

class WalletGeneralInfoModel

A model representing general wallet info.

WalletSendTransactionModel

class WalletSendTransactionModel

A pydantic model for a send transaction response.