<p>I assume you are trying to use the <a href="https://bitcoincore.org/en/doc/28.0.0/rpc/wallet/importmulti/" rel="nofollow noreferrer"><code>importmulti</code></a> remote procedure call (RPC). It looks like you provided something in the <code>pubkeys</code> key of the JSON array that did not adhere to the expected length of a public key.</p>

CC BY-SA 4.0
2024-11-22T13:29:30.130Z
2024-11-22T13:29:30.130Z
Murch
<p>importmulti</p>
<pre><code>   &quot;success&quot;: false,
    &quot;error&quot;: {
      &quot;code&quot;: -5,
      &quot;message&quot;: &quot;Pubkey \&quot;xxx\&quot; must have a length of either 33 or 65 bytes&quot;
    }
</code></pre>
<p>what its this</p>

CC BY-SA 4.0
2024-11-30T11:21:59.763Z
What do you want to ask exactly? Where is this code snippet from? People might not be in the same situation as you are and thus not understand what you are talking about.
TomS
<import>
pubkey 33 or 65 byte
user161983
# pubkey 33 or 65 byte

(Asked by: username_0 on 2024-11-22)

importmulti

```
   "success": false,
    "error": {
      "code": -5,
      "message": "Pubkey \"xxx\" must have a length of either 33 or 65 bytes"
    }

```

what its this

**Tags:** import

> **Comments:**
> **username_1**: What do you want to ask exactly? Where is this code snippet from? People might not be in the same situation as you are and thus not understand what you are talking about.  

---

## 1 answers

### Answer by username_2 on 2024-11-22. Score: 2

I assume you are trying to use the [`importmulti`](https://bitcoincore.org/en/doc/28.0.0/rpc/wallet/importmulti/) remote procedure call (RPC). It looks like you provided something in the `pubkeys` key of the JSON array that did not adhere to the expected length of a public key.


---

