# Native U256 in Daml: 256-bit integers in contracts and the Ledger API (Dev Fund PR #903)

**URL:** <https://forum.canton.network/t/native-u256-in-daml-256-bit-integers-in-contracts-and-the-ledger-api-dev-fund-pr-903/9599>\
**Category:** SIGs\
**Tags:** daml, canton\
**Created:** [December 2, 2026, 9:32am UTC](https://forum.canton.network/t/native-u256-in-daml-256-bit-integers-in-contracts-and-the-ledger-api-dev-fund-pr-903/9599 "2026-12-02T09:32:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marijamijailovic](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/marijamijailovic/32/7957_2.png) [@marijamijailovic](https://forum.canton.network/u/marijamijailovic)\
**Post date:** [December 2, 2026, 9:32am UTC](https://forum.canton.network/t/native-u256-in-daml-256-bit-integers-in-contracts-and-the-ledger-api-dev-fund-pr-903/9599/1 "2026-12-02T09:32:50Z")

</div>

Hi everyone,

Daml can’t hold a 256-bit number today. The widest integer is `Numeric`, at 38 digits, so EVM-sized amounts like token balances don’t fit. We’d like to fix that, so we opened a [Dev Fund proposal](https://github.com/walnuthq/canton-dev-fund/blob/pr/daml-u256/rfps/developer-experience-tooling-education/2026-10-Walnut-daml-u256-native-type.md) to add `U256` as a native Daml type, like `Int` and `Numeric`.

What’s in the proposal: a contract can hold a `U256` field, compute with it, and send it over the gRPC and JSON Ledger APIs. Overflow aborts the transaction instead of wrapping, like Solidity’s checked arithmetic. The first milestone is a design note on daml#22827, agreed with the Daml language team before any code is written.

PR Proposal(RFP 16): [Proposal: Daml U256 Native Type by marijamijailovic · Pull Request #903 · canton-foundation/canton-dev-fund · GitHub](https://github.com/canton-foundation/canton-dev-fund/pull/903)  
Issue: [support uint256 natively in Daml · Issue #22827 · digital-asset/daml · GitHub](https://github.com/digital-asset/daml/issues/22827)

We’d love to hear what you think, especially whether your application would use `U256` and for what.

A bit about us: we’re the [Walnut](https://walnut.dev/) team. We build debuggers, tracers, simulation tools, and compiler improvements for smart contract developers, and we built [`dpm trace`](https://docs.walnut.dev/) for Canton.

Marija,  
Senior Software Engineer  
Walnut
