Public key in a binary format with base58 string serialization with human-readable curve.
The key types currently supported are secp256k1 and ed25519.
Ed25519 public keys accepted are 32 bytes and secp256k1 keys are the uncompressed 64 format.
RemainingAllowance__Result
RemainingAllowance__Result:u16 | null
RemoveWhitelistAccount__Result
RemoveWhitelistAccount__Result:u16 | null
StartPresale__Result
StartPresale__Result:boolean
StartSale__Result
StartSale__Result:boolean
StorageUsage
StorageUsage:u64
StorageUsage is used to count the amount of storage used by a contract.
Timestamp
Timestamp:u64
Raw type for timestamp in nanoseconds
TimestampMs
TimestampMs:u64
milliseconds elapsed since the UNIX epoch
TokenId
TokenId:string
Note that token IDs for NFTs are strings on NEAR. It's still fine to use autoincrementing numbers as unique IDs if desired, but they should be stringified. This is to make IDs more future-proof as chain-agnostic conventions and standards arise, and allows for more flexibility with considerations like bridging NFTs across chains, etc.
2
64
^(([a-z\d]+[-])[a-z\d]+.)([a-z\d]+[-])*[a-z\d]+$