Skip to content

issue ​

This action issues to to account a quantity of tokens. to token balance will be opened if it does not exist and eosio.token will pay for RAM usage.

  • Parameters
FieldsTypeDescription
toeosio::nameThe account to issue tokens to, it must be the same as the issuer
quantityeosio::assetThe amount of tokens to be issued
memostringThe memo string to accompany the transaction

Required Permissions: issuer

  • cleos Example
shell
cleos push action eosio.token issue '["eosio", "100.00000000 UOS", "init"]' -p eosio
  • eos-js Example
typescript
(async () => {
    const result = await api.transact(
        {
            actions: [
                {
                    account: 'eosio.token',
                    name: 'issue',
                    authorization: [
                        {
                            actor: 'eosio',
                            permission: 'active',
                        },
                    ],
                    data: {
                        to: 'eosio',
                        quantity: '100.00000000 UOS',
                        memo: 'init',
                    },
                },
            ],
        },
        {
            blocksBehind: 3,
            expireSeconds: 30,
        }
    );
})();