You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/README.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1048,7 +1048,7 @@ docker-compose up
1048
1048
1049
1049
OP_RETURN is a [script opcode](https://wiki.bitcoinsv.io/index.php/OP_RETURN) that allows adding extra information to transactions beyond standard inputs and outputs. This can be useful for applications that want to include:
1050
1050
1051
-
* Different transaction types related to events;
1051
+
* Different transaction types related to gameplay events;
1052
1052
1053
1053
* Invoice numbers;
1054
1054
@@ -1068,7 +1068,7 @@ The data is composed by the following hex-encoded mandatory components:
1068
1068
1069
1069
1.**OP_RETURN opcode**: `6a`.
1070
1070
1071
-
2. Pushdata indicating the size (in bytes) of the protocol identifier. Always 4 (`04` in hex) in the case of the PayButton protocol
1071
+
2. Pushdata indicating the size (in bytes) of the protocol identifier. Always 4 (`04` in hex) in the case of the PayButton protocol.
1072
1072
1073
1073
3.**Protocol identifier**: `50415900` for PayButton (ASCII `PAY` + `0x00`).
1074
1074
@@ -1088,7 +1088,7 @@ If the **data payload** or **nonce** is empty, the pushdata of each will be `00`
1088
1088
1089
1089
### How to send data using the OP_RETURN opcode in PayButton
1090
1090
1091
-
To send data using the OP_RETURN opcode in PayButton, you can use the `opReturn` prop. The content of the `opReturn` prop will be encoded and will correspond to the **data payload**, mentioned above. Additionally, you may use the **payment ID** as a nonce. To disable sending the payment ID, use the `disablePaymentID` prop — PayButton will automatically encode the message according to the rules specified bellow.
1091
+
To send data using the OP_RETURN opcode in PayButton, you can use the `op-return` prop. The content of the `op-return` prop will be encoded and will correspond to the **data payload**, mentioned above. Additionally, you may use the **payment ID** as a nonce. To disable sending the **payment ID**, use the `disable-payment-id` prop — PayButton will automatically encode the message according to the rules specified bellow.
1092
1092
1093
1093
1094
1094
### PayButton OpReturn encoding examples:
@@ -1107,7 +1107,7 @@ Breaking this down:
1107
1107
1108
1108
-`6a` → OP_RETURN opcode
1109
1109
1110
-
-`04` → Pushdata indicating the size (in bytes) of the protocol identifier.
1110
+
-`04` → Pushdata indicating the size (in bytes) of the protocol identifier
0 commit comments