Update Metadata
Introduction
Update Metadata (updateMetadata): Update the name and symbol of a token.
Parameters
Request Parameters:
| Parameter Name | Type | Description |
|---|---|---|
| jsonrpc | string | Fixed value:2.0 |
| method | string | Method name. Fixed value: updateMetadata |
| token | string | Token address |
| nonce | int | Nonce |
| recentCheckpoint | int | Block height |
| methodArgs | array | Dynamic contract parameters (Param1: token name; Param2: token symbol) |
| signature | object | Signature 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 Name | Type | Description |
|---|---|---|
| hash | string | Contract call hash |
Response Example:
{
"jsonrpc": "2.0",
"result": {
"hash": "0x..."
},
"id": 1
}Updated 3 months ago
