Owner-approved local Anvil vault onboarding
curl --request POST \
--url http://localhost:4100/v1/yield/vault/deposit/prepare \
--header 'Content-Type: application/json' \
--data '
{
"account": "<string>",
"owner": "<string>",
"profileId": "<string>",
"vault": "<string>",
"amount": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account: '<string>',
owner: '<string>',
profileId: '<string>',
vault: '<string>',
amount: '<string>'
})
};
fetch('http://localhost:4100/v1/yield/vault/deposit/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chainId": "8453",
"owner": "<string>",
"account": "<string>",
"profileId": "<string>",
"vault": "<string>",
"asset": "<string>",
"amount": "<string>",
"expiresAt": "<string>",
"userOpHash": "<string>",
"userOp": {},
"calls": [
{
"to": "<string>",
"value": "0",
"data": "<string>"
}
]
}Yield
Owner-approved local Anvil vault onboarding
No public-chain writes. Preparations expire after five minutes. Duplicate submissions refuse. Deposit is an owner operation and never agent action evidence.
Owner-approved local Anvil vault onboarding
curl --request POST \
--url http://localhost:4100/v1/yield/vault/deposit/prepare \
--header 'Content-Type: application/json' \
--data '
{
"account": "<string>",
"owner": "<string>",
"profileId": "<string>",
"vault": "<string>",
"amount": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
account: '<string>',
owner: '<string>',
profileId: '<string>',
vault: '<string>',
amount: '<string>'
})
};
fetch('http://localhost:4100/v1/yield/vault/deposit/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"draftId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"chainId": "8453",
"owner": "<string>",
"account": "<string>",
"profileId": "<string>",
"vault": "<string>",
"asset": "<string>",
"amount": "<string>",
"expiresAt": "<string>",
"userOpHash": "<string>",
"userOp": {},
"calls": [
{
"to": "<string>",
"value": "0",
"data": "<string>"
}
]
}Body
application/json
Response
Verified owner onboarding result