/deployWallet
-
GET | POST /deployWallet
{ rawTx, chainId }
→ 200 OK*Second step for /initWallet
POST Data:
{
"rawTx" : "**0xfddsad234…123dfdf4**",
"chainId" : 1,
"callbackUrl" : "https://yourdomain/inform-deposit",
"contractType" : "payment"
}Where:
- rawTx - HEX, gotten from the previous step
- chainId - got from previous step
- callbackUrl (optional) - The callback address to get notification about incoming deposit transaction on your generated wallets. It will be explained later. In case when you do not define this field you can use history polling or websocket
- contractType - check contract types page for more information
After successfully executing this request, you will be provided with your Smart Wallet Address. This address will serve as a means to withdraw funds at a later stage.
If you already deployed a wallet by yourself without using deployWallet. You can notify the backend by using informDeployedWallet
{ chainId, txid, callback_url }
where**txid**
is transactionHash of wallet deployment.Consider informDeployedWallet method as temporary solution because it will be removed in future. The smart wallet backend will observe this kind of transaction in blockchain directly