Skip to content

wallet_getCapabilities

Gets supported capabilities of Porto.

Request

type Request = {
  method: 'wallet_getCapabilities',
}

Response

type Response = {
  capabilities: {
    atomicBatch: {
      supported: true
    }
    createAccount: {
      supported: true
    },
    permissions: {
      supported: true
    }
  }
}

Example

import { Porto } from 'porto'
 
const { provider } = Porto.create()
 
const capabilities = await provider.request({ 
  method: 'wallet_getCapabilities', 
})