Skip to main content
POST
/
stellar
/
contract
/
deploy
Error
A valid request URL is required to generate request examples
{
  "address": "<string>",
  "ok": true
}

Authorizations

x-api-key
string
header
required

Server-held API key. Injected by the BFF (createRelayRoute / createSignerProxyRoute from @buckspay/nextjs). This key must only appear in server-side code and must never be shipped to a browser bundle.

Body

application/json

Request body for POST /stellar/contract/deploy.

passkeyPublicKey
string
required

65-byte uncompressed secp256r1 / WebAuthn public key, hex-encoded. Obtained from signer.getPublicKey() on a @buckspay/signers/passkey instance.

chain
enum<string>
required

Stellar network identifier used in facilitator requests.

Available options:
stellar-testnet,
stellar-pubnet

Response

Contract deployed. The address is the new C-address of the smart-account.

Response shared by POST /stellar/contract/deploy and POST /stellar/session-account/deploy.

address
string
required

C-address of the newly deployed smart-account.

Pattern: ^C[A-Z2-7]{55}$
ok
boolean

Optional status flag.