pub enum Error {
Show 113 variants
AllocationsAlreadyAvailable,
AssetNotFound {
asset_id: String,
},
BatchTransferNotFound {
idx: i32,
},
BitcoinNetworkMismatch,
CannotChangeOnline,
CannotProvideOutOfBandAck {
details: String,
},
CannotCombinePsbts,
CannotProvideOutOfBandConsignment {
details: String,
},
CannotAbortPendingVanillaTx,
CannotDeleteBatchTransfer,
CannotEstimateFees,
CannotFailBatchTransfer,
CannotFinalizePsbt,
CannotUseIfaOnMainnet,
Database {
details: String,
},
EmptyFile {
file_path: String,
},
FailedBdkSync {
details: String,
},
FailedBroadcast {
details: String,
},
FailedIssuance {
details: String,
},
FileAlreadyExists {
path: String,
},
FingerprintMismatch,
IO {
details: String,
},
Inconsistency {
details: String,
},
Indexer {
details: String,
},
InexistentDataDir,
InexistentWalletManifest {
path: String,
},
InsufficientAllocationSlots,
InsufficientAssignments {
asset_id: String,
available: AssignmentsCollection,
},
InsufficientBitcoins {
needed: u64,
available: u64,
},
Internal {
details: String,
},
InvalidAddress {
details: String,
},
InvalidAmountZero,
InvalidAssignment,
InvalidAttachments {
details: String,
},
InvalidBitcoinKeys,
InvalidBitcoinNetwork {
network: String,
},
InvalidColoringInfo {
details: String,
},
InvalidConsignment,
InvalidCosigner {
details: String,
},
InvalidDetails {
details: String,
},
InvalidElectrum {
details: String,
},
InvalidEstimationBlocks,
InvalidExpiration,
InvalidFeeRate {
details: String,
},
InvalidFilePath {
file_path: String,
},
InvalidFingerprint,
InvalidIndexer {
details: String,
},
InvalidInvoice {
details: String,
},
InvalidMnemonic {
details: String,
},
InvalidMultisigThreshold {
required: u8,
total: u8,
},
InvalidName {
details: String,
},
InvalidPrecision {
details: String,
},
InvalidProxyProtocol {
version: String,
},
InvalidPsbt {
details: String,
},
InvalidPubkey {
details: String,
},
InvalidRecipientData {
details: String,
},
InvalidRecipientID,
InvalidRecipientMap,
InvalidRecipientNetwork,
InvalidRejectListUrl {
details: String,
},
InvalidTicker {
details: String,
},
InvalidTransportEndpoint {
details: String,
},
InvalidTransportEndpoints {
details: String,
},
InvalidTxid,
InvalidVanillaKeychain,
InvalidWitnessVersion {
witness_version: String,
},
MaxFeeExceeded {
txid: String,
},
MinFeeNotMet {
txid: String,
},
MultisigHubService {
details: String,
},
MultisigCannotMarkOperationProcessed {
details: String,
},
MultisigCannotRespondToOperation {
details: String,
},
MultisigOperationInProgress,
MultisigOperationNotFound {
operation_idx: i32,
},
MultisigTransferStatusMismatch,
MultisigUnexpectedData {
details: String,
},
MultisigUserNotCosigner,
Network {
details: String,
},
NoBurnAmount,
NoConsignment,
NoCosignersSupplied,
NoInflationAmounts,
NoIssuanceAmounts,
NoKeysSupplied,
NoMaxAllocationsPerUtxo,
NoSupportedSchemas,
NoValidTransportEndpoint,
Offline,
OnlineNeeded,
OutputBelowDustLimit,
Proxy {
details: String,
},
PsbtInspection {
details: String,
},
RecipientIDAlreadyUsed,
RecipientIDDuplicated,
RejectListService {
details: String,
},
RestClientBuild {
details: String,
},
RgbInspection {
details: String,
},
TooHighInflationAmounts,
TooHighIssuanceAmounts,
TooManyCosigners,
TooManySignaturesInPsbt,
UnknownRgbSchema {
schema_id: String,
},
UnknownTransfer {
txid: String,
},
UnsupportedBackupVersion {
version: String,
},
UnsupportedBurn {
asset_schema: AssetSchema,
},
UnsupportedInflation {
asset_schema: AssetSchema,
},
UnsupportedLayer1 {
layer_1: String,
},
UnsupportedSchema {
asset_schema: AssetSchema,
},
UnsupportedTransportType,
UnsupportedWalletManifestVersion {
version: String,
},
WalletDirAlreadyExists {
path: String,
},
WalletSettingMismatch {
setting: String,
expected: String,
provided: String,
},
WatchOnly,
WrongPassword,
}Expand description
The error variants returned by functions.
Variants§
AllocationsAlreadyAvailable
No need to create more allocations
AssetNotFound
Requested asset was not found
BatchTransferNotFound
The requested batch transfer was not found
BitcoinNetworkMismatch
The wallet has already been loaded on a different bitcoin network
CannotChangeOnline
A wallet cannot go online twice with different data
CannotProvideOutOfBandAck
An out-of-band ACK cannot be provided for this transfer
CannotCombinePsbts
The given PSBTs cannot be combined
CannotProvideOutOfBandConsignment
An out-of-band consignment cannot be provided for this transfer
CannotAbortPendingVanillaTx
Requested pending vanilla TX cannot be aborted
CannotDeleteBatchTransfer
Requested batch transfer cannot be deleted
CannotEstimateFees
Cannot estimate fees
CannotFailBatchTransfer
Requested batch transfer cannot be failed
CannotFinalizePsbt
The given PSBT cannot be finalized
CannotUseIfaOnMainnet
Cannot use IFA schema on mainnet
Database
A database error has been encountered
EmptyFile
The provided file is empty
FailedBdkSync
Syncing BDK with the blockchain has failed
FailedBroadcast
Broadcasting the PSBT has failed
FailedIssuance
Issued RGB asset has failed the validity check
FileAlreadyExists
The file already exists
FingerprintMismatch
The master fingerprint derived from the mnemonic doesn’t match the provided one
IO
An I/O error has been encountered
Inconsistency
An inconsistency has been detected between the wallet’s internal (database) and external (BDK, RGB) data
Indexer
An error was received from the indexer
InexistentDataDir
The provided directory does not exist
InexistentWalletManifest
The wallet directory holds no manifest to load the wallet from
InsufficientAllocationSlots
There are not enough available allocation slots (UTXOs with available slots)
InsufficientAssignments
There are not enough assignments of the requested asset to fulfill the request
InsufficientBitcoins
There are not enough bitcoins to fulfill the request
Internal
An internal error has been encountered
InvalidAddress
An invalid bitcoin address has been provided
InvalidAmountZero
An invalid 0 amount has been provided
InvalidAssignment
An invalid assignment has been provided
InvalidAttachments
The provided attachments are invalid
InvalidBitcoinKeys
Keys derived from the provided data do not match
InvalidBitcoinNetwork
Invalid bitcoin network
InvalidColoringInfo
The provided coloring info is invalid
InvalidConsignment
The consignment is invalid
InvalidCosigner
The provided cosigner is invalid
InvalidDetails
The provided asset details is invalid
InvalidElectrum
Electrum server does not provide the required functionality
There are multiple electrum server variants and one with verbose support in
blockchain.transaction.get is required, see this
issue on blockstream’s electrs fork for
more info
InvalidEstimationBlocks
Trying to request fee estimation for an invalid block number, it must be between 1 and 1008
InvalidExpiration
The provided expiration is invalid
InvalidFeeRate
The provided fee rate is invalid
InvalidFilePath
The provided file path is invalid
InvalidFingerprint
The fingerprint is invalid
InvalidIndexer
The provided indexer is invalid
InvalidInvoice
The provided invoice is invalid
InvalidMnemonic
The provided mnemonic phrase is invalid
InvalidMultisigThreshold
Invalid multisig threshold
InvalidName
The provided asset name is invalid
InvalidPrecision
The provided asset precision is invalid
InvalidProxyProtocol
The provided proxy URL points to a proxy running an unsupported protocol version
InvalidPsbt
The provided PSBT is invalid
InvalidPubkey
The provided pubkey is invalid
InvalidRecipientData
The provided recipient data is invalid
InvalidRecipientID
The provided recipient ID is neither a blinded UTXO or a script
InvalidRecipientMap
The provided recipient map is invalid
InvalidRecipientNetwork
The provided recipient ID is for a different network than the wallet’s one
InvalidRejectListUrl
The provided reject list URL is invalid
InvalidTicker
The provided asset ticker is invalid
InvalidTransportEndpoint
The provided transport endpoint is invalid
InvalidTransportEndpoints
The provided transport endpoints are invalid
InvalidTxid
The provided TXID is invalid
InvalidVanillaKeychain
The provided vanilla keychain is invalid
InvalidWitnessVersion
Invalid witness version
MaxFeeExceeded
The maximum fee has been exceeded
MinFeeNotMet
The minimum fee is not met
MultisigHubService
Multisig hub service error
MultisigCannotMarkOperationProcessed
Cannot mark operation as processed
MultisigCannotRespondToOperation
Cannot respond to operation
MultisigOperationInProgress
Cannot initiate a new operation while another is in progress
MultisigOperationNotFound
The requested operation was not found
MultisigTransferStatusMismatch
Transfer status already set to a different value
MultisigUnexpectedData
Received unexpected data from hub
MultisigUserNotCosigner
The user is not a cosigner
Network
A network error occurred
NoBurnAmount
Cannot burn an asset with zero amount
NoConsignment
No consignment found
NoCosignersSupplied
No cosigners supplied
NoInflationAmounts
Cannot inflate an asset with unknown o zero amounts
NoIssuanceAmounts
Cannot issue an asset without knowing the amounts
NoKeysSupplied
No keys supplied
NoMaxAllocationsPerUtxo
Cannot allocate assets with zero allocations per UTXO
NoSupportedSchemas
Cannot create a wallet with no supported schemas
NoValidTransportEndpoint
No valid transport endpoint found
Offline
Trying to perform an online operation with offline wallet
OnlineNeeded
The Online object is needed to perform this operation
OutputBelowDustLimit
Output created is under the dust limit
Proxy
Error contacting the RGB proxy
PsbtInspection
Error during PSBT inspection
RecipientIDAlreadyUsed
Provided recipient ID has already been used for another transfer
RecipientIDDuplicated
Provided recipient map has duplicated recipient IDs
RejectListService
Error contacting the reject list service
RestClientBuild
Error building a rest client
RgbInspection
Error during RGB inspection
TooHighInflationAmounts
The inflation amount exceeds the max possible supply
TooHighIssuanceAmounts
Trying to issue too many assets
TooManyCosigners
Provided too many cosigners
TooManySignaturesInPsbt
PSBT has too many signatures
UnknownRgbSchema
The detected RGB schema is unknown
UnknownTransfer
The detected transfer is unknown
UnsupportedBackupVersion
The backup version is not supported
UnsupportedBurn
The schema doesn’t support burn transitions
Fields
asset_schema: AssetSchemaAsset schema
UnsupportedInflation
The schema doesn’t support inflate transitions
Fields
asset_schema: AssetSchemaAsset schema
UnsupportedLayer1
The given layer 1 is not supported
UnsupportedSchema
The given schema is not supported
Fields
asset_schema: AssetSchemaAsset schema
UnsupportedTransportType
The given transport type is not supported
UnsupportedWalletManifestVersion
The wallet manifest version is not supported
WalletDirAlreadyExists
The specified wallet directory already exists
WalletSettingMismatch
A wallet setting fixed when the wallet was created has been given a different value
Fields
WatchOnly
The requested operation cannot be processed by a watch-only wallet
WrongPassword
The provided password is incorrect
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<BuilderError> for Error
impl From<BuilderError> for Error
Source§fn from(e: BuilderError) -> Self
fn from(e: BuilderError) -> Self
Source§impl From<CreateWithPersistError<FileStoreError>> for Error
impl From<CreateWithPersistError<FileStoreError>> for Error
Source§fn from(e: CreateWithPersistError<FileStoreError>) -> Self
fn from(e: CreateWithPersistError<FileStoreError>) -> Self
Source§impl From<FileStoreError> for Error
impl From<FileStoreError> for Error
Source§fn from(e: FileStoreError) -> Self
fn from(e: FileStoreError) -> Self
Source§impl From<LoadWithPersistError<FileStoreError>> for Error
impl From<LoadWithPersistError<FileStoreError>> for Error
Source§fn from(e: LoadWithPersistError<FileStoreError>) -> Self
fn from(e: LoadWithPersistError<FileStoreError>) -> Self
Source§impl From<PsbtParseError> for Error
impl From<PsbtParseError> for Error
Source§fn from(e: PsbtParseError) -> Self
fn from(e: PsbtParseError) -> Self
Source§impl From<StoreErrorWithDump<ChangeSet>> for Error
impl From<StoreErrorWithDump<ChangeSet>> for Error
Source§fn from(e: StoreErrorWithDump<ChangeSet>) -> Self
fn from(e: StoreErrorWithDump<ChangeSet>) -> Self
Source§impl From<TransportParseError> for Error
impl From<TransportParseError> for Error
Source§fn from(e: TransportParseError) -> Self
fn from(e: TransportParseError) -> Self
impl StructuralPartialEq for Error
Auto Trait Implementations§
impl Freeze for Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more