Alpha — This endpoint is part of the Prediction Markets API, currently in early access. May change without notice.
Request Body
The wallet address deploying the Safe account.
The EIP-712 signature from signing the typed data returned by Account Deploy Build.
Response
Transaction calldata for Safe deployment. Safe Factory contract address.
Encoded createProxy calldata (0x-prefixed hex).
Chain ID (137 for Polygon).
The Safe address that will be created.
Request processing time in milliseconds.
Usage Example
curl -X POST "https://api.mobula.io/api/2/pm/deploy/submit" \
-H "Content-Type: application/json" \
-d '{
"address": "0xYourWalletAddress",
"signature": "0xabc123..."
}'
Integration Example
// 1. Build deploy typed data
const buildRes = await fetch ( 'https://api.mobula.io/api/2/pm/deploy/build' , {
method: 'POST' ,
headers: { 'Content-Type' : 'application/json' },
body: JSON . stringify ({ address: walletAddress })
});
const { data : typedData } = await buildRes . json ();
// 2. Sign the typed data
const signature = await walletClient . signTypedData ( typedData );
// 3. Get deployment calldata
const submitRes = await fetch ( 'https://api.mobula.io/api/2/pm/deploy/submit' , {
method: 'POST' ,
headers: { 'Content-Type' : 'application/json' },
body: JSON . stringify ({ address: walletAddress , signature })
});
const { data : deployTx } = await submitRes . json ();
// 4. Send the deployment transaction on Polygon
const txHash = await walletClient . sendTransaction ({
to: deployTx . to ,
data: deployTx . calldata ,
chain: polygon
});