Update Metadata

Introduction

Update Metadata (updateMetadata): Update the name and symbol of a token.

Parameters

Request Parameters:

Parameter NameTypeDescription
jsonrpcstringFixed value:2.0
methodstringMethod name. Fixed value: updateMetadata
tokenstringToken address
nonceintNonce
recentCheckpointintBlock height
methodArgsarrayDynamic contract parameters (Param1: token name; Param2: token symbol)
signatureobjectSignature result

Request Example:

{
    "jsonrpc": "2.0",
    "method": "updateMetadata",
    "params": {
        "nonce": 2,
        "token": "0x...",
        "methodArgs": [
            "Updated Token Name",
            "UPD"
        ],
        "recentCheckpoint": 12347,
        "signature": {
            "r": "string",
            "s": "string",
            "v": "string"
        }
    },
    "id": 1
}

Response Parameters:

Parameter NameTypeDescription
hashstringContract call hash

Response Example:

{
    "jsonrpc": "2.0",
    "result": {
        "hash": "0x..."
    },
    "id": 1
}