Community modules are developed and maintained independently by third-party contributors.
Tether and the WDK Team do not endorse or assume responsibility for their code, security, or maintenance. Use your own judgment and proceed at your own risk.
Local RGB state path. Treat it as operationally required and persistent.
indexerUrl
Optional
Electrs-compatible indexer endpoint.
transportEndpoint
Optional
RGB consignment transport endpoint.
keys
Internal
Generated by WalletManagerRgb; applications normally do not set it.
transferMaxFee
Not effective through the manager path
Declared on the config/account, but WalletManagerRgb.getAccount() does not forward it to the account in v2.0.3. Enforce a fee limit in application code after quoting.
The generated RgbWalletConfig TypeScript alias exposes only network and keys, although the released runtime and JSDoc accept dataDir, indexerUrl, transportEndpoint, and transferMaxFee. JavaScript can pass the operational fields; TypeScript consumers may need a local, release-scoped augmentation until the package declarations are corrected.
Low-level factory used by WalletManagerRgb.getAccount(). It requires config.network and generated config.keys, and accepts dataDir, indexerUrl, and transportEndpoint. Applications should normally use manager.getAccount(0) so the manager derives the keys and caches the account.
WalletAccountRgb.fromBackup(seed, config)
Promise<WalletAccountRgb>
Low-level restore factory used by WalletManagerRgb.restoreAccountFromBackup(). It requires config.network, generated config.keys, backupFilePath, password, and dataDir; it restores before opening the account. Prefer the manager method so keys are derived and the restored account is cached at index 0.
Both declarations make config optional, but the v2.0.3 runtime throws when these required fields are absent.
Advanced escape hatch; its API and lifecycle are maintained by @utexo/rgb-sdk.
listAssets()
ListAssets[]
Current asset inventory.
issueAssetNia({ticker, name, amounts, precision})
IssueAssetNIA
Issues a Non-Inflatable Asset. Other issuance schemas are not declared by this release.
receiveAsset({assetId?, amount, witness})
InvoiceReceiveData
Creates a witness invoice when witness is true, otherwise a blind invoice.
sendBegin(options)
string
Creates a base64 PSBT for an RGB send.
signPsbt(psbt)
Promise<string>
Signs a base64 PSBT.
sendEnd({signedPsbt})
SendResult
Finalizes and broadcasts the RGB send.
createUtxos(options)
Promise<number>
Combined create/sign/finalize flow.
createUtxosBegin(options)
string
Creates a UTXO-creation PSBT.
createUtxosEnd({signedPsbt})
number
Finalizes UTXO creation.
listUnspents()
Unspent[]
Current RGB wallet UTXOs.
listTransactions()
RgbTransactionReceipt[]
Bitcoin transaction records.
listTransfers(assetId?)
RgbTransfer[]
Native transfer list with optional asset filter.
failTransfers(request)
boolean
Forwards transfer-failure handling to the RGB SDK. The v2.0.3 declaration and JSDoc disagree on the parameter name/type; inspect the matching SDK before calling it.
Low-level account restore. Prefer the manager restore flow before opening the destination.
refreshWallet()
void
Refreshes RGB transfer state.
registerWallet()
Promise<{address, btcBalance}>
Registers the wallet and returns its address and Bitcoin balance.
syncWallet()
void
Synchronizes with the Bitcoin chain.
Version 2.0.3 has a declaration/runtime mismatch for sendEnd(): the published declaration requires signed_psbt, while the runtime reads signedPsbt. Pass the runtime-correct camel-case field and use a narrow type assertion until the upstream declaration is corrected:
const request = { signedPsbt } as unknown as Parameters<typeof account.sendEnd>[0]const result = account.sendEnd(request)