Investments

Create an investment

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
chevron-right
200

Success

application/json
objectOptional
post
/create-investment

Complete payment for an investment

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
chevron-right
200

Success

application/json
objectOptional
post
/pay-investment

Process crypto payment (e.g. MetaMask)

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
chevron-right
200

Success

application/json
objectOptional
post
/process-crypto-payment

Process MetaMask payment

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
chevron-right
200

Success

application/json
objectOptional
post
/process-metamask-payment

Request sponsored (gasless) tx; returns 402 if insufficient credits

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
chevron-right
200

Success

application/json
objectOptional
post
/sponsored-transaction

List investments for the current user

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
chevron-right
200

Success

application/json
objectOptional
post
/get-user-investments

Create commitment (guest flow)

post
Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
chevron-right
200

Success

application/json
objectOptional
post
/create-commitment

Sync tenant investment data

post
Authorizations
AuthorizationstringRequired

Privy access token

Body
objectOptional

See Edge Function source for exact request shape (e.g. interface XxxRequest in index.ts)

Responses
chevron-right
200

Success

application/json
objectOptional
post
/sync-tenant-investment

Last updated