blessnet docs
  • Welcome to Blessnet
  • Getting Started
    • Quickstart
  • Reference
    • Blessnet Chain Details
    • Supported Chains
    • Contract Addresses
  • BLESS Token
    • BLESS
    • Get BLESS
    • BLESS Sepolia Faucet
    • BLESS Sprinkler
    • BLESS Dispenser
    • BLESS Bridge
  • Blessnet Apps
    • Attestations
    • Ethereals
    • Mirrors
    • Modular Permissions
    • Transaction Bridge
  • Papers and Articles
    • Whitepaper
  • Tech
    • Technical Reference
  • Blessnet API
    • Blessnet API URLs
    • /account-abstraction/operations
    • /account-abstraction/operations/accounts/:address
    • /account-abstraction/platforms/:platform/accounts/:id
    • /account-abstraction/platforms/:platform/accounts
    • /addresses/:address/delegates
    • /addresses/:address/permissions
    • /addresses/:address/vaults
    • /project
    • /bridge/transfers
    • /bridge/transfers/transactions/:hash
    • /deliveries/:id
    • /ethereals
    • /ethereals/:chainId/:address
    • /sprinkles
    • /tokens/:address/:id/uri
    • Block Scan API
  • Contract ABI
    • Attestions.sol
Powered by GitBook
On this page
  • GET
  • Headers
  • Path Variables
  • Params
  • Response Body
  • Example Request
  • Response
  • Response Body
  • Example Request
  • Response
  1. Blessnet API

/account-abstraction/platforms/:platform/accounts/:id

GET

You need an API key for this call. Please reach out to the Blessnet team to get setup.

GET /account-abstraction/platforms/:platform/accounts/:id

The /account-abstraction/platforms/:platform/accounts/:id endpoint returns details of a platform linked smart account, e.g. a smart account used through telegram.

Headers

Name
Value

x-api-key

Your API key

Path Variables

Name
Mandatory?
Default
Value

:platform

Yes

The platform, e.g. telegram.

:id

Yes

The user Id for that platform.

Params

Name
Mandatory?
Default
Value

chain

No

mainnet

The chain type we are working with, either mainnet or sepolia

Response Body

Name
Type
Description

account

string

The abstract account address for that platform and user Id combination.

exists

boolean

If this smart account has been created on-chain. As these use deterministic addresses we can always know the address for a given platform/user Id combination, but that doesn't mean it has been created.

hashedId

string

A one-way encrypted hash of the user Id used when creating the smart account.

Example Request

GET https://api.bless.net/account-abstraction/platforms/telegram/accounts/123456789?chain=sepolia

Response

{
    "account": "0xf82d6E8cBC32AE33C84FE0487bc48A22fA697afC",
    "exists": true,
    "hashedId": "0x4e2eedab529456da71ba89b1a6196b983b4b128fc506e8400d4113cef5bcc7b6"
}

  • schema:

    • type: array

    {
      "funding": <amount to fund the account with in wei>
      "ops": [
        {
          "account": <the account the operations is for>,
          "target": <the address target for the call>,
          "calldata": <the calldata to pass to the target>,
        }
      ]
    }
  • description: An array of valid operations.

Response Body

Name
Type
Description

message

string

Message response from the endpoint

requestOwner

array

The owner of the API key that made the operation request.

for

array

Array of operations requested, with account, target and calldata for each

destinationChain

number

The target chain for the operation

creationDeliveryId

string

Unique Id for the creation of the account

deliveryId

string

Unique Id for the execution of the operation.

Example Request

POST /account-abstraction/platforms/telegram/account/30035?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"
    }
  ]
}

Response

{
    "message": "Ops requested",
    "requestOwner": "omnus",
    "for": [
        {
            "account": "0xa8C46f79c72DbfE885e54b5527002c515F860875",
            "target": "0x4995423334127293b31d8c810Bb183809f82Be55",
            "calldata": "0x62a61351000000000000000000000000a8C46f79c72DbfE885e54b5527002c515F860875000000000000000000000000000000000000000000000000000000000000000500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"
        }
    ],
    "destinationChain": 11145513,
    "deliveryId": "67c8c05d179b8cbc49505f4e"
}

Previous/account-abstraction/operations/accounts/:addressNext/account-abstraction/platforms/:platform/accounts

Last updated 1 month ago