Creates a transaction that deploys the lock contract. A lock contract offers locking NFTs in a wallet from being traded with other accounts or releasing them to be traded again.
This is the wallet address that can unlock the locked NFT. The default value is the from address.
string
N
encoded
whether the returned transaction is encoded or not true: Receive the encoded raw transaction string (data.rawTx). false: Receive the decoded data.rawTx (JSON).
This is hashed data.rawTx. This value is only returned when the API header x-network is "polygon" and the Request Body from is an multi sig wallet address.
string
data.requestId
the unique value that can identify each API request
Creates a transaction that the NFT owner account (from) sends the NFT (tokenId) to the lock contract. Once the NFT is sent to the lock contract, the ownership of this NFT is now transferred to the lock contract, and the previous owner can’t send this NFT to another account anymore.
whether the returned transaction is encoded or not true: Receive the encoded raw transaction string (data.rawTx). false: Receive the decoded data.rawTx (JSON).
This is hashed data.rawTx. This value is only returned when the API header x-network is "polygon" and the Request Body from is an multi sig wallet address.
string
data.requestId
the unique value that can identify each API request
// When the encoded is set to true {"code":0,"message":"success","data":{"rawTx":"02f8d3830138810b8458e948068458e948168302e71494ebd9144485089ebe248f8490...","hashedTx":"0x53e8783e4da707daf58c96a8cea278e7b2a8a5f185af0913b518974556c79076...","requestId":"5743f0aa-0323-47fc-a3da-173eee27bbe4"}}// When the encoded is set to false{"code":0,"message":"success","data":{"rawTx":{"from":"0xdcd51770d06B54204abd8c30A25b4583D4cABa39","to":"0xebd9144485089ebe248f8490984a60579407c262","data":"0xb88d4fde000000000000000000000000dcd51770d06b54204abd8c30a25b4583d4cab...","nonce":11,"chainId":80001,"gas":190228,"maxFeePerGas":1491259270,"maxPriorityFeePerGas":1491259255},"hashedTx":"0x53e8783e4da707daf58c96a8cea278e7b2a8a5f185af0913b518974556c79076...","requestId":"dd33ddd8-31fa-4491-9c3c-2f912f7059bc"}}
Creates a transaction that the lock contract sends back the NFT (tokenId) to the NFT owner account. Once an NFT is sent back to the NFT owner account, this account can resume trading this NFT.
the wallet address of the account (the owner of the lock contract) that deployed the lock contract
string
Y
tokenId
NFT ID
String
Y
encoded
whether the returned transaction is encoded or not true: Receive the encoded raw transaction string (data.rawTx). false: Receive the decoded data.rawTx (JSON).
This is hashed data.rawTx. This value is only returned when the API header x-network is "polygon" and the Request Body from is an multi sig wallet address.
string
data.requestId
the unique value that can identify each API request