const a = Uint(100n)const b = Uint(50n)// Use BigInt for operations not supported by Uintconst bigIntA = Uint.toBigInt(a)const bigIntB = Uint.toBigInt(b)// Custom operationconst result = bigIntA ** 2n + bigIntBconst resultUint = Uint(result)
const value = Uint(12345n)// BigInt not supported in JSON.stringifyconst json = JSON.stringify({ balance: Uint.toBigInt(value).toString() // Convert to string})