Init Lock Nft Item

Lock user Nft Items. Sometimes you want to lock the user's Nft items to avoid double spend or fraud scenarios.

Init Lock Nft Item

POST {{server-url}}/web3/lock

It returns unsigned transaction data

Headers

NameTypeDescription

Authorization*

String

UUID formatted access token

Content-Type*

String

application/json

PROJECT-ID*

String

UUID formatted projectId information

Request Body

NameTypeDescription

address*

String

Represents sender's wallet address

{
    // Response
}

Example Response Body

{
    "data": {
        "from": "0xC62297B53F39a1c071B76fAE973FA5454863fA9C",
        "to": "0x8d24100cFc88E9C49a46a1d9D7D8E9EE314fDe41",
        "data": "0xf242432a000000000000000000000000c62297b53f39a1c071b76fae973fa5454863fa9c000000000000000000000000f98e4fe3c82eabf0139aa55f7e602351e9297996000000000000000000000000000000000000000000000000000000000000019a000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000",
        "gasPrice": 20000000000,
        "chainId": 5777
    },
    "message": null,
    "code": 0,
    "error": false
}

Response Fields

KeyTypeDescription

from

String

Sender address

to

String

Receiver address (it will be contract address for our case)

data

String

Represents encoded transaction content

gas

Number

Represents transaction fee parameter

gasPrice

String

Represents transaction fee parameter

nonce

Number

Count of sender transactions

chainId

Number

Represents the id information of the network where the transaction will perform.

Last updated