Create a wallet
Provisions your wallet. The wallet is co-owned by your passkey (supplied as
ownerKey + credentialId) and a Circle-provisioned ECDSA key. Circle
derives the MSCA address and signs the setup UserOperation for you.
Asynchronous. Returns an onchainJob of jobType = wallet_setup. Poll the
job until it reaches completed. You can have only one wallet.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Request to create your wallet. Provide your passkey's public key and WebAuthn credential ID. Circle derives the MSCA address and signs all UserOperations for you.
Idempotency key
(UUID v4) for this request. Reusing it with a different body returns
409 Conflict.
Hex-encoded raw P256 public key bytes of your passkey.
Hex-encoded WebAuthn credential identifier captured during passkey registration.
Stored on the passkey owner record and returned by GET /v1/borrow/wallets.
Response
Request to create a wallet accepted. Poll the returned job to track its status.
An async onchain operation. Each job represents one of: borrow, repay,
add collateral, wallet setup, owner change, or residual withdraw. Poll
this resource until the job reaches a terminal status (completed,
failed, or approval_rejected). Fields that do not apply to the current
status or job type are omitted rather than returned as null.