Skip to content

Commit

Permalink
Merge d94622a into 496a8e4
Browse files Browse the repository at this point in the history
  • Loading branch information
smk762 committed Jul 17, 2024
2 parents 496a8e4 + d94622a commit 543bc93
Showing 1 changed file with 44 additions and 11 deletions.
55 changes: 44 additions & 11 deletions src/pages/komodo-defi-framework/api/v20/withdraw/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ This method generates a raw transaction which should then be broadcast using [se
| max | bool | Withdraw the maximum available amount |
| fee | object | A standard [FeeInfo](/komodo-defi-framework/api/v20/#fee-info) object. |
| from | object | HD wallets only. A standard [WithdrawFromInfo](/komodo-defi-framework/api/v20/#withdraw-from-info) object. |
| ibc_source_channel | string | Optional, [IBC](https://tutorials.cosmos.network/academy/3-ibc/1-what-is-ibc.html) coins only. The source channel for the IBC transaction. This is only required if the ['chain_registry_name` value](https://github.com/KomodoPlatform/coins/blob/14bfd0ab59118ea1048eaaffba14f3270b2ab17b/coins#L14654) is not present in your `coins` file. |

### Response

Expand All @@ -44,7 +45,7 @@ This method generates a raw transaction which should then be broadcast using [se
<CodeGroup title="Withdraw" tag="POST" label="withdraw" mm2MethodDecorate="true">
```json
{
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"mmrpc": "2.0",
"method": "withdraw",
"params": {
Expand Down Expand Up @@ -93,7 +94,7 @@ This method generates a raw transaction which should then be broadcast using [se
<CodeGroup title="Withdraw" tag="POST" label="withdraw" mm2MethodDecorate="true">
```json
{
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"mmrpc": "2.0",
"method": "withdraw",
"params": {
Expand Down Expand Up @@ -122,7 +123,7 @@ This method generates a raw transaction which should then be broadcast using [se
<CodeGroup title="Withdraw" tag="POST" label="withdraw" mm2MethodDecorate="true">
```json
{
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"mmrpc": "2.0",
"method": "withdraw",
"params": {
Expand Down Expand Up @@ -154,7 +155,7 @@ This method generates a raw transaction which should then be broadcast using [se
```json
{
"mmrpc": "2.0",
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"method": "withdraw",
"params": {
"coin": "DOC",
Expand Down Expand Up @@ -205,7 +206,7 @@ This method generates a raw transaction which should then be broadcast using [se
```json
{
"mmrpc": "2.0",
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"method": "withdraw",
"params": {
"coin": "DOC",
Expand Down Expand Up @@ -256,7 +257,7 @@ This method generates a raw transaction which should then be broadcast using [se
```json
{
"mmrpc": "2.0",
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"method": "withdraw",
"params": {
"coin": "ETH",
Expand Down Expand Up @@ -304,7 +305,7 @@ This method generates a raw transaction which should then be broadcast using [se
```json
{
"mmrpc": "2.0",
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"method": "withdraw",
"params": {
"coin": "COIN_NAME",
Expand Down Expand Up @@ -359,7 +360,7 @@ This method generates a raw transaction which should then be broadcast using [se
```json
{
"mmrpc": "2.0",
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"method": "withdraw",
"params": {
"coin": "ETH",
Expand Down Expand Up @@ -407,7 +408,7 @@ This method generates a raw transaction which should then be broadcast using [se
```json
{
"mmrpc": "2.0",
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"method": "withdraw",
"params": {
"coin": "QRC20",
Expand Down Expand Up @@ -457,7 +458,7 @@ This method generates a raw transaction which should then be broadcast using [se
```json
{
"mmrpc": "2.0",
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"method": "withdraw",
"params": {
"coin": "QRC20",
Expand Down Expand Up @@ -510,7 +511,7 @@ This method generates a raw transaction which should then be broadcast using [se
```json
{
"mmrpc": "2.0",
"userpass": "RPC_UserP@SSW0RD",
"userpass": "'$userpass'",
"method": "withdraw",
"params": {
"coin": "IRIS",
Expand Down Expand Up @@ -561,6 +562,38 @@ This method generates a raw transaction which should then be broadcast using [se
You can see the memo is included on the [block explorer](https://irishub.iobscan.io/#/txs/E00982A2A8442D7140916A34E29E287A0B1CBB4B38940372D1966BA7ACDE5BD6)
</CollapsibleSection>


##### Withdraw Tendermint IBC coins

<CodeGroup title="Withdraw" tag="POST" label="withdraw" mm2MethodDecorate="true">
```json
{
"mmrpc": "2.0",
"userpass": "'$userpass'",
"method": "withdraw",
"params": {
"coin": "ATOM-IBC_NUCLEUSTEST",
"to": "nuc16ggf7pmy0w0glzyrgd2x9mlw92csw6d9yj2qvg",
"amount": 0.1,
"memo": "In the blackest of your moments, wait with no fear.",
"fee": {
"type": "CosmosGas",
"gas_price": 0.05,
"gas_limit": 150000
}
},
"id": 0
}
```
</CodeGroup>

<CollapsibleSection expandedText="Hide Response" collapsedText="Show Response">
```json
```

You can see the memo is included on the [block explorer](https://irishub.iobscan.io/#/txs/E00982A2A8442D7140916A34E29E287A0B1CBB4B38940372D1966BA7ACDE5BD6)
</CollapsibleSection>

### Error Responses

#### InvalidRequest: Unknown fee type
Expand Down

2 comments on commit 543bc93

@harsenyan3
Copy link
Collaborator

@harsenyan3 harsenyan3 commented on 543bc93 Jul 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should change back the value of the userpass params in the example to "RPC_P@SSW0RD", right?

@gcharang
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should change back the value of the userpass params in the example to "RPC_P@SSW0RD", right?

this will be updated automatically

Please sign in to comment.