Skip to content

Commit e106597

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 9d722a4 + 06cbf61 commit e106597

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

README.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,11 @@ System.out.println(balance);
128128
#### Get Transaction History
129129

130130
```java
131-
JSONArray transactions = manager.getTransactionHistory();
132-
System.out.println(transactions);
131+
TransactionParams transactionParams = new TransactionParams(
132+
1, //page
133+
2 //limit
134+
);
135+
System.out.println("Fetch Transaction History : " + cngnManager.getTransactionHistory(transactionParams));
133136
```
134137

135138
#### Swap Between Chains
@@ -185,6 +188,20 @@ UpdateExternalAccountParams.WalletAddress walletAddress = new UpdateExternalAcco
185188
System.out.println("Update External Accounts " + cngnManger.updateExternalAccounts(params));
186189
```
187190

191+
192+
#### IWithdrawal
193+
```java
194+
IWithdrawParams withdrawParams = new IWithdrawParams(
195+
"1000", //amount
196+
"0x789...", //address
197+
Network.BSC, //network
198+
true //shouldSaveAddress
199+
);
200+
System.out.println("Withdraw : " + cngnManager.withdraw(withdrawParams));
201+
202+
```
203+
204+
188205
#### Fetch Banks
189206

190207
```java

0 commit comments

Comments
 (0)