Skip to main content
POST
https://api.moonkey.fun
/
v1
/
wallets
/
{wallet_id}
/
rpc
curl -X POST https://api.moonkey.fun/v1/wallets/wallet_36kLvUkIIvyQPbdVr7Ackvh726L/rpc \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "eth_signTransaction",
    "params": {
      "transaction": {
        "to": "0xE9534C9fAF3cDBc636c25E1981A80EfaE03f187a",
        "value": "0x38d7ea4c68000",
        "nonce": "0x05",
        "gasPrice": "0xdf8475800",
        "gas": "0x5208",
        "chainId": "0x5"
      }
    }
  }'
{
  "method": "eth_signTransaction",
  "data": {
    "encoding": "rlp",
    "signed_transaction": "0xf86b05850df847580082520894e9534c9faf3cdbc636c25e1981a80efae03f187a87038d7ea4c68000802da086b0ec61705e3b7c583c09704317733a17dcb8a8101dd26c393a553214bede0da039e23209b1af42aba9e82d5f3601d0f1ba6155cb46004e968205cce54c6a241b"
  }
}

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 ID of the wallet used to sign the transaction.

Request Body

The request uses an Ethereum JSON-RPC–compatible payload.
method
string
required
Must be eth_signTransaction.
params
object
required
Parameters for the RPC call.

Response

method
string
RPC method that was executed (eth_signTransaction).
data
object
Signed transaction data.
Private keys are never exposed or returned.
curl -X POST https://api.moonkey.fun/v1/wallets/wallet_36kLvUkIIvyQPbdVr7Ackvh726L/rpc \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "method": "eth_signTransaction",
    "params": {
      "transaction": {
        "to": "0xE9534C9fAF3cDBc636c25E1981A80EfaE03f187a",
        "value": "0x38d7ea4c68000",
        "nonce": "0x05",
        "gasPrice": "0xdf8475800",
        "gas": "0x5208",
        "chainId": "0x5"
      }
    }
  }'
{
  "method": "eth_signTransaction",
  "data": {
    "encoding": "rlp",
    "signed_transaction": "0xf86b05850df847580082520894e9534c9faf3cdbc636c25e1981a80efae03f187a87038d7ea4c68000802da086b0ec61705e3b7c583c09704317733a17dcb8a8101dd26c393a553214bede0da039e23209b1af42aba9e82d5f3601d0f1ba6155cb46004e968205cce54c6a241b"
  }
}