EGP Blockchain Transactions System
  1. permissions
EGP Blockchain Transactions System
  • Overview
  • Our JavaScript/TypeSctipt SDK
  • users
    • Register a new user
      POST
    • Get user profile
      GET
    • Get user profile
      GET
    • Update user profile
      PUT
    • Delete user account
      DELETE
  • auth
    • Change password
      POST
    • Login
      POST
    • Logout
      POST
    • Refresh token
      POST
  • organizations
    • List organizations
    • Create a new organization
    • List organization balance wallets
    • Deploy a new OrganizationBalancesWalletUpgradeable contract
    • Update an organization balance wallet
    • Get an organization by ID
    • Update an organization
    • Delete an organization
    • List organization members
    • Add a member to an organization
    • Remove a member from an organization
    • List all organizations in the system
  • API keys
    • List user's API keys
    • Generate a new API key with Vault storage
    • Get API key details
    • Revoke an API key
    • Update API key
  • wallets
    • List wallets
    • Create wallet
    • Get wallet details
    • Update wallet
    • Delete wallet
    • Get wallet balance
    • Sign wallet transaction
    • Get wallet statistics
    • Get wallet transactions
    • Get Solana Wallet History
  • transactions send
    • Commit and Send Approved Transaction
  • transactions approvals
    • List pending approvals
    • Approve transaction
    • Reject transaction
    • Request approval
    • List transaction approvals
    • Get approval
  • transactions create
    • Create transaction
    • Estimate transaction fee
    • Get transaction
    • Confirm transaction
  • transactions information
    • List transactions
    • Get transaction by hash
    • Get transaction status
    • Track external transaction
    • Get wallet transactions
    • Get transaction
    • Confirm transaction
  • contract deployment
    • List Contract Deployments
    • Deploy Contract
    • Get Deployment Status
  • contract interactions
    • Get Contract Function
    • Call Contract Function (Read)
    • Get Function Documentation
    • Update Function Documentation
    • Execute Contract Function
    • Submit Documentation Feedback
    • Get Contract ABI
    • Import Contract ABI
    • Call Contract Function By Name (Read)
    • Execute Contract Function By Name (Write)
    • List Contract Functions
    • List Interactions by Contract Address
    • Search Contracts and Functions
    • Generate Search Report
    • Get Interaction by Transaction Hash
    • Get Contract Interaction by ID
  • external contracts
    • Call External Contract Function
  • permissions
    • Assign role to organization user
      POST
    • Get organization user roles
      GET
    • Revoke role from organization user
      DELETE
    • List all permissions
      GET
    • List permissions by resource type
      GET
    • Assign permission to resource
      POST
    • Revoke permission from resource
      DELETE
    • List all roles
      GET
    • Create a new role
      POST
    • Get a role by ID
      GET
    • Update a role
      PUT
    • Delete a role
      DELETE
    • Set transaction limit
      POST
    • Get transaction limits by role
      GET
    • Assign permission to user
      POST
    • Get user permissions
      GET
    • Revoke permission from user
      DELETE
    • Assign role to user
      POST
    • Get user roles
      GET
    • Revoke role from user
      DELETE
  1. permissions

Get a role by ID

GET
/roles/{id}
Permissions
Get details of a specific role
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://transactions.srblabs.io/api/v1/roles/'
Response Response Example
200 - Example 1
{
    "created_at": "string",
    "description": "string",
    "id": "string",
    "is_system": true,
    "name": "string",
    "permissions": [
        {
            "action": "read",
            "description": "string",
            "id": "string",
            "is_system": true,
            "name": "string",
            "resource_type": "wallet"
        }
    ],
    "updated_at": "string"
}

Request

Path Params
id
string 
required
Role ID

Responses

🟢200OK
application/json
OK
Body
created_at
string 
optional
description
string 
optional
id
string 
optional
is_system
boolean 
optional
name
string 
optional
permissions
array[object (model.PermissionResponse) {6}] 
optional
action
enum<string> 
optional
Allowed values:
readcreateupdatedeleteapprovecancelprocessassignrevokelistexecutedeployadministeruse_for_deployment
description
string 
optional
id
string 
optional
is_system
boolean 
optional
name
string 
optional
resource_type
enum<string> 
optional
Allowed values:
wallettransactionbatchuserrolepermissionorganization_balance_wallettransaction_approvalcontract_deployment
updated_at
string 
optional
🟠400Bad Request
🟠401Unauthorized
🟠403Forbidden
🟠404Record Not Found
🔴500Server Error
Modified at 2025-04-30 01:06:55
Previous
Create a new role
Next
Update a role
Built with