NEP141TokenCommitment
SIP Protocol API Reference v0.7.4
SIP Protocol API Reference / NEP141TokenCommitment
Interface: NEP141TokenCommitment
Section titled “Interface: NEP141TokenCommitment”Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18327
NEP-141 token commitment with amount and token info
Extends
Section titled “Extends”Properties
Section titled “Properties”commitment
Section titled “commitment”commitment:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18308
The commitment point C = vG + rH (compressed ed25519, 32 bytes)
Inherited from
Section titled “Inherited from”NEARPedersenCommitment.commitment
blinding
Section titled “blinding”blinding:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18313
The blinding factor r (32 bytes, secret) Required to open/verify the commitment
Inherited from
Section titled “Inherited from”NEARPedersenCommitment.blinding
tokenContract
Section titled “tokenContract”tokenContract:
string
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18331
NEP-141 token contract address
decimals
Section titled “decimals”decimals:
number
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18335
Token decimals (e.g., 24 for NEAR, 6 for USDC)
amountRaw?
Section titled “amountRaw?”
optionalamountRaw:bigint
Defined in: @sip-protocol/sdk/dist/index-DXh2IGkz.d.ts:18339
Original amount in smallest units (u128)