Skip to main content
POST
Python (SDK)

Authorizations

x-api-key
string
header
required

Your Compass API Key. Get your key here.

Body

application/json

Create the Safe that will hold the owner's LP positions.

sender
string
default:0xdB035cb494EEE30996fbDD25a7b1Fa38D795bdC6
required

The address that signs and broadcasts this transaction.

Example:

"0xdB035cb494EEE30996fbDD25a7b1Fa38D795bdC6"

owner
string
default:0xdB035cb494EEE30996fbDD25a7b1Fa38D795bdC6
required

The address that will own and control the Risk Yield Account.

Example:

"0xdB035cb494EEE30996fbDD25a7b1Fa38D795bdC6"

chain
enum<string>
default:robinhood

Risk Yield is available on Robinhood Chain only.

Available options:
robinhood
estimate_gas
boolean
default:true

Estimate gas, which also proves the transaction can execute.

Response

Successful Response

transaction
UnsignedTransaction · object | null
required

The transaction that deploys the account, or null when it already exists — calling this twice is safe.

Example:
risk_yield_account_address
string
required

Where the account is, or will be. Deterministic from the owner, so it is known before the transaction is sent. This is the same address as the owner's Earn Account on this chain: one Safe holds both, and funds moved in through either product are the same funds.