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
  • update_remote_data
  • remote_data_save_name
  • remote_data_purchase_name
  • remote_data_delegate_set_amount
  • remote_data_renewal_start
  • remote_data_renewal_end
Export as PDF
  1. Applications & Tools
  2. RPC Calls
  3. xcash-wallet-rpc

Namespace Wallet RPC calls

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

update_remote_data

Update the remote data for namespace

Alias: update_remote_data.

Inputs:

  • item - String; The item to update (website or smart_contract_hash)

  • value - String; The value

Outputs:

  • status - string; Status

Example:

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

remote_data_save_name

Saves a name for 1 hour, so one can purchase it

Alias: remote_data_save_name.

Inputs:

  • name - String; The namespace name to save

Outputs:

  • status - string; Status

Example:

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

remote_data_purchase_name

Pruchases the name once it has been saved

Alias: remote_data_purchase_name.

Inputs:

  • saddress - String; The saddress (private only address)

  • saddress_signature - String; The signature from the saddress wallet to proove access

  • paddress - String; The paddress (public only address)

  • paddress_signature - String; The signature from the paddress wallet to proove access

  • tx_hash - String; The tx to show the delegate was paid

Outputs:

  • status - string; Status

Example:

$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"remote_data_purchase_name","params":{"saddress":"XCA","saddress_signature":"XCA","paddress":"XCA","paddress_signature":"XCA","tx_hash":"0000000000000000000000000000000000000000000000000000000000000000"}}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "status": "success"
  }
}

remote_data_delegate_set_amount

Sets the amount the delegate wants to charge per namespace register or renew

Alias: _remote_data_delegate_set_amount.

Inputs:

  • amount - String; The amount in zachy's (10^6)

Outputs:

  • status - string; Status

Example:

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

remote_data_renewal_start

Starts the renewal process

Alias: _remote_data_renewal_start.

Outputs:

  • status - string; Status

Example:

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

remote_data_renewal_end

Ends the renewal process

Alias: _remote_data_renewal_end.

Inputs:

  • tx_hash - String; The tx hash that paid the delegate to renew the name

Outputs:

  • status - string; Status

Example:

$ curl -X POST http://localhost:18285/json_rpc -d '{"jsonrpc":"2.0","id":"0","method":"remote_data_renewal_end","params":{"tx_hash":"0000000000000000000000000000000000000000000000000000000000000000"}}' -H 'Content-Type: application/json'
{
  "id": "0",
  "jsonrpc": "2.0",
  "result": {
    "status": "success"
  }
}
PreviousDPoPS Wallet RPC callsNextxcash-daemon-rpc

Last updated 2 years ago