LC request

When the buyer requests an LC from the issuing bank by signing the bank’s LC form, the letter's status is set to REQUEST_LC.

To check that, click on the BuyerRequestLC POST method and provide the following data:

{
"$class": "org.example.lc.BuyerRequestLC",
"lc": "resource:org.example.lc.LetterOfCredit#LC-CA-501P10"
}

Here, we pass two JSON variables, $class and lc. The former is the transaction function's name we defined in the model file—BuyerRequestLC appended to the file namespace org.example.lcwhereas the latter specifies the targeted resource with the following structure:

 "resource:{model name space}.{asset}#{assetId}".  

As you may remember, in the previous step, we set the LC assetid as LC-CA-501P10.

As a result, the Composer tool will find LC in the blockchain and update the LC status to REQUEST_LC. If it succeeds, you'll see an HTTP 200 response code.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset