Blockchain.GetAsset Method (byte[])
Returns an asset on the blockchain given an asset ID.
Namespace: Neo.SmartContract.Framework.Services.Neo
Assembly: Neo.SmartContract.Framework
Syntax
Parameters: Asset ID as a byte array of length 32.
Return Value: Asset .
Example
The asset ID can be obtained in advance and passed in as a parameter into smart contracts. The following uses the SDK to covert the hexstring into a byte array.