User Operations

At ORB, you can link your player base to your project in one very easy step - generating a QR and asking your players to scan it.

CreateWalletSyncQRCodeSession
mutation CreateWalletSyncQRCodeSession($gameId: String) {
  CreateWalletSyncQRCodeSession(gameId: $gameId) {
    base64Image
    sessionId
  }
}
Input Variables
"gameId" : "game:dGzLJYWJtkF8kdC4iVlb-"
Sample Response
{
  "data": {
    "CreateWalletSyncQRCodeSession": {
      "base64Image": "iVBORw0KGgoAAAANSUhEUgAAAVQAAAFUCAYAAAB7ksS1AAAcE0lEQVR4AezBQY4YybLgQDJR978yR0tfBRDILLXefDezP1hrrfXaw1prrU88rLXW+sTDWmutTzystdb6xMNaa61PPKy11vrEw1prrU88rLXW+sTDWmutTzystdb6xMNaa61PPKy11vrEw1prrU88rLXW+sTDWmutT/zwksrfVHGiclJxonJSMancqDhRmSpOVE4qTlTeqJhUTipuqHypYlK5UfGGyknFDZWp4kRlqjhRmSomlZOKN1T+poo3HtZaa33iYa211ice1lprfeKHj1V8SeVGxaQyqXyp4obKVDFVnKi8oTJV/KaKSWWqmFSmiknlRsWNihOVqWJSmSpuqEwVJxWTylRxojJV3Kg4UZkqJpWp4qTiSypfelhrrfWJh7XWWp94WGut9YkffpnKjYr/UsWkMqm8UTGpTBWTylTxRsWk8qWKk4qTiknlpGJSuVFxo+KkYlI5qbihckNlqphUJpUvVfwmlRsVv+lhrbXWJx7WWmt94mGttdYnfvj/jMpUcaIyqUwVk8qNipOKGyq/qeJEZao4UTmpmFSmihsVv0llqnhD5aTipGJSmSomlZOKE5WpYlKZKv4veVhrrfWJh7XWWp94WGut9Ykf/o9RmSomlUllqjhROVG5UXGi8iWVk4oTlaliUplUpopJZao4UblRMancULlRMalMFW9UnFScqEwVU8UNlf9LHtZaa33iYa211ice1lprfeKHX1bxm1RuVLyhclIxqfxNFTdUTiomlanib1K5UTGpTCo3Km6oTConKm+onFRMKlPFpDJVnFRMKlPFlyr+JQ9rrbU+8bDWWusTD2uttT7xw8dU/ksVk8pUMalMFZPKVDGp3K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uqNyomFSmikllqvhSxaRyojJV3FCZKiaVk4obFScqNyq+VHGiMlVMFV+quKEyVZxU3FCZVP4lD2uttT7xsNZa6xMPa621PvHDX1YxqZxUnKhMKlPFpHJSMamcVJxUnKhMFScVX1L5TSonFScVX1L5TSo3KiaVqeKGyknFScWkMlWcVEwqU8UNlTcq/qaHtdZan3hYa631iYe11lqf+OGlihOVGyonFVPFicpUcaPiROWGylQxqUwVJyo3KiaVqeJEZaq4UTGpTBWTyo2Kk4oTlUllqphUTireUJkqJpWTiknlROWGyknFpHJScVIxqUwVJyonFW88rLXW+sTDWmutTzystdb6xA8vqUwVNyomlaliUpkqbqhMFScqU8VUcaNiUpkqJpWp4kbFpHJDZaq4UfFGxYnKpDJVvFExqUwVJypTxY2KN1ROKiaVGxWTyqQyVXypYlKZKv6mh7XWWp94WGut9YmHtdZan7A/+JDKScWk8psqJpUbFZPKVDGpTBUnKicVk8rfVDGp/KaKGyonFW+ofKniROVGxYnKVDGpTBU3VKaKGyq/qWJSmSq+9LDWWusTD2uttT7xsNZa6xM/vKRyUjGpnFTcUJkqJpWpYlKZKiaVN1SmiqniRGWqmFSmihsqJyonFScqb6jcqJhUblScVNxQmVTeqDhRmSpuqEwVk8oNlanipOKGylQxqfxND2uttT7xsNZa6xMPa621PvHDP05lqjhROVGZKr5U8YbKVPGGylRxUnGiMqlMFVPFicqXVG5UTCo3VKaKk4pJZar4TSonFScVk8qkMlVMKjdUpoobFX/Tw1prrU88rLXW+sTDWmutT/zwsYqTiknlpOI3qUwVN1ROKiaVqeJEZaq4UXFDZar4kspUMalMFZPKVPGGylQxqZxU3FA5UZkqJpU3KiaVv6liUjmpeENlqvhND2uttT7xsNZa6xMPa621PvHDSxVfUnmj4g2VqeJEZao4qTipmFQmlROVNyomlanihsqXKiaVqeJE5Q2VNypOVP6miknlpGKquKFyovI3qUwVbzystdb6xMNaa61PPKy11vrEDy+pnFScVLyh8ptUpoo3VKaKk4o3VE4qJpWpYlKZKiaVqWJSmVSmihO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llqrihclIxqdyomFROKk5UTipOVE4qJpWp4obKVHGiclLxxsNaa61PPKy11vrEw1prrU/88JLK31QxVUwqk8oNlROVqWKqmFROKiaVk4pJ5URlqrhRMancUJkqJpWTipOKL6ncUJkqTiomlRsVk8pUMancqDhRmSpOKt5QmSpOVKaKk4ovPay11vrEw1prrU88rLXW+sQPH6v4ksqJylQxqZxUTCpTxQ2VGyonFW9U3FCZKm6oTBWTylQxqUwqJxVvVJyonFTcUJkqTlQmlaliUrmhclIxVUwqN1RuVNyomFROVKaKNx7WWmt94mGttdYnHtZaa33ih1+mcqPiRsWNii+p3Kg4UXlD5Y2KGyo3KiaVN1TeUJkqTlTeqHijYlKZKiaV/5LKVDGpTCpfqphUpoovPay11vrEw1prrU88rLXW+sQP/+NUpoqp4kRlqrhR8S+pmFTeUJkqTlQmlaliqphUpoobKlPFicqkcqNiUjlRuVExqUwVk8pUcaNiUnmjYlKZKr6kMlWcqEwVbzystdb6xMNaa61PPKy11vrED//jKiaVqeKkYlKZKk5UpopJZaqYVN6omFSmikllqphUTlSmipOKSeWGyknFVDGpnFRMKlPFicpUcUPlDZWpYlK5oXJSMancqLihMlVMKjcqJpUvPay11vrEw1prrU88rLXW+sQPv6zib6o4UZkqpoobFTdU3lCZKv5LKjcqJpWp4n+ZyhsVJxWTyqTym1RuqEwVk8pUcaPihspU8aWHtdZan3hYa631iYe11lqfsD94QeVvqphUpooTlf9SxaQyVZyovFFxQ2WqmFR+U8WkMlW8oTJVTCpTxYnKScUNlRsVk8pUMalMFTdUpoobKm9UnKicVHzpYa211ice1lprfeJhrbXWJ+wP1lprvfaw1lrrEw9rrbU+8bDWWusTD2uttT7xsNZa6xMPa621PvHw/8MZcd0AAAAuSURBVNqDYxoAAAAEQM7+oS3hCQBw0QBw0QBw0QBw0QBw0QBw0QBw0QBw0QBwMdVY/lOueXlWAAAAAElFTkSuQmCC",
      "sessionId": "KODgCta87Utwb3LqjBDHXX"
    }
  }
}

Using the same method a developer uses to link their wallet to the ORB platform, but adding a gameId as a parameter, once the QR is scanned, a player will not only be linked to the platform, but to the project as well.

Check if wallet is synced to ORB

You can check whether a wallet retains an active connection to ORB at any given time, using the following Query.

WalletSyncSessionStatus
query WalletSyncSessionStatus($gameId: String!, $sessionId: String!) {
  WalletSyncSessionStatus(gameId: $gameId, sessionId: $sessionId) {
    address
    sessionId
    connected
  }
}
Input Variables
"gameId" : "game:dGzLJYWJtkF8kdC4iVlb-",
  "sessionId": "NDxmA2qX6LQW1h11ZqvGB"
Sample Response
"data": {
    "WalletSyncSessionStatus": {
      "address": "tz1i7SnAcekYtyPv1RZ9YBbnd8ScNcREVaDK",
      "sessionId": "NDxmA2qX6LQW1h11ZqvGB",
      "connected": true
    }
  }
}

Using the sessionId and the wallet address, the developer can know whether his wallet is connected to the ORB platform at any time.

Last updated