Get Transaction Payload

This get Transaction Payload using this method.

API Specification

Get Transaction Payload

POST https://api.krypcore.com/api/v0/gasless/getTransactionPayload

Get Transaction Payload under the given instance.

Headers

Name
Type
Description

Authorization*

String

User Auth key obtained

Request Body

Name
Type
Description

dAppId*

String

The Dapp ID associated with the application

chainId*

String

The Chain ID representing the blockchain network

userAddress*

String

Wallet address of the user initiating the transaction

contractAddress*

String

Address of the contract that has been deployed and added to the whitelist

contractAbi*

String

The ABI of the contract, providing information about its methods and data structures

method*

String

The specific method of the contract for which the transaction payload is required

args*

String

Additional arguments required for the specified contract method

{
    "dataToSign": {
        "domain": {
            "chainId": 80001,
            "name": "MinimalForwarder",
            "verifyingContract": "0xdB4dFB11b6B74487c744c251d017xxxxxxxxxx",
            "version": "0.0.1"
        },
        "message": {
            "data": "0x7698xxxx",
            "from": "0x313bA6399d60ff7c2ee8bCb01c2dcxxxxxxxxxx",
            "gas": 43562,
            "nonce": 0,
            "to": "0x362149525adee7A0B20212D76Fad073xxxxxxxxxx",
            "value": 0
        },
        "primaryType": "ForwardRequest",
        "types": {
            "EIP712Domain": [
                {
                    "name": "name",
                    "type": "string"
                },
                {
                    "name": "version",
                    "type": "string"
                },
                {
                    "name": "chainId",
                    "type": "uint256"
                },
                {
                    "name": "verifyingContract",
                    "type": "address"
                }
            ],
            "ForwardRequest": [
                {
                    "name": "from",
                    "type": "address"
                },
                {
                    "name": "to",
                    "type": "address"
                },
                {
                    "name": "value",
                    "type": "uint256"
                },
                {
                    "name": "gas",
                    "type": "uint256"
                },
                {
                    "name": "nonce",
                    "type": "uint256"
                },
                {
                    "name": "data",
                    "type": "bytes"
                }
            ]
        }
    },
    "request": {
        "data": "0x769xxxxx",
        "from": "0x313bA6399d60ff7c2ee8bCb01c2dc9C5e1xxxxxx",
        "gas": 43562,
        "nonce": 0,
        "to": "0x362149525adee7A0B20212D76Fad073CcDbxxxxx",
        "value": 0
    }
}

Take a look at how you might call this method using our official libraries, or via curl

curl --location 'https://api.krypcore.com/api/v0/gasless/getTransactionPayload' \
--header 'Authorization: 03374415-xxxx-xxxx-xxxx-1277d243034e' \
--header 'Content-Type: application/json' \
--data '{
    "dAppId": "DEV_DEMO_PACE_46_xxxxxxx",
    "chainId": 80001,
    "userAddress": "0x313bA6399d60ff7c2ee8bCbxxxxxxxxxxxxx",
    "contractAddress": "0x362149525adee7A0B2021xxxxxxxxxxxxxxxxxx",
    "contractAbi": "BASE64 ABI",
    "method": "mintNft",
    "args": []
}'

Last updated