LogoLogo
WebsiteGitHubX-Bank
  • Welcome 👋
  • API
    • Get Started
    • Blockchain
    • DPOPS
    • Namespace
    • X-Payment Twitter
  • Applications & Tools
    • Interacting with the network
    • X-Cash Wallet (CLI)
    • WXCASH
    • Export blockchain file
    • Import blockchain file
    • RPC Calls
      • xcash-wallet-rpc
        • DPoPS Wallet RPC calls
        • Namespace Wallet RPC calls
      • xcash-daemon-rpc
        • Other Daemon RPC Calls
    • Tools For Builders
  • Delegate node & staking
    • Get Started
    • Technical Design
    • Server Setup Guide
    • Node Program Installation
    • Register Delegate
    • Management & Monitoring
    • Vote & Staking
  • XCASH Namespace (in development)
    • Get Started
    • Register
    • Renew
    • Manage
    • Delegate Management
  • XCASH Turbo Tx (in development)
    • Get Started
    • Introduction
    • Send
    • Receive
  • Library
    • Yellowpaper - Hybrid Transactions
  • Archived
    • DPOPS beta V2
    • DPOPS Manual Installation
Powered by GitBook
On this page
  • vote
  • delegate_register
  • delegate_update
  • revote
  • vote status
Export as PDF
  1. Applications & Tools
  2. RPC Calls
  3. xcash-wallet-rpc

DPoPS Wallet RPC calls

This page contains every Wallet RPC calls related to DPoPS functions.

vote

Place your vote for a delegate.

Alias: vote.

Inputs:

  • delegate_data - String; Name or public address of the delegate to receive the vote.

  • amount - string; The amount or all

Outputs:

  • vote_status - string; Status of the vote call.

Example:

$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"vote","params":{"delegate_data":"DELEGATES_NAME_OR_PUBLIC_ADDRESS","amount":"all"}}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "vote_status": "success"
  }
}

delegate_register

Register a delegate.

Alias: delegateregister.

Inputs:

  • delegate_name - string; Name of the delegate to register.

  • delegate_IP_address - string; IP of the delegate to register.

Outputs:

  • delegate_register_status - string; Status of the delegate registration call.

Example:

$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"delegate_register","params":{"delegate_name":"delegate_name_1","delegate_IP_address":"delegate_IP_address_or_domain_name"}}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "delegate_register_status": "success"
  }
}

delegate_update

Update delegate information.

Alias: delegateupdate.

Inputs:

  • items - Parameters to change

    • IP_address - string; IP address of the delegate.

    • about - string; Description of the delegate.

    • website - string; website address of the delegate.

    • team - string; __

    • pool_mode - string;

    • fee_structure - string;

    • server_settings - string;

  • value - string; Value of the field to update.

Outputs:

  • delegate_update_status - string; Status of the delegate update call.

Example:

$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"delegate_update","params":{"item":"ITEM","value":"VALUE"}}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "delegate_update_status": "success"
  }
}

revote

Revote for a delegate.

Alias: revote.

Inputs:

  • amount - string; The amount or all

Outputs:

  • status - string; Status of the vote call.

Example:

$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"revote","params":{"amount":"all"}}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "status": "success"
  }
}

vote status

Get who the user has voted for

Alias: revote.

Outputs:

  • status - string; who the user has voted for.

Example:

$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"vote_status"}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "status": "success"
  }
}
Previousxcash-wallet-rpcNextNamespace Wallet RPC calls

Last updated 2 years ago