Skip to content

updatemeta ​

Update token with symbol with metadata including name, icon URL, description and color.

  • Parameters
FieldsTypeDescription
symboleosio::symbolThe symbol of the token
nameeosio::nameThe name of the token
iconstringThe URL of token's icon
descriptionstringThe description of the token
coloruint32_tThe display color of the token

Required Permissions: issuer or ultra

  • cleos Example
shell
cleos push action eosio.token updatemeta '["4,META", "Meta", "http://token.icon", "Token Metadata", 0]' -p issuer
  • eos-js Example
typescript
(async () => {
    const result = await api.transact(
        {
            actions: [
                {
                    account: 'eosio.token',
                    name: 'updatemeta',
                    authorization: [
                        {
                            actor: 'issuer',
                            permission: 'active',
                        },
                    ],
                    data: {
                        symbol: '4,META',
                        name: 'Meta',
                        icon: 'http://token.icon',
                        description: 'Token Metadata',
                        color: 0,
                    },
                },
            ],
        },
        {
            blocksBehind: 3,
            expireSeconds: 30,
        }
    );
})();