Skip to content

rmethaddr ​

Summary ​

This action is used to unlink user ETH address.

Technical Behavior ​

The action requires that there is an authorization of the user and valid ETH address.

Action Parameters ​

Property NameC++ TypeJavaScript TypeDescription
accounteosio::nameStringThe account of user
eth_addressstd::vector<uint8_t>StringThe ETH address of user

CLI - cleos ​

bash
cleos push action ultra.avatar rmethaddr '["alice", "0x774246187e1e2205c5920898eede0945016080df"]' -p alice

Javascript - eosjs ​

js
await api.transact([
    {
        account: 'ultra.avatar',
        name: 'rmethaddr',
        authorization: [{ actor: 'alice', permission: 'active' }],
        data: {
            account: 'alice',
            eth_address: '0x774246187e1e2205c5920898eede0945016080df'
        },
    },
    {
        blocksBehind: 3,
        expireSeconds: 30,
    }
]);