Getting Started
Fundamentals
Reference
- Address
- Application Binary Interface
- Constants
- Contract
- Crypto
- Encoding
- Hash
- Other
- Providers
- Signers
- Transaction
- Utils
- EventPayload
- FetchRequest
- FetchResponse
- FixedNumber
- ActionRejectedError
- BadDataError
- BufferOverrunError
- CallExceptionError
- CancelledError
- EventEmitterable
- InsufficientFundsError
- InvalidArgumentError
- MissingArgumentError
- NetworkError
- NonceExpiredError
- NotImplementedError
- NumericFaultError
- ReplacementUnderpricedError
- ServerError
- TimeoutError
- TransactionReplacedError
- UnexpectedArgumentError
- UnknownError
- UnsupportedOperationError
- quaisError
- BigNumberish
- BytesLike
- CallExceptionAction
- CallExceptionTransaction
- CodedquaisError
- FetchGatewayFunc
- FetchGetUrlFunc
- FetchPreflightFunc
- FetchProcessFunc
- FetchRetryFunc
- FixedFormat
- GetUrlResponse
- Listener
- Numeric
- concat
- dataLength
- dataSlice
- formatQi
- formatQuai
- formatUnits
- fromTwos
- getAddressDetails
- getBigInt
- getBytes
- getBytesCopy
- getNumber
- getTxType
- getUint
- getZoneForAddress
- hexlify
- isBytesLike
- isCallException
- isError
- isHexString
- makeError
- mask
- parseQi
- parseQuai
- parseUnits
- stripZerosLeft
- toBeArray
- toBeHex
- toBigInt
- toNumber
- toQuantity
- toTwos
- uuidV4
- zeroPadBytes
- zeroPadValue
- Wallet
- Wordlists
Utils
CodedquaisError
type CodedquaisError<T>: T extends "UNKNOWN_ERROR" ? UnknownError : T extends "NOT_IMPLEMENTED" ? NotImplementedError : T extends "UNSUPPORTED_OPERATION" ? UnsupportedOperationError : T extends "NETWORK_ERROR" ? NetworkError : T extends "SERVER_ERROR" ? ServerError : T extends "TIMEOUT" ? TimeoutError : T extends "BAD_DATA" ? BadDataError : T extends "CANCELLED" ? CancelledError : T extends "BUFFER_OVERRUN" ? BufferOverrunError : T extends "NUMERIC_FAULT" ? NumericFaultError : ... extends ... ? ... : ...;
A conditional type that transforms the ErrorCode T into its quaisError type.
Type parameters
Type parameter |
---|
T |
Source
Was this page helpful?
On this page