---
# System prepended metadata

title: Pillar Protocol Requests via IDE

---

# Pillar Protocol Requests via IDE

Pillar Protocol transactions can done via Zilliqa IDE. Users can follow the steps below to transact directly from the contract.


[Neo Savant IDE](https://ide.zilliqa.com/#/)

## Importing the contract
To transaction users must import the Vault Proxy Contract into the IDE. 
Vault Proxy Contract Address = `0xa9660ac4f5751d9e02605992df512434697dd449`

![](https://i.imgur.com/rId95hd.jpg)

## Release Collateral
Click on the `ReleaseCollateral` Button once the contract is loaded.

![](https://i.imgur.com/rX328Lz.jpg)

There are seven function parameters needed for Releasing the Collateral from a vault. 
1. msg : `message that contains the price encoded in it`
2. sign: `signature of the message`
3. col: `symbol of the collateral`
4. vaultFactory: `address of the vault factory`
5. vaultId: `ID of the vault`
6. amount: `amount of WZIl to release`
7. receiver: `address that receives the collateral`

### msg 
Fetch the `msg` using the API below
https://api-launch.pillarprotocol.com/stat/priceMsg/WZIL

A response would be like
```
{"msg":"4WZIL5421301671767158","signature":"0xf0ccf0e2042d611ca019e00d92743ad0802ce6525bef2e334e17ee7297e94dcb1b79aa627939e1f57f69527cfa743e1b1c8978f8572dfd72087610acac4009ea"}
```

i.e

`msg=4WZIL5421301671767158`

### sign
Fetch the `sign` using the same method above

i.e

`sign=0xf0ccf0e2042d611ca019e00d92743ad0802ce6525bef2e334e17ee7297e94dcb1b79aa627939e1f57f69527cfa743e1b1c8978f8572dfd72087610acac4009ea`

### col
For Wrapped ZIL Vault the symbol is `WZIL`

i.e

`col=WZIL`

### vaultFactory
Address of the vault factory.

i.e

`vaultFactory=0x323e8105ba12d46e38d31cd674b6a2d16d76e6d1`

### vaultId
To get the vaultID visit the [Pillar Protocol Web App](https://https://app.pillarprotocol.com/) and get the vault ID. 

i.e

`vaultId=your_vault_id`

### amount
Amount of WZIL to be released. 
For `1 WZIL` to be released input amount should be `1000000000000`. 

i.e

`amount=1000000000000` // for 1 WZIL


### receiver
Address to receive the locked collateral. In this it should be zilpay wallet address.

i.e 

`receiver=wallet_address`

## Minting Pillar
* Load the vault proxy contract i.e `0xa9660ac4f5751d9e02605992df512434697dd449` into the IDE
* Click on `MintFromOracle` Button

There are seven function parameters needed for Minting the Pillar Tokens from a vault. 
1. msg : `message that contains the price encoded in it`
2. sign: `signature of the message`
3. col: `symbol of the collateral`
4. vaultFactory: `address of the vault factory`
5. vaultId: `ID of the vault`
6. amount: `amount of WZIl to release`
7. receiver: `address that receives the collateral`

### msg 
Fetch the `msg` using the API below
https://api-launch.pillarprotocol.com/stat/priceMsg/WZIL

A response would be like
```
{"msg":"4WZIL5421301671767158","signature":"0xf0ccf0e2042d611ca019e00d92743ad0802ce6525bef2e334e17ee7297e94dcb1b79aa627939e1f57f69527cfa743e1b1c8978f8572dfd72087610acac4009ea"}
```

i.e

`msg=4WZIL5421301671767158`

### sign
Fetch the `sign` using the same method above

i.e

`sign=0xf0ccf0e2042d611ca019e00d92743ad0802ce6525bef2e334e17ee7297e94dcb1b79aa627939e1f57f69527cfa743e1b1c8978f8572dfd72087610acac4009ea`

### col
For Wrapped ZIL Vault the symbol is `WZIL`

i.e

`col=WZIL`

### vaultFactory
Address of the vault factory.

i.e

`vaultFactory=0x323e8105ba12d46e38d31cd674b6a2d16d76e6d1`

### vaultId
To get the vaultID visit the [Pillar Protocol Web App](https://https://app.pillarprotocol.com/) and get the vault ID. 

i.e

`vaultId=your_vault_id`

### amount
Amount of Pillar to be minted. 
For `1 PIL` to be minted input amount should be `1000000`. 

i.e

`amount=1000000` // for 1 PIL


### receiver
Address to receive the locked collateral. In this it should be zilpay wallet address.

i.e 

`receiver=wallet_address`

## Withdraw GZIL from staking

Load GZIL staking contract into [Neo Savant IDE](https://ide.zilliqa.com/#/)

GZIL Staking Contract Address = `0x45CeABeB309a1210608080e124690C3913b41147`

* If withdrawl request is not placed click on `requestUnlock` and input the `shares` to unlock. 
* Your active withdrawl requests should reflect in the webapp. Alternatively you can get request number from [gZIL staking requests](https://docs.google.com/spreadsheets/d/1FLOFR-JmaFHG7b0IpbBBqbl_wt5GPx8e7lbPVyySZEk/edit#gid=0). The request numbers in the sheets will be updated regularly
* Click on the `withdraw` button on the imported contract in the [IDE](https://ide.zilliqa.com/#/)
