FIL - ERC20 loan operations

Confirm lend operation

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

This endpoint allows you to confirm lend operations

Request Body

NameTypeDescription

signature

object

Signature of the message

message

object

Lotus message

{ status: 'OK', message: 'Lend FIL operation saved' }

Confirm withdraw voucher operation

POST https://localhost:3000/api/operation/lend/FIL/signWithdrawVoucher/confirm

Request Body

NameTypeDescription

paymentChannelId

string

Payment channel ID

signedVoucher

string

Voucher base64

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

Confirm redeem voucher operation

POST https://localhost:3000/api/operation/lend/FIL/redeemWithdrawVoucher/confirm

Request Body

NameTypeDescription

network

string

Filecoin network

CID

string

Loan event hash

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

Confirm settle operation

POST https://localhost:3000/api/operation/lend/FIL/settleWithdraw/confirm

Request Body

NameTypeDescription

network

string

Filecoin Network

CID

string

Loan event hash

{ status: 'OK', message: 'FIL Loan updated successfully' } already saved' }

Confirm collect operation

POST https://localhost:3000/api/operation/lend/FIL/collectWithdraw/confirm

Request Body

NameTypeDescription

network

string

Filecoin Network

CID

string

Loan event hash

{ status: 'OK', message: 'FIL Loan updated successfully' } already saved' }

Confirm payback payement channel operation

POST https://localhost:3000/api/operation/lend/FIL/paybackPaymentChannel/confirm

Request Body

NameTypeDescription

message

string

Lotus message

signature

string

Message signature

{ status: 'OK', message: 'Lend FIL operation saved' }: 'FIL Loan updated successfully' } already saved' }

Confirm payback voucher operation

POST https://localhost:3000/api/operation/lend/FIL/signPaybackVoucher/confirm

Request Body

NameTypeDescription

paymentChannelId

string

Payment channel ID

signedVoucher

string

Voucher base64

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

Confirm redeem payback operation

POST https://localhost:3000/api/operation/lend/FIL/redeemPaybackVoucher/confirm

Request Body

NameTypeDescription

network

string

Filecoin network

CID

string

Loan event hash

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

Confirm settle payback operation

POST https://localhost:3000/api/operation/lend/FIL/settlePayback/confirm

Request Body

NameTypeDescription

network

string

Filecoin network

CID

string

Loan event hash

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

Confirm collect payback operation

POST https://localhost:3000/api/operation/lend/FIL/collectPayback/confirm

Request Body

NameTypeDescription

network

string

Filecoin network

CID

string

Loan event hash

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

Last updated