I want to use openSea's api, but I don't know how to get the hash and signature of this json object using java.
https://docs.opensea.io/reference/create-an-order
{
"parameters": {
"offerer": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
"zone": "0x004C00500000aD104D7DBd00e3ae0A5C00560C00",
"zoneHash": "0x0000000000000000000000000000000000000000000000000000000000000000",
"startTime": "0",
"endTime": "1656044994000",
"orderType": 0,
"offer": [
{
"itemType": 2,
"token": "0x0165878A594ca255338adfa4d48449f69242Eb8F",
"identifierOrCriteria": "1",
"startAmount": "1",
"endAmount": "1",
},
],
"consideration": [
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "9750000000000000000",
"endAmount": "9750000000000000000",
"recipient": "0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
},
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "250000000000000000",
"endAmount": "250000000000000000",
"recipient": "0x70997970C51812dc3A010C7d01b50e0d17dc79C8",
},
{
"itemType": 0,
"token": "0x0000000000000000000000000000000000000000",
"identifierOrCriteria": "0",
"startAmount": "500000000000000000",
"endAmount": "500000000000000000",
"recipient": "0x8a90cab2b38dba80c64b7734e58ee1db38b8992e",
},
],
"totalOriginalConsiderationItems": 2,
"salt": 12686911856931635052326433555881236148,
"conduitKey": "0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000",
"nonce": 0,
},
"signature": "0x",
"protocol_address": "0x00000000000001ad428e4906aE43D8F9852d0dD6", }