Skip to content

Commit f0bb0e3

Browse files
committed
docs: opreturn fixes
1 parent 1c26e76 commit f0bb0e3

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

docs/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ docker-compose up
10481048

10491049
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:
10501050

1051-
* Different transaction types related to events;
1051+
* Different transaction types related to gameplay events;
10521052

10531053
* Invoice numbers;
10541054

@@ -1068,7 +1068,7 @@ The data is composed by the following hex-encoded mandatory components:
10681068

10691069
1. **OP_RETURN opcode**: `6a`.
10701070

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.
10721072

10731073
3. **Protocol identifier**: `50415900` for PayButton (ASCII `PAY` + `0x00`).
10741074

@@ -1088,7 +1088,7 @@ If the **data payload** or **nonce** is empty, the pushdata of each will be `00`
10881088

10891089
### How to send data using the OP_RETURN opcode in PayButton
10901090

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.
10921092

10931093

10941094
### PayButton OpReturn encoding examples:
@@ -1107,7 +1107,7 @@ Breaking this down:
11071107

11081108
- `6a` → OP_RETURN opcode
11091109

1110-
- `04` → Pushdata indicating the size (in bytes) of the protocol identifier.
1110+
- `04` → Pushdata indicating the size (in bytes) of the protocol identifier
11111111

11121112
- `50415900` → PayButton identifier (ASCII `PAY` + `0x00`)
11131113

@@ -1129,7 +1129,7 @@ Breaking this down:
11291129

11301130
- `6a` → OP_RETURN opcode
11311131

1132-
- `04` → Pushdata indicating the size (in bytes) of the protocol identifier.
1132+
- `04` → Pushdata indicating the size (in bytes) of the protocol identifier
11331133

11341134
- `50415900` → PayButton identifier (ASCII `PAY` + `0x00`)
11351135

@@ -1150,7 +1150,7 @@ Breaking this down:
11501150

11511151
- `6a` → OP_RETURN opcode
11521152

1153-
- `04` → Pushdata indicating the size (in bytes) of the protocol identifier.
1153+
- `04` → Pushdata indicating the size (in bytes) of the protocol identifier
11541154

11551155
- `50415900` → PayButton identifier (ASCII `PAY` + `0x00`)
11561156

@@ -1168,7 +1168,7 @@ Breaking this down:
11681168

11691169
- `6a` → OP_RETURN opcode
11701170

1171-
- `04` → Pushdata indicating the size (in bytes) of the protocol identifier.
1171+
- `04` → Pushdata indicating the size (in bytes) of the protocol identifier
11721172

11731173
- `50415900` → PayButton identifier (ASCII `PAY` + `0x00`)
11741174

0 commit comments

Comments
 (0)