# importprivkey {disallowed} - DigiByte

#### Parameters

`privkey` - string, required

The private key (see dumpprivkey)

`label` - string, optional, default=current label if address exists, otherwise “”

An optional label

`rescan` - boolean, optional, default=true

Rescan the wallet for transactions

#### Request

```java
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \ 
--data-raw '{"jsonrpc": "2.0",
"method": "importprivkey",
"params": [null, null, null],
"id": "getblock.io"}'
```

#### Response

```java
{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}
```
