ERC20 - FIL loan operations

Confirm loan operation

POST https://localhost:3000/api/operation/lend/ERC20/confirm

Request Body

NameTypeDescription

networkId

string

Network identifier

operation

string

'CreateLoanOffer', 'ApproveRequest', 'Withdraw', 'Payback', 'AcceptRepayment', 'RefundPayback', 'CancelLoan'

txHash

string

Loan event hash

{ status: 'OK', message: 'ERC20 Loan Operation Confirmed' }

Confirm lock collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/lockCollateral/confirm

Request Body

NameTypeDescription

signature

object

Signature of the message

message

object

Lotus message

{ status: 'OK', message: 'FIL Collateral Lock operation confirmed' }

Confirm seize collateral voucher operation

POST https://localhost:3000/api/operation/lend/ERC20/signSeizeCollateralVoucher/confirm

Request Body

NameTypeDescription

signedVoucher

string

Signed voucher base64

paymentChannelId

string

Payment channel ID

{ status: 'OK', message: 'Signed voucher saved' }

Confirm unlock collateral voucher operation

POST https://localhost:3000/api/operation/lend/ERC20/signUnlockVoucher/confirm

Request Body

NameTypeDescription

signedVoucher

string

Signed voucher base64

paymentChannelId

string

Payment channel ID

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Confirm settle unlock collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/settleUnlockCollateral/confirm

Request Body

NameTypeDescription

CID

string

Loan event hash

network

string

Filecoin network

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Confirm collect unlock collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/collectUnlockCollateral/confirm

Request Body

NameTypeDescription

CID

string

Loan event hash

network

string

Filecoin network

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Confirm redeen seize collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/redeemSeizeCollateralVoucher/confirm

Request Body

NameTypeDescription

CID

string

Loan event hash

network

string

Filecoin network

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Confirm settle seize collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/settleSeizeCollateral/confirm

Request Body

NameTypeDescription

CID

string

Loan event hash

network

string

Filecoin network

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Confirm collect seize collateral operation

POST https://localhost:3000/api/operation/lend/ERC20/collectSeizeCollateral/confirm

Request Body

NameTypeDescription

CID

string

Loan event hash

network

string

Filecoin network

{ status: 'OK', message: 'FIL Collateral updated successfully' }

Last updated