Skip to main content
POST
/
v1
/
wallets
/
{wallet_id}
/
sign_transaction
Ethereum Wallet Sign Transaction (beta)
curl --request POST \
  --url https://api.streambird.io/v1/wallets/{wallet_id}/sign_transaction \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "eth_transaction": {
    "to": "0xE9534C9fAF3cDBc636c25E1981A80EfaE03f187a",
    "value": "0x38d7ea4c68000",
    "nonce": "0x8",
    "maxPriorityFeePerGas": "0x77359400",
    "maxFeePerGas": "0xdf8475800",
    "gas": "0x5208",
    "chainId": "0x5"
  }
}'
{
  "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": "0x744b61c44cdb250b89438709a9438a0b9e30c9c46e29776c93fb5e150e56021a",
  "signed_transaction": "0xb87502f87205088477359400850df847580082520894e9534c9faf3cdbc636c25e1981a80efae03f187a87038d7ea4c6800080c001a0cd31b38c3e3a48230bee2d5c687a0b2a5efcb298c58cfc3b43449eefd17857cfa03f95b8bcad72f7bdca59025e797781f4ba3fde826f62b9d6997aaf19a7d7591b"
}

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
eth_transaction
object
required

If wallet specified by wallet ID is of ethereum wallet type, eth_transaction must be provided. It is compatible with the Metamask eth_sendTransaction Transaction object documented here under eth_sendTransaction RPC method.

Response

200 - application/json

Ethereum Wallet Sign Transaction (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