Skip to content

revokepred - reset a predicate

Revokes an existing predicate of payer to no longer allow this action to be paid by them.

FieldTypeDescription
payereosio::nameThe account that setups a predicate
paid_contracteosio::nameThe contract that account will allow paying for
paid_actioneosio::nameThe action from the contract that account will allow paying for

CLI - cleos

sh
cleos push action eosio revokepred '["alice", "eosio", "buyram"]' -p alice

JavaScript - eosjs

js
await api.transact({
    actions: [
        {
            account: 'eosio',
            name: 'revokepred',
            authorization: [{ actor: 'alice', permission: 'active' }],
            data: {
                payer: 'alice',
                paid_contract: 'eosio',
                paid_action: 'buyram',
            },
        },
    ],
});