NEARHistoricalTransaction
SIP Protocol API Reference v0.12.0
SIP Protocol API Reference / NEARHistoricalTransaction
Interface: NEARHistoricalTransaction
Section titled “Interface: NEARHistoricalTransaction”Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19206
A historical transaction with privacy metadata
Properties
Section titled “Properties”hash:
string
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19208
Unique transaction hash
timestamp
Section titled “timestamp”timestamp:
number
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19210
Transaction timestamp (milliseconds since epoch)
blockHeight
Section titled “blockHeight”blockHeight:
number
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19212
Block height
type:
NEARTransactionType
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19214
Transaction type
stealthAddress
Section titled “stealthAddress”stealthAddress:
string
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19216
Stealth address (implicit account ID)
stealthPublicKey
Section titled “stealthPublicKey”stealthPublicKey:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19218
Stealth public key (hex)
ephemeralPublicKey
Section titled “ephemeralPublicKey”ephemeralPublicKey:
`0x${string}`
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19220
Ephemeral public key from sender (hex)
viewTag
Section titled “viewTag”viewTag:
number
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19222
View tag for efficient scanning
amount
Section titled “amount”amount:
string
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19224
Amount in smallest units (yoctoNEAR or token units)
amountFormatted
Section titled “amountFormatted”amountFormatted:
string
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19226
Human-readable amount (with decimals applied)
token:
string
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19228
Token symbol or ‘NEAR’
tokenContract
Section titled “tokenContract”tokenContract:
string|null
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19230
Token contract address (null for native NEAR)
decimals
Section titled “decimals”decimals:
number
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19232
Token decimals
privacyLevel
Section titled “privacyLevel”privacyLevel:
NEARHistoryPrivacyLevel
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19234
Privacy level used
amountRevealed
Section titled “amountRevealed”amountRevealed:
boolean
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19236
Whether the amount was revealed via viewing key
sender?
Section titled “sender?”
optionalsender?:string
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19238
Sender account (if known)
receiver?
Section titled “receiver?”
optionalreceiver?:string
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19240
Receiver account (if known)
optionalfee?:string
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19242
Transaction fee in yoctoNEAR
explorerUrl
Section titled “explorerUrl”explorerUrl:
string
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19244
Block explorer URL
recipientLabel?
Section titled “recipientLabel?”
optionalrecipientLabel?:string
Defined in: @sip-protocol/sdk/dist/index-rqQpCeVM.d.ts:19246
Label for this recipient (if multiple viewing keys)