SecretNET.Token Namespace

Snip20Querier..::..GetTokenInfo Method

Gets the token information (This query need not be authenticated). Returns the token info of the contract. The response MUST contain: token name, token symbol, and the number of decimals the token uses. The response MAY additionally contain the total-supply of tokens. This is to enable Layer-2 tokens which want to hide the amounts converted as well.

Namespace:  SecretNET.Token
Assembly:  SecretNET.Token (in SecretNET.Token.dll)

Syntax


public Task<SecretQueryContractResult<GetTokenInfoResponse>> GetTokenInfo(
	string contractAddress,
	Nullable<string> codeHash
)
Public Function GetTokenInfo ( _
	contractAddress As String, _
	codeHash As Nullable(Of String) _
) As Task(Of SecretQueryContractResult(Of GetTokenInfoResponse))
public:
Task<SecretQueryContractResult<GetTokenInfoResponse^>^>^ GetTokenInfo(
	String^ contractAddress, 
	Nullable<String^> codeHash
)

Parameters

contractAddress
Type: String
The contract address.
codeHash
Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.

Return Value

SecretQueryContractResult<GetTokenInfoResponse>.