Hedera
Search…
NFT ID
The ID of a non-fungible token (NFT). The NFT ID is composed of the token ID and a serial number.
Constructor
Description
new NftId(<tokenId>,<serial>)
Initializes the NftId object
1
new NftId()
Copied!

Methods

V2
V1
Method
Type
Requirement
NftId.fromString(<id>)
String
Optional
NftId.fromBytes(<id>)
bytes []
Optional
Java
1
new NftId(new TokenId(0,0,2), 56562);
2
​
3
// v2.0.11
Copied!
JavaScript
1
new NftId(new TokenId(0,0,2), 56562);
2
​
3
// v2.0.28
Copied!
Go
1
nftId := hedera.NftID{
2
TokenID: tokenId,
3
SerialNumber: serialNum,
4
}
5
​
6
// v2.1.13
Copied!
Method
Type
Requirement
NftId.fromString(<id>)
String
Optional
Java
1
new NftId(new TokenId(0,0,2), 56562);
2
​
3
// v1.5.0
Copied!
JavaScript
1
new NftId(new TokenId(0,0,2), 56562);
2
​
3
// v1.4.10
Copied!
​
​
​
Last modified 3mo ago
Copy link
Contents
Methods