CanDoItAll.Ledger.BusinessObjects 0.1.18

dotnet add package CanDoItAll.Ledger.BusinessObjects --version 0.1.18
                    
NuGet\Install-Package CanDoItAll.Ledger.BusinessObjects -Version 0.1.18
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="CanDoItAll.Ledger.BusinessObjects" Version="0.1.18" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CanDoItAll.Ledger.BusinessObjects" Version="0.1.18" />
                    
Directory.Packages.props
<PackageReference Include="CanDoItAll.Ledger.BusinessObjects" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CanDoItAll.Ledger.BusinessObjects --version 0.1.18
                    
#r "nuget: CanDoItAll.Ledger.BusinessObjects, 0.1.18"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package CanDoItAll.Ledger.BusinessObjects@0.1.18
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CanDoItAll.Ledger.BusinessObjects&version=0.1.18
                    
Install as a Cake Addin
#tool nuget:?package=CanDoItAll.Ledger.BusinessObjects&version=0.1.18
                    
Install as a Cake Tool

CanDoItAll.Ledger.BusinessObjects

Account and business-object services for applications built on CanDoItAll Ledger.

Use this package when an application needs higher-level account workflows, encrypted account backups, transaction construction and signing, typed business objects, ownership and commerce transitions, permission rules, or secure messages. A submitted transaction becomes authoritative only after a Ledger node or in-process engine accepts it.

Requirements

  • .NET 10
  • An ILedgerGateway and ILedgerReadClient for live account operations

Install

dotnet add package CanDoItAll.Ledger.BusinessObjects

Create A Business-Object Payload

using CanDoItAll.Ledger.BusinessObjects;

BusinessObjectFamilyDefinition definition =
    BusinessObjectFamilyCatalog.FindOrDefault("invoice");

BusinessObjectMediaPayload payload = BusinessObjectPayloadBuilder.CreatePayload(
    definition,
    name: "INV-2026-001",
    description: "Agent infrastructure expense",
    text: "Approved hosting and model usage",
    tags: "#expense #agent",
    dataItems: []);

string stateJson = BusinessObjectPayloadBuilder.Serialize(payload);

Register Account Services

using CanDoItAll.Ledger.BusinessObjects;

builder.Services.AddBusinessObjectAccountLayer();

This registers account setup, vault, backup, signing, casting, and transaction building services. It deliberately does not choose a remote or in-process ledger. For a remote node, use CanDoItAll.Ledger.Sdk and AddLedgerSdkWithNodeDriver(...); that composition provides the gateway and read client.

AddBusinessObjectLedgerLayer() selects InProcessLedgerGateway. The host must also register the complete engine, store, cryptography, clock, and policy dependencies required by that gateway.

Server applications that need content-addressed attachments can call AddBusinessObjectIpfsStorage(apiBaseUri, gatewayBaseUri). Do not call this server-side registration from WebAssembly applications. Register a browser-safe HTTP upload service or driver instead.

Security And Data Notes

  • Protect account private keys and encrypted backups as sensitive material.
  • Always password-protect portable account backups. An export without a password can contain unencrypted private-key material.
  • The default in-memory vault store is disposable and is not a custody or recovery system.
  • Transaction builders prepare signed intent; node validation and confirmation determine acceptance.
  • Public business-object identity is derived from its confirmed output outpoint. Do not substitute an internal lineage key as the public ID.

See the SDK, project documentation, and AccountApp example.

This package is part of the CanDoItAll ecosystem and uses the repository's MIT License.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on CanDoItAll.Ledger.BusinessObjects:

Package Downloads
CanDoItAll.Ledger.Rules.NCalc

Invariant-culture NCalc adapter for CanDoItAll Ledger account-rule expressions.

CanDoItAll.Ledger.Sdk

Typed node client and dependency-injection integration for CanDoItAll Ledger account and transaction workflows.

CanDoItAll.Ledger.Components

Reusable Blazor components and workspaces for ledger accounts, transactions, business objects, analytics, and node operations.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.18 39 7/31/2026
0.1.17 47 7/30/2026