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

Local/Transaction/Ethereum

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

// MainNet Local/Transaction/Ethereum
$sdk->mainnet()->local()->transaction()->ethereum();

// TestNet Local/Transaction/Ethereum
$sdk->testnet()->local()->transaction()->ethereum();

Ethereum 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()->ethereum()->sign(
    \Tatum\Model\TransferEthBlockchain $transfer
): string

Parameters

Name Type Description Notes
$transfer \Tatum\Model\TransferEthBlockchain Transfer request  

Return type

Signed transaction hex (string)

Description

Sign transaction

Back to top