NEP141TokenCommitment
SIP Protocol API Reference v0.15.1
SIP Protocol API Reference / NEP141TokenCommitment
Interface: NEP141TokenCommitment
Section titled “Interface: NEP141TokenCommitment”Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:18663
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-GLbkPPho.d.ts:18644
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-GLbkPPho.d.ts:18649
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-GLbkPPho.d.ts:18667
NEP-141 token contract address
decimals
Section titled “decimals”decimals:
number
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:18671
Token decimals (e.g., 24 for NEAR, 6 for USDC)
amountRaw?
Section titled “amountRaw?”
optionalamountRaw?:bigint
Defined in: @sip-protocol/sdk/dist/index-GLbkPPho.d.ts:18675
Original amount in smallest units (u128)