pub enum Error {
Show 58 variants
AllocationsAlreadyAvailable,
AssetNotFound {
asset_id: String,
},
BatchTransferNotFound {
txid: String,
},
CannotChangeOnline,
CannotDeleteTransfer,
CannotFailTransfer,
Electrum {
details: String,
},
FailedBdkSync {
details: String,
},
FailedBroadcast {
details: String,
},
FailedIssuance {
details: String,
},
FileAlreadyExists {
path: String,
},
IO {
details: String,
},
Inconsistency {
details: String,
},
InexistentDataDir,
InsufficientAllocationSlots,
InsufficientBitcoins {
needed: u64,
available: u64,
},
InsufficientSpendableAssets {
asset_id: String,
},
InsufficientTotalAssets {
asset_id: String,
},
Internal {
details: String,
},
InvalidAddress {
details: String,
},
InvalidAmountZero,
InvalidAssetID {
asset_id: String,
},
InvalidBitcoinKeys,
InvalidBitcoinNetwork {
network: String,
},
InvalidBlindedUTXO {
details: String,
},
InvalidRecipientID,
InvalidTransportEndpoint {
details: String,
},
InvalidTransportEndpoints {
details: String,
},
InvalidDescription {
details: String,
},
InvalidElectrum {
details: String,
},
InvalidFeeRate {
details: String,
},
InvalidFilePath {
file_path: String,
},
InvalidInvoice {
details: String,
},
InvalidInvoiceData {
details: String,
},
InvalidMnemonic {
details: String,
},
InvalidName {
details: String,
},
InvalidPrecision {
details: String,
},
InvalidPsbt {
details: String,
},
InvalidPubkey {
details: String,
},
InvalidScript {
details: String,
},
InvalidTicker {
details: String,
},
InvalidVanillaKeychain,
NoIssuanceAmounts,
NoValidTransportEndpoint,
Offline,
OutputBelowDustLimit,
Proxy {
details: String,
},
RecipientIDAlreadyUsed,
RecipientIDDuplicated,
TooHighIssuanceAmounts,
TransferNotFound {
recipient_id: String,
},
UnknownRgbInterface {
interface: String,
},
UnknownRgbSchema {
schema_id: String,
},
UnsupportedBackupVersion {
version: String,
},
UnsupportedTransportType,
UnsupportedInvoice,
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
CannotChangeOnline
A wallet cannot go online twice with different data
CannotDeleteTransfer
Requested transfer cannot be deleted
CannotFailTransfer
Requested transfer cannot be failed
Electrum
An error was received from the Electrum server
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
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
InexistentDataDir
The provided directory does not exist
InsufficientAllocationSlots
There are not enough available allocation slots (UTXOs with available slots)
InsufficientBitcoins
There are not enough bitcoins to fulfill the request
InsufficientSpendableAssets
There are not enough spendable tokens of the requested asset to fulfill the request
InsufficientTotalAssets
There are not enough total tokens of the requested asset 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
InvalidAssetID
An invalid asset ID has been provided
InvalidBitcoinKeys
Keys derived from the provided data do not match
InvalidBitcoinNetwork
Invalid bitcoin network
InvalidBlindedUTXO
The provided blinded UTXO is invalid
InvalidRecipientID
The provided recipient ID is neither a blinded UTXO or a script
InvalidTransportEndpoint
The provided transport endpoint is invalid
InvalidTransportEndpoints
The provided transport endpoints are invalid
InvalidDescription
The provided asset description is invalid
InvalidElectrum
Electrum server is for the wrong network or 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
InvalidFeeRate
The provided fee rate is invalid
InvalidFilePath
The provided file path is invalid
InvalidInvoice
The provided invoice is invalid
InvalidInvoiceData
The provided invoice data is invalid
InvalidMnemonic
The provided mnemonic phrase is invalid
InvalidName
The provided asset name is invalid
InvalidPrecision
The provided asset precision is invalid
InvalidPsbt
The provided PSBT could not be parsed
InvalidPubkey
The provided pubkey is invalid
InvalidScript
The provided script is invalid
InvalidTicker
The provided asset ticker is invalid
InvalidVanillaKeychain
The provided vanilla keychain is invalid
NoIssuanceAmounts
Cannot issue an asset without knowing the amounts
NoValidTransportEndpoint
No valid transport endpoint found
Offline
Trying to perform an online operation with offline wallet
OutputBelowDustLimit
Output created is under the dust limit
Proxy
Error contacting the RGB proxy
RecipientIDAlreadyUsed
Provided recipient ID has already been used for another transfer
RecipientIDDuplicated
Provided recipient map has duplicated recipient IDs
TooHighIssuanceAmounts
Trying to issue too many assets
TransferNotFound
The requested transfer was not found
UnknownRgbInterface
The detected RGB interface is unknown
UnknownRgbSchema
The detected RGB schema is unknown
UnsupportedBackupVersion
The backup version is not supported
UnsupportedTransportType
The given transport type is not supported
UnsupportedInvoice
The given invoice type is not supported
WatchOnly
The requested operation cannot be processed by a watch-only wallet
WrongPassword
The provided password is incorrect