GenerateUserOp
With "generateUserOp" on Krypcore, you can easily execute user operations. This powerful feature allows users to establish, customise, and manage numerous operations within their smart contract wallet in a few simple clicks, providing a streamlined and user-friendly experience. Unleash the power of personalised and efficient control over your digital assets.
This deploys GenerateUserOp using this method.
API Specification
GenerateUserOp Details
POST
https://web3-proxy-dev.krypcore.com/api/v0/scWallet/generateUserOp
To generateUserOp under the given instance.
Headers
DappId*
String
DappId
Authorization*
String
User Auth key obtained
Request Body
walletName*
String
Wallet Name
to*
String
To Address
method*
String
Method
params*
String
Params
isContractTxn*
String
IsContractTxn
contractABI*
String
ContractABI
{
"Data": {
"userOp": {
"callData": "******",
"callGasLimit": "0x34b8",
"initCode": "******",
"maxFeePerGas": "0xa8621424",
"maxPriorityFeePerGas": "0xa8621424",
"nonce": "0x0",
"paymasterAndData": "0x",
"preVerificationGas": "0xc57e",
"sender": "*****",
"signature": "0x",
"verificationGasLimit": "0x684eb"
},
"userOpHash": "******"
},
"Message": "",
"Status": "SUCCESS"
}
Take a look at how you might call this method using our official libraries, or via curl
curl --location 'https://web3-proxy-dev.krypcore.com/api/v0/scWallet/generateUserOp' \
--header 'DappId: ******' \
--header 'Authorization: ******' \
--header 'Content-Type: application/json' \
--data '{"walletName":"ak10", "to":"0xc2de797fab7d2d2b26246e93fcf2cd5873a90b10","method":"store","params":[{"type":"uint256","value":"35"}],"isContractTxn":true,"contractABI":"[{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"num\",\"type\":\"uint256\"}],\"name\":\"store\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"retrieve\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]"}'
Last updated
Was this helpful?