smart-wallets-service-api

GraphQL API Reference

GraphQl endpoints for smart-wallets!

API Endpoints

# devel:
https://smart-wallets.devel.original.works/graphql
# staging:
https://smart-wallets.stage.original.works/graphql
# prod:
https://smart-wallets.original.works/graphql

Queries

getExecution

Description

🔒 JWT Token

Returns execution by messageId.

Response

Returns a StartExecutionResDto!

Arguments

Name
Description

messageId - String!

Example

Query

Variables

Response

Queries

getExecutions

Description

🔒 JWT Token

Returns all operations on the chain for the given user.

Response

Returns a StartExecutionListResDto!

Example

Query

Response

Queries

getOrCheckSmartWallet

Description

🔒 JWT Token

Returns record of the smart wallet or false if does not exist.

Response

Returns a GetOrCheckSmartWalletDto!

Example

Query

Response

Queries

getSmartWallet

Description

🔒 JWT Token

Returns record of the smart wallet.

Response

Returns a SmartWalletDto!

Example

Query

Response

Queries

getSmartWalletRecord

Description

🔒 JWT Token

Returns record of the smart wallet.

Response

Returns a SmartWalletDto!

Arguments

Name
Description

ownerUri - String!

unique id for tenant

Example

Query

Variables

Response

Mutations

createSmartWallet

Description

Variables

Response

Mutations

deploySmartWallet

Description

🔒 JWT Token

Variables

Response

Mutations

startExecution

Description

🔒 JWT Token

Starts transactions on the chain.

Response

Returns a String!

Arguments

Name
Description

startExecutionArgs - StartExecutionReqDto!

Example

Query

Variables

Response

Types

Boolean

Description

The Boolean scalar type represents true or false.

Example

Types

DateTime

Description

A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.

Example

Types

DeployedSmartWalletDto

Description

Smart wallet object

Fields

Field Name
Description

id - Float!

Unique identifier for the object.

networkName - NetworkName!

Name of the blockchain network

smartWalletId - Float!

Unique identifier for the smart wallet object.

messageId - String!

A unique value. It is used to identify messages in events.

Name of the blockchain network

createdAt - DateTime!

Time at which the object was created.

updatedAt - DateTime!

Time at which the object was last updated.

Example

Types

DeployedSmartWalletStatus

Values

Enum Value
Description

transaction_started

transaction_failed

transaction_successful

Example

Types

Float

Description

The Float scalar type represents signed double-precision fractional values as specified by IEEE 754.

Example

Types

GetOrCheckSmartWalletDto

Description

smart wallet address

Fields

Field Name
Description

smartWalletAddress - String

Example

Types

NetworkName

Values

Enum Value
Description

ropsten

kovan

ownet

mainnet

binance

bnbtest

sepolia

local

test

polygon

goerli

mumbai

ethereum

shibuya

amoy

base

baseSepolia

Example

Types

SmartWalletDto

Description

Smart wallet object

Fields

Field Name
Description

ownerUri - String!

Unique identifier for the enterprise.

walletAddress - String!

Ethereum wallet address.

Type of the smart wallet

deployedSmartWallets - [DeployedSmartWalletDto!]

createdAt - DateTime!

Time at which the object was created.

updatedAt - DateTime!

Time at which the object was last updated.

Example

Types

SmartWalletType

Values

Enum Value
Description

ENTERPRISE

RETAIL

Example

Types

StartExecutionListResDto

Description

List of started executions on the chain for the given user

Fields

Field Name
Description

List of started executions on the chain for the given user

Example

Types

StartExecutionReqDto

Description

Argument required for trigger transaction on the chain

Fields

Input Field
Description

to - String!

Receiver's Ethereum address

value - String!

Ethereum coins amount

chainId - Float!

Unique identifier for the network.

messageId - String!

A unique value generated by the client. It is used to identify messages in events.

data - String!

Encoded data of transaction to be executed.

Example

Types

StartExecutionResDto

Description

Object of initiated chain transaction.

Fields

Field Name
Description

id - Float!

Unique identifier for the object.

deployedSmartWalletId - Float!

Unique identifier for the deployment of the smart wallet.

networkName - NetworkName!

Name of the blockchain network

transactionHash - String

Hash of a transaction if execution has been submitted to the blockchain

messageId - String!

A unique value generated by the client. It is used to identify messages in events.

userId - String!

Unique identifier for the user. The value comes from the auth0 token.

createdAt - DateTime!

Time at which the object was created.

updatedAt - DateTime!

Time at which the object was last updated.

Example

Types

String

Description

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Example

Documentation by Anvil SpectaQL

Last updated

Was this helpful?