# Namespace Wallet RPC calls

## **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:**

```bash
$ 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:**

```bash
$ 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:**

```bash
$ 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:**

```bash
$ 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:**

```bash
$ 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:**

```bash
$ 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"
  }
}
```
