Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to transfer CFX out #6

Open
Pana opened this issue May 27, 2021 · 1 comment
Open

How to transfer CFX out #6

Pana opened this issue May 27, 2021 · 1 comment

Comments

@Pana
Copy link
Member

Pana commented May 27, 2021

User can invoke cfx_sendTransaction to transfer CFX out.

curl --location --request POST 'http://localhost:12537' \
--header 'Content-Type: application/json' \
--data-raw ' {
    "jsonrpc": "2.0",
    "id": "15922956697249514502",
    "method": "cfx_sendTransaction",
    "params": [{
      "from": "NET218:TYPE.USER:AAJ347U8RZWEU2WXFGHXENFSKJ1BF86S1EDGMUTFWT",
      "to": "net218:aak2rra2njvd77ezwjvx04kkds9fzagfe6dxpxbf1k",
                "value": "0x56bc75e2d63100000",
       "gas": "0x5208",
       "gasPrice": "0x1"
    }, "123456"]
  }
'
@Pana
Copy link
Member Author

Pana commented May 27, 2021

Or use js-conflux-sdk's sendTransaction method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant