Types

All shared TypeScript interfaces and types used across @bsv/simple.

Source: src/core/types.ts

Common

Network

type Network = 'main' | 'testnet'

Configuration

WalletDefaults

interface WalletDefaults {
  network: Network
  description: string
  outputDescription: string
  tokenBasket: string
  tokenProtocolID: [SecurityLevel, string]
  tokenKeyID: string
  messageBoxHost: string
  registryUrl?: string
}

Default values:

Field
Default

network

'main'

description

'BSV-Simplify transaction'

outputDescription

'BSV-Simplify output'

tokenBasket

'tokens'

tokenProtocolID

[0, 'token']

tokenKeyID

'1'

messageBoxHost

'https://messagebox.babbage.systems'

registryUrl

undefined

Wallet Status

WalletStatus

WalletInfo

Transaction Results

TransactionResult

OutputInfo

SendResult

SendOutputDetail

Payment Types

PaymentOptions

SendOptions

SendOutputSpec

Output routing rules:

to

data

Result

Yes

No

P2PKH

No

Yes

OP_RETURN

Yes

Yes

PushDrop

Derivation Types

DerivationInfo

PaymentDerivation

Token Types

TokenOptions

TokenResult

TokenDetail

SendTokenOptions

RedeemTokenOptions

Inscription Types

InscriptionType

InscriptionOptions

InscriptionResult

MessageBox Types

MessageBoxConfig

Certification Types

CertifierConfig

CertificateData

Server Wallet Types

ServerWalletConfig

PaymentRequest

IncomingPayment

Overlay Types

OverlayConfig

OverlayInfo

OverlayBroadcastResult

OverlayOutput

DID Types

DIDDocument

DIDVerificationMethod

DIDParseResult

Credential Types

CredentialFieldType

CredentialFieldSchema

CredentialSchemaConfig

CredentialIssuerConfig

VerifiableCredential

VerifiablePresentation

VerificationResult

RevocationRecord

RevocationStore

Last updated