Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Local/Transaction/Bitcoin

// Set your API Keys 👇 here
$sdk = new \Tatum\Sdk();

// MainNet Local/Transaction/Bitcoin
$sdk->mainnet()->local()->transaction()->bitcoin();

// TestNet Local/Transaction/Bitcoin
$sdk->testnet()->local()->transaction()->bitcoin();

Bitcoin Transaction

Method Description
sign() Sign transaction

sign()

Example

#️⃣ Execute command in terminal

✨ php -f sign.php

Type signature

(new \Tatum\Sdk())->{mainnet/testnet}()->local()->transaction()->bitcoin()->sign(
    \Tatum\Local\Transaction\Bitcoin\Transfer $transfer
): string

Parameters

Name Type Description Notes
$transfer \Tatum\Local\Transaction\Bitcoin\Transfer Transfer object  

Return type

Signed transaction hex (string)

Description

Sign transaction

Back to top