Skip to main content
POST
/
v1
/
wallets
/
{wallet_id}
/
sign_message
Ethereum Wallet Sign Message (beta)
curl --request POST \
  --url https://api.streambird.io/v1/wallets/{wallet_id}/sign_message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "message": "test"
}'
{
  "wallet_id": "wallet_26l6hdwAXQr0y573AhQTXNDkyqK",
  "wallet": {
    "id": "wallet_26l6hdwAXQr0y573AhQTXNDkyqK",
    "app_id": "app_25ldv51seNohTaYRsxdfoxMlAa2",
    "user_id": "user_26l6ha8syVN8oqmaHaFShTxZ5RC",
    "public_address": "0xb6acedc0cdcab7a4bb6c236976bb7df63bbcd567",
    "wallet_type": "ethereum",
    "verified": true,
    "is_default": true,
    "is_read_only": false,
    "is_imported": false,
    "updated_at": 1647985945,
    "created_at": 1647985945
  },
  "signature": "0xc8723cfad978035ad3b960beade5237477aa91a9b01ba238d859e2a6e0fbded322e4732d3252afc4f7bec0018cc7bdddfe90547cc4fa985a400744315316198e01"
}

Authorizations

Authorization
string
header
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}

Authenticated Request

curl \
-X GET https://api.streambird.io/v1/auth/users/user_24wFP9pDa9YiMJLun94iKykoZs2 \
-H "Authorization: Bearer sk_test_pRqweh3wvWmJAAVYv7Z0T5iPLzFM4ql0muoyQcjOxGeN3p1r"

Path Parameters

wallet_id
string
required

Unique wallet ID of the wallet to retrieve.

Body

application/json
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.

Response

200 - application/json

Wallet Sign Message (beta) response

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