Links

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"
}
}