Lend and Borrow
Last updated
https://api.expand.network/fungibletoken/getuserallowance?owner=0x6Fb447Ae94F5180254D436A693907a1f57696900&tokenAddress=0x6b175474e89094c44da98b954eedeac495271d0f&spender=0xBA12222222228d8Ba445958a75a0704d566BF2C8{
"status": 200,
"msg": "success",
"data": {
"allowance": "999000000000000000000"
}
}{
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"tokenAddress":"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "1000000000000000000000",
"to": "0x828b154032950c8ff7cf8085d841723db2696056",
"gas": "100000",
"chainId": "1"
}{
"status": 200,
"msg": "success",
"data": {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"value": "0",
"gas": "100000",
"data": "0x095ea7b3000000000000000000000000828b154032950c8ff7cf8085d841723db269605600000000000000000000000000000000000000000000003635c9adc5dea00000"
}
}{
"lendborrowId": "1000",
"asset": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
"amount": "10000000000000000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "408298"
}{
"status": 200,
"msg": "success",
"data": {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x4bd5643ac6f66a5237E18bfA7d47cF22f1c9F210",
"value": "0",
"gas": "408298",
"data": "0xe8eda9df000000000000000000000000b4fbf271143f4fbf7b91a5ded31805e42b2208d6000000000000000000000000000000000000000000000000002386f26fc1000000000000000000000000000063056e00436da25bcf48a40dfbbdcc70893510060000000000000000000000000000000000000000000000000000000000000000"
}
}{
"lendborrowId": "1000",
"asset": "0xC011a73ee8576Fb46F5E1c5751cA3B9Fe0af2a6F",
"amount": "100",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"interestRateMode": "2",
"gas": "408298"
}{
"status": 200,
"msg": "success",
"data": {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x4bd5643ac6f66a5237E18bfA7d47cF22f1c9F210",
"value": "0",
"gas": "408298",
"data": "0xa415bcad000000000000000000000000fc1ab0379db4b6ad8bf5bc1382e108a341e2eabb00000000000000000000000000000000000000000000000000000000000000640000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
}{
"lendborrowId": "1000",
"asset": "0xdAC17F958D2ee523a2206206994597C13D831ec7",
"amount": "100000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"onBehalfOf": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"interestRateMode": "2",
"gas": "408298"
}{
"status": 200,
"msg": "success",
"data": {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x4bd5643ac6f66a5237E18bfA7d47cF22f1c9F210",
"value": "0",
"gas": "408298",
"data": "0x573ade81000000000000000000000000dac17f958d2ee523a2206206994597c13d831ec700000000000000000000000000000000000000000000000000000000000186a0000000000000000000000000000000000000000000000000000000000000000200000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
}{
"lendborrowId": "1000",
"asset": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
"amount": "1000000000000000000",
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"gas": "408298"
}{
"status": 200,
"msg": "success",
"data": {
"from": "0x63056E00436Da25BcF48A40dfBbDcc7089351006",
"to": "0x4bd5643ac6f66a5237E18bfA7d47cF22f1c9F210",
"value": "0",
"gas": "408298",
"data": "0x69328dec0000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000000000000000000000000000000de0b6b3a764000000000000000000000000000063056e00436da25bcf48a40dfbbdcc7089351006"
}
}