Wallet Sign Message (beta)

POST /v1/wallets/{wallet_id}/sign_message

Sign message using a managed wallet. Managed wallet means the private key is never exposed to the client and always stored encrypted in our vault. Currently, only Ethereum ETH wallet type signing is supported.

HTTP Request

POST /v1/auth/wallets/{wallet_id}/sign_message

Returns

A successful response returns a Wallet object and a signature property for the signed message.

Path parameters

  • wallet_id string Required

    Unique wallet ID of the wallet to retrieve.

application/json

Body

  • message string Required

    Message string to sign. It adds to the message prefix "\x19Ethereum Signed Message:\n" before signing, a standard in Ethereum Improvement Proposal (EIP) 191.

Responses

  • 200 application/json
    Hide response attributes Show response attributes object
    • id string
    • app_id string
    • user_id string
    • public_address string
    • wallet_type string
    • verified boolean
    • is_default boolean
    • is_read_only boolean
    • is_imported boolean
    • updated_at integer
    • created_at integer
POST /v1/wallets/{wallet_id}/sign_message
curl \
 --request POST 'https://api.streambird.io/v1/wallets/{wallet_id}/sign_message' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"message":"test"}'
Request example
{
  "message": "test"
}
Response examples (200)
{
  "wallet": {
    "id": "wallet_26l6hdwAXQr0y573AhQTXNDkyqK",
    "app_id": "app_25ldv51seNohTaYRsxdfoxMlAa2",
    "user_id": "user_26l6ha8syVN8oqmaHaFShTxZ5RC",
    "verified": true,
    "created_at": 1647985945,
    "is_default": true,
    "updated_at": 1647985945,
    "is_imported": false,
    "wallet_type": "ETH",
    "is_read_only": false,
    "public_address": "0xb6acedc0cdcab7a4bb6c236976bb7df63bbcd567"
  },
  "signature": "0xc8723cfad978035ad3b960beade5237477aa91a9b01ba238d859e2a6e0fbded322e4732d3252afc4f7bec0018cc7bdddfe90547cc4fa985a400744315316198e01",
  "wallet_id": "wallet_26l6hdwAXQr0y573AhQTXNDkyqK"
}