Skip to content


Registers a new exchange in the oracle contract.

Technical Behavior

Adds a new exchange to the feeddata table and initializes the cache to write conversion rates into during pushrate.

Will also update oraclestate singleton to have new total number of registered conversion rate sources.

Total number of registered exchanges is limited to a 100 to prevent accidentally causing overflow during oracle moving average calculations.

Action Parameters

exchangenameName of the new exchange to register

Required Permissions:

CLI - cleos

cleos push action regexchange '["ugateio"]' -p

JavaScript - eosjs

(async () => {
    const result = await api.transact(
            actions: [
                    account: '',
                    name: 'regexchange',
                    authorization: [
                            actor: '',
                            permission: 'active',
                    data: {
                        exchange: 'ugateio'
            blocksBehind: 3,
            expireSeconds: 30,