SuperPosition Events

Introduction

These queries keep track of the transfers taking place for SuperPostions which represent mint and burn actions.

Core Concepts

TransferSingle

These represent the transfer of single type of SuperPositions from one address to another and can be queried using-

{
  transferSingle(id:"0x39ded18f629cb43a7f1ead4365a68137fabddf3f3e72cdda451a7932a4914c63"){
    id
    operator
    from
    to
    SuperPositionId
    value
    blockNumber
  }
}

The fields of TransferSingle are as follows-

  1. id- Id used to refer the transfers. In case of TransferSingle hash of the transaction which made the transfer is used as Id.

  2. operator- User which triggered the transfer and for burn and mint this can be considered as the msg.sender

  3. from- Address from which transfer is done

  4. to- Address to which transfer is done

  5. SuperPositionId- Superposition ID for which the transfer is done. This also happens to be the superform IDs for which Mint or Burn has been done.

  6. value- Value of superpositions that were transferred for the trannsaction

  7. blockNumber- Block in which the transfer was done

TransferBatch

These represent the transfer of multiple type of SuperPositions from one address to another and can be queried using-

{
  transferBatches(first:5){
    id
    operator
    from
    to
    superPositionsId
    values
    blockNumber
  }
}

The fields of TransferBatch are as follows-

  1. id- Id used to refer the transfers. In case of TransferBatch hash of the transaction which made the transfer is used as Id.

  2. operator- User which triggered the transfer and for burn and mint this can be considered as the msg.sender

  3. from- Address from which transfer is done

  4. to- Address to which transfer is done

  5. superPositionsId- List of Superposition IDs for which the transfer is done. This also happens to be the superform IDs for which Mint or Burn has been done.

  6. value- Values of superpositions that were transferred for the transaction for the various superforms

  7. blockNumber- Block in which the transfer was done

Last updated