/account-abstraction/operations
Last updated
POST /account-abstraction/operations?chain=sepolia HTTP/1.1
Host: api.bless.net
x-api-key: <>
Content-Type: application/json
Content-Length: 763
{
"ops": [
{
"account": "0xa8C46f79c72DbfE885e54b5527002c515F860875",
"target": "0x4995423334127293b31d8c810Bb183809f82Be55",
"calldata": "0x62a61351000000000000000000000000a8C46f79c72DbfE885e54b5527002c515F860875000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
]
}{
"message": "Ops requested",
"requestOwner": "omnus",
"for": [
{
"account": "0xa8C46f79c72DbfE885e54b5527002c515F860875",
"target": "0x4995423334127293b31d8c810Bb183809f82Be55",
"calldata": "0x62a61351000000000000000000000000a8C46f79c72DbfE885e54b5527002c515F860875000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
}
],
"destinationChain": 11145513,
"deliveryIds": ["67c8c05d179b8cbc49505f4e"]
}{
"message": "Please provide chainId and delegate address as query parameters."
}import ethers from "ethers"
const interface = new ethers.Interface(myABI)
const calldata = interface.encodeFunctionData("myFunction", [arg1, arg2])
const ops = [{
account: myUserAccount,
target: myContract,
calldata,
}]
fetch("https://api.bless.net/account-abstraction/operations", {
method: "POST",
body: { ops }
})import { encodeFunctionData } from "viem"
const interface = new ethers.Interface(myABI)
const calldata = encodeFunctionData({
abi: myABI,
args: [arg1, arg2],
functionName: "myFunction",
})
const ops = [{
account: myUserAccount,
target: myContract,
calldata,
}]
fetch("https://api.bless.net/account-abstraction/operations", {
method: "POST",
body: { ops }
})