Coder Social home page Coder Social logo

eos-proxyinfo's Introduction

EOS Proxy Info

This is an on-chain EOS contract (or dApp) that allows EOS proxy accounts to register additional information about themselves, such as name and website. This information is published on the EOS blockchain and freely available to be republished. An example website that uses this information is the Aloha EOS Proxy Research Portal.

The contract is published on the regproxyinfo account on the EOS mainnet.

GUI Usage

For a GUI tool that interacts with this dApp try one of the following:

Command Line Usage

First thing, you should already have an EOS proxy account that you have run regproxy on. If you haven't got that far, check out EOS Proxy Voting: Everything You Need To Know.

Set

The set action inserts or updates information about your account. The paramaters are:

  • proxy (required): Your EOS account name.
  • name (required, 64 char max): The full name of your proxy.
  • slogan (optional, 64 char max): A short description of your proxy intended to be shown in listings.
  • philosophy (optional, 1024 char max): Description of proxy's voting philosophy.
  • background (optional, 1024 char max): Background information / who is the proxy?
  • website (optional, 256 char max): An http or https URL to a website, Reddit post, etc. with more information about your proxy.
  • logo_256 (optional, 256 char max): An http or https URL to an image with the size of 256 x 256 px.
  • telegram (optional, 64 char max): Telegram account name.
  • steemit (optional, 64 char max): Steemit account name.
  • twitter (optional, 64 char max): Twitter account name.
  • wechat (optional, 64 char max): WeChat account name.

Note: This action will consume a little bit of your RAM for the storage. How much depends on the length of your data, but probably around 1kb.

cleos example:

cleos -u https://api.main.alohaeos.com push action regproxyinfo set '["myproxyaccnt","My Proxy Name","For a better world","Voting philosophy","","https://my.proxy.website/","","","","",""]' -p myproxyaccnt

Remove

The remove action will remove all information about your account. The parameters are:

  • proxy: Your EOS account name.

cleos example:

cleos -u https://api.main.alohaeos.com push action regproxyinfo remove '["myproxyaccnt"]' -p myproxyaccnt

Getting the Data

All data is stored in the proxies table on the regproxyinfo account.

cleos example:

cleos -u https://api.main.alohaeos.com get table regproxyinfo regproxyinfo proxies
{
  "rows": [{
      "owner": "myproxyaccnt",
      "name": "My Proxy Name",
      "website": "https://my.proxy.website/"
    }
  ],
  "more": false
}

curl example:

curl -d '{"json":true,"code":"regproxyinfo","scope":"regproxyinfo","table":"proxies","limit":100}' -s 'https://api.main.alohaeos.com/v1/chain/get_table_rows' | jq
{
  "rows": [{
      "owner": "myproxyaccnt",
      "name": "My Proxy Name",
      "website": "https://my.proxy.website/"
    }
  ],
  "more": false
}

Feedback

Questions or comments? Swing by the EOS VOTER PROXIES channel on Telegram.

Acknowledgements

These are the people or teams that helped contribute to this project (in alphabetical order):

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.