Sign EIP712 Txn

The "Sign EIP712 Transaction" functionality in the KrypC wallet-dev Service API allows users to securely sign transactions following the EthereumImprovement Proposal 712 (EIP-712) standard. This feature enhances transaction security and ensures compatibility with applications using EIP-712 for cryptographic signatures on the Ethereum blockchain.

API Specification

Sign EIP72 Txn API

POST https://api.krypcore.com/api/v0/devWallet/signEIP712Tx

To sign EIP72 Txn API under given instance.

Headers

NameTypeDescription

DappId*

String

DappId

Authorization*

String

User Auth key obtained

Request Body

NameTypeDescription

privateKey*

String

Private key

data*

String

Data

{
    "Data": "0x67d638cbbdfd0a0e8fe45789681c93c6dd6d44fa16907052d31acd41c6d3838e23de6a9c5d46e23d4c48a4fea53d902a57bcd802aa87b29308b002e46128833f1c",
    "Message": "Data signed successfully",
    "Status": "SUCCESS"
}

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/devWallet/signEIP712Tx' \
--header 'DappId: **********' \
--header 'Authorization: **********' \
--header 'subscriptionId: ********' \
--header 'Content-Type: application/json' \
--data '{
    "privateKey": "**********",
    "data":"{\"domain\":{\"chainId\":80001,\"name\":\"MinimalForwarder\",\"verifyingContract\":\"0xdB4dFB11b6B74487c744c251d01718fEEb19279a\",\"version\":\"0.0.1\"},\"message\":{\"data\":\"0x14f710fe\",\"from\":\"0x11266906F2Eb9422924F3471F159377E2ED7c44C\",\"gas\":84762,\"nonce\":1,\"to\":\"0x0E762313219aE4dD7C674367a39901Ac1c28Cef3\",\"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\"}]}}"
}'

Last updated