Set currency symbol

Changes the current currency symbol.


Call URL

/currencies/(currencyAddress)/symbol

Type : PUT


Call request header parameters

Field Type Required/Optional Description Accepted values
wallet-address string Required The sender's wallet address. Any valid wallet address
wallet-key string Required The key of the sender's wallet. Any valid wallet key that unlocks the sender's wallet

Call request URL parameters

Field Type Required/Optional Description Accepted values
currencyAddress string Required The address of the involved currency. Any valid currency address

Call request body parameters

Field Type Required/Optional Description Accepted values
newCurrencySymbol string Required The new symbol for the currency token. Any string

Sample Call Request

https://api.tetrium.io/tokenize/currencies/0x29341b674091d600c227B137a457b0573515A7A8/symbol

Parameters:

{
   "newCurrencySymbol":"SMV"
}

Call responses

Success response

Field Type Description Respond Values
status string Status of the API call. "success"
message string Information about the status. "set-currency-symbol initiated"
transactionHash string The hash of the transaction. To be used to verify the transaction's sealing status. Any string

Error response

Field Type Description Respond Values
status string Status of the API call. "fail"
error string Information about the error. (See below)

Information contained in error:

Error Messages Description
"missing newCurrencySymbol" newCurrencySymbol was not provided as a parameter in the API call body.
"invalid newCurrencySymbol" newCurrencySymbol provided was not in the correct format.

For any other errors, please refer to List of Common Error Messages

Sample Call Response

{
   "status":"success",
   "message":"set-currency-symbol initiated",
   "transactionHash":"0x5d3c637cc45144d04041b8ad8e2fea93b98f934ebd0e429e32d59396df4f14ac"
}

results matching ""

    No results matching ""