Skip to main content
POST
https://api.moonkey.fun
/
v1
/
wallets
/
{wallet_id}
/
rpc
curl -X POST https://api.moonkey.fun/v1/wallets/wallet_35ptpWOqO2SnacamII91ecIzmKT/rpc \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "sol_signMessage",
    "params": {
      "message": "test"
    }
  }'
{
  "method": "sol_signMessage",
  "data": {
    "signature": "53qEX5SmUJkmvLjTMvi45M4otThvZfd4QJiXa998eRJBqxGuvg9tHTqYCaBtvfLd4VRbpes5ukPNsrdC1Yz7ZMeU",
    "encoding": "base58"
  }
}

Authorizations

Authorization
string
required
Auth Platform API includes all the Auth related features. All Users, Phone Numbers, Emails, and OTPs are associated with an App as the container.Endpoints only accept App's Secret API keys other than certain endpoints that are used client side or via SDK that accept the public_token.

Authentication using App Api Key

Header:Authorization: Bearer {api_key}

Path Parameters

wallet_id
string
required
Unique wallet ID of the wallet used to sign the message.

Request Body

method
string
required
Must be sol_signMessage.
params
object
required
Parameters for the RPC call.

Response

method
string
RPC method that was executed (sol_signMessage).
data
object
Signed message data.
  • If encoding is omitted, the message is interpreted as plaintext (utf-8).
  • If encoding is omitted, the response encoding defaults to base58.
  • If encoding is provided, the response uses the same encoding as the request but will be base64 or base58.
  • No private key material is ever exposed or returned.
curl -X POST https://api.moonkey.fun/v1/wallets/wallet_35ptpWOqO2SnacamII91ecIzmKT/rpc \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "sol_signMessage",
    "params": {
      "message": "test"
    }
  }'
{
  "method": "sol_signMessage",
  "data": {
    "signature": "53qEX5SmUJkmvLjTMvi45M4otThvZfd4QJiXa998eRJBqxGuvg9tHTqYCaBtvfLd4VRbpes5ukPNsrdC1Yz7ZMeU",
    "encoding": "base58"
  }
}