MYKEY Docs
中文English
English
English
  • Introduction
  • Sign in with MYKEY
    • Verify signature at backend server
    • More detailed tech and process of MYKEY login
  • Integrate with MYKEY
    • Multiple ways to integration with MYKEY
    • Mobile Dapp with H5 pages
      • ETH
      • EOS
      • JS Extensions
    • Integration via MYKEY Android SDK
      • Preconditions
      • Initiate SDK
      • Authorize
      • Sign
      • Transfer
      • Call contracts
    • Integration via MYKEY iOS SDK
      • Preconditions
      • Initiate SDK
      • Authorize
      • Sign
      • Transfer
      • Call contracts
    • Web application with scanning qrcode
    • SimpleWallet Protocol Compatible
    • Deeplink Protocol
  • Dive into MYKEY
    • Dive into MYKEY account
    • Classes and methods
      • Android Classes
      • iOS Classes
    • Error Code
    • Identify MYKEY deposit transaction
      • ETH deposit
      • EOS deposit
    • MYKEY Whitepaper
  • KEY ID
    • KEYID ETH Contracts introduction
      • Account Module
      • Account Storage Module
      • Logic Management Module
      • Logic Module
    • Account recovery mechanism
    • KEYID contract upgrade process
    • KEYID contract upgrade records
      • ETH
        • KEY ID Ethereum Contracts Upgrade Pending Time Adjustment
        • KEY ID Ethereum logic contract module upgrade announcement
        • KEY ID Ethereum Contracts Upgrade Pending Time Adjustment
        • KEY ID Ethereum AccountLogic/DualsigsLogic Contracts Upgrade
        • KEY ID Ethereum DappLogic Contract Upgrade
  • Development Resources
    • Ethereum
    • EOS
  • Join Us
    • DApp submit
    • Developers Community
Powered by GitBook
On this page
  • Class InitRequest
  • Class InitSimpleRequest
  • Class AuthorizeRequest
  • Class TransferRequest
  • Class ContractRequest
  • Class ContractAction
  • Class TransferAction
  • Class TransferData
  • Class SignRequest
  • Class MYKEYResponse
  • Class MYKEYApiResponse

Was this helpful?

  1. Dive into MYKEY
  2. Classes and methods

iOS Classes

Class InitRequest

properties

Type

Description

appKey

String

unique id assigned to each dapp, contact us

UUID

UUID

the unique user id in dapp server side, recommend to use uuid

dappName

String

dapp name

dappIcon

String

dapp icon logo, no small than 144x144px

disableInstall

boolean

Default: false, Whether to disable the default install page when MYKEY is not installed

scheme

String

Class InitSimpleRequest

properties

Type

Description

dappName

String

dapp name

dappIcon

String

dapp icon logo, no small than 144x144px

disableInstall

boolean

Default: false, Whether to disable the default install page when MYKEY is not installed

scheme

String

Class AuthorizeRequest

properties

Type

Description

userName

String

Optional, Custom user name

callBackUrl

String

Optional, Callback endpoint url of dapp server,MYKEY will callback to dapp server after authorize request success at first, then wake up mobile client

info

String

Info, Semantic description of MYKEY display to the user for authorization page

Class TransferRequest

properties

Type

Description

from

String

From account

to

String

To account

amount

String

Amount, e.g "1.0000"

symbol

String

Symbol, e.g. "EOS"

contractName

String

contract code name, e.g. "eosio.token"

decimal

String

Decimal

memo

String

Memo

info

String

Semantic description of MYKEY display to the user about this transfer action

orderId

String

The order id from dapp, optional, can be null, e.g. "20190606001"

callbackUrl

String

Optional, callback endpoint url of dapp server,MYKEY will callback to dapp server after transfer request success at first, then wake up mobile client

Class ContractRequest

properties

Type

Description

orderId

String

The order id from dapp, optional, can be null

info

String

Semantic description of MYKEY display to the user about this action

callbackUrl

String

Optional, callback endpoint url of dapp server,MYKEY will callback to dapp server after contract request success at first, then wake up mobile client

actions: [BaseAction]

List of contract actions

Class ContractAction

properties

Type

Description

account

String

contract code name

name

String

contract action name

info

String

Semantic description of MYKEY display to the user about this action

data

Any

The parameter object passed according to the contract abi definition,this any type should be valid by JSONSerialization.isValidJSONObject(_ obj: Any), e.g. {key1: value1, key2: value2 }

Class TransferAction

properties

Type

Description

account

String

contract code name

name

String

contract action name, use "transfer"

info

String

Semantic description of MYKEY display to the user about this action

data

Transfer info object

Class TransferData

properties

Type

Description

from

String

From account

to

String

To account

quantity

String

Amount and Symbol

memo

String

Memo

Class SignRequest

properties

Type

Description

message

String

Unsigned messages

callbackUrl

String

Optional, callback endpoint url of dapp server,MYKEY will callback to dapp server after sign request success at first, then wake up mobile client

Class MYKEYResponse

properties

Description

success

Success Callback

failure

cancelled

Cancel Callback

Class MYKEYApiResponse

properties

Description

success

Success Callback

failure

Failure Callback

PreviousAndroid ClassesNextError Code

Last updated 4 years ago

Was this helpful?

Deeplink MYKEY callback to dapp,defined in , e.g. demoscheme

Deeplink MYKEY callback to dapp,defined in , e.g. demoscheme

or

Failure Callback,

errorCode list
ContractAction
TransferAction
TransferData
refer scheme configuration in 1.2
refer scheme configuration in 1.2