cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/accounts/{account}/eip7702-setup/prepare \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:4100/v1/projects/{projectId}/accounts/{account}/eip7702-setup/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"account": "<string>",
"chainId": 84532,
"core": "<string>",
"delegate": "<string>",
"bootstrap": "<string>",
"delegation": "none",
"authorization": {
"chainId": 84532,
"address": "<string>",
"nonce": "<string>",
"hash": "<string>",
"selfSentNonce": "<string>"
},
"initData": "<string>",
"initDataHash": "<string>",
"relayedCall": {
"to": "<string>",
"functionName": "initializeAccount"
},
"selfSentCall": {
"to": "<string>",
"data": "<string>"
},
"sponsorship": {
"available": true,
"remainingToday": 123
},
"observedBlockNumber": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}gas-policies
Post v1projects accounts eip7702 setupprepare
cURL
curl --request POST \
--url http://localhost:4100/v1/projects/{projectId}/accounts/{account}/eip7702-setup/prepare \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('http://localhost:4100/v1/projects/{projectId}/accounts/{account}/eip7702-setup/prepare', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"account": "<string>",
"chainId": 84532,
"core": "<string>",
"delegate": "<string>",
"bootstrap": "<string>",
"delegation": "none",
"authorization": {
"chainId": 84532,
"address": "<string>",
"nonce": "<string>",
"hash": "<string>",
"selfSentNonce": "<string>"
},
"initData": "<string>",
"initDataHash": "<string>",
"relayedCall": {
"to": "<string>",
"functionName": "initializeAccount"
},
"selfSentCall": {
"to": "<string>",
"data": "<string>"
},
"sponsorship": {
"available": true,
"remainingToday": 123
},
"observedBlockNumber": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"correlationId": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
The body is of type object.
Response
Default Response
Pattern:
^0x[0-9a-fA-F]{40}$Available options:
84532 Pattern:
^0x[0-9a-fA-F]{40}$Pattern:
^0x[0-9a-fA-F]{40}$Pattern:
^0x[0-9a-fA-F]{40}$Available options:
none Show child attributes
Show child attributes
Pattern:
^0x[0-9a-fA-F]{64}$Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Pattern:
^(0|[1-9][0-9]{0,77})$