# Klaytn sendTransaction 에 대해서

**URL:** <https://devforum.kaia.io/t/klaytn-sendtransaction/609>\
**Category:** Kaia\
**Tags:** klaytn\
**Created:** [1월 19, 2021, 12:12오후 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609 "2021-01-19T12:12:37Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![HARDICE](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/hardice/32/345_2.png) [@HARDICE](https://devforum.kaia.io/u/HARDICE)\
**Post date:** [1월 19, 2021, 12:12오후 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/1 "2021-01-19T12:12:37Z")

</div>

많이 도와주셔서 local과 docker에서 baobab network와 연결하는건 성공했습니다. 감사합니다.  
local에서 kscn을 4개 돌렸고, 각각 (kscnd1, kscn1), (kscnd2, kscn2), (kscnd3, kscn3), (kscnd4, kscn4)로 명령어를 mapping 했습니다. (kscn1 이 main kscn 입니다.)en와 서비스 체인을 연결하는것도 성공한 상황입니다.

막힌 부분이 설치 & 운영 → 서비스체인 → 체인 간 밸류 트랜스퍼 → 1단계 : 운영자 계정에 KLAY 추가하기 입니다.

먼저,  
kscn account import ~/homi-output/keys\_test/testkey1 이 명령어를  
kscn1 account import ~/homi-output/keys\_test/testkey1 와 같이 대체해서 Address:“ae51ea1c22ec5fea6f9d1ca1c83c499aeddaa05a” 를 얻었고,

kscn1의 ipc에서 아래와 같이 입력했습니다.

> subbridge.latestAnchoredBlockNumber

255985

> klay.getBalance(“ae51ea1c22ec5fea6f9d1ca1c83c499aeddaa05a”)

9999999990

> personal.unlockAccount(“ae51ea1c22ec5fea6f9d1ca1c83c499aeddaa05a”)

Unlock account ae51ea1c22ec5fea6f9d1ca1c83c499aeddaa05a  
Passphrase:  
true

> klay.sendTransaction({from:“ae51ea1c22ec5fea6f9d1ca1c83c499aeddaa05a”, to:subbridge.childOperator, value: web3.toPeb(1000, “KLAY”)})

Error: insufficient funds of the sender for value  
at web3.js:3276:20  
at web3.js:6433:15  
at web3.js:5214:36  
at :1:1

계정에 잔고가 있음에도 불구하고 insufficient funds 라고 출력이 나와서 문제점을 찾지 못하였습니다.

---

<div class="post-metadata">

**Author:** ![Ethan](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/ethan/32/18_2.png) [@Ethan](https://devforum.kaia.io/u/Ethan)\
**Post date:** [1월 19, 2021, 12:38오후 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/2 "2021-01-19T12:38:26Z")

</div>

> [@HARDICE](#):
>
> web3.toPeb

내용을 보니 balance는 peb단위로 보여주는데  
송금시에는 KLAY 단위를 사용하셔서 그런것으로 보입니다.

아래 단위를 참고하시어 아래 내용에서 value에 그냥 1000을 적으시면 될것으로 보입니다.  
value에 기본단위가 peb이라서 해당잔고로는 1000 KLAY 보다 더 작은 값이라 그렇습니다.

test account에 잔액이 그렇게 많지 않으니 다른 nodekey를 import하셔서 사용하셔도 될것 같습니다.

```auto
klay.sendTransaction({from:“ae51ea1c22ec5fea6f9d1ca1c83c499aeddaa05a”, to:subbridge.childOperator, value: web3.toPeb(1000, “KLAY”)})

```

> **[Klaytn native coin - KLAY](https://docs.klaytn.foundation/content/klaytn/design/klaytn-native-coin-klay)**

| Unit | peb value | peb |
| --- | --- | --- |
| peb | 1 peb | 1 |
| kpeb | 10^3 peb | 1,000 |
| Mpeb | 10^6 peb | 1,000,000 |
| Gpeb | 10^9 peb | 1,000,000,000 |
| ston | 10^9 peb | 1,000,000,000 |
| uKLAY | 10^12 peb | 1,000,000,000,000 |
| mKLAY | 10^15 peb | 1,000,000,000,000,000 |
| KLAY | 10^18 peb | 1,000,000,000,000,000,000 |
| kKLAY | 10^21 peb | 1,000,000,000,000,000,000,000 |
| MKLAY | 10^24 peb | 1,000,000,000,000,000,000,000,000 |
| GKLAY | 10^27 peb | 1,000,000,000,000,000,000,000,000,000 |
| TKLAY | 10^30 peb | 1,000,000,000,000,000,000,000,000,000,000 |

문의주셔서 감사합니다. 또 언제든지 질문 남겨주십시요.

---

<div class="post-metadata">

**Author:** ![Ethan](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/ethan/32/18_2.png) [@Ethan](https://devforum.kaia.io/u/Ethan)\
**Post date:** [1월 20, 2021, 2:48오후 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/4 "2021-01-20T14:48:34Z")

</div>

안녕하세요.

혹시 nodekey를 통해서 어떻게 import하셨는지요?  
보통은 nodekey를 통해서

아래와 같이 personal.importRawKey API를 통해서 import하시면 사용 가능하십니다.

> **[personal](https://docs.klaytn.com/bapp/json-rpc/api-references/personal#personal_importrawkey)**
>
> APIs to manage accounts and private keys in the node.

감사합니다.

---

<div class="post-metadata">

**Author:** ![imranii](https://avatars.discourse-cdn.com/v4/letter/i/43a26b/32.png) [@imranii](https://devforum.kaia.io/u/imranii)\
**Post date:** [4월 4, 2021, 1:53오전 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/5 "2021-04-04T01:53:31Z")

</div>

Hello,  
Please guide me how to withdraw token from Klayswap .I can see my balance but no option to transfer or withdraw.  
please assist how to withdraw from klayswap to Klaytn .  
Thanks

---

<div class="post-metadata">

**Author:** ![colin.kim](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/colin.kim/32/55_2.png) [@colin.kim](https://devforum.kaia.io/u/colin.kim)\
**Post date:** [4월 4, 2021, 11:53오후 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/6 "2021-04-04T23:53:28Z")

</div>

@imranii

Hi, please ask questions related to KLAYswap to [support@klayswap.com](mailto:support@klayswap.com).

Thanks.

---

<div class="post-metadata">

**Author:** ![imranii](https://avatars.discourse-cdn.com/v4/letter/i/43a26b/32.png) [@imranii](https://devforum.kaia.io/u/imranii)\
**Post date:** [4월 5, 2021, 12:28오전 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/7 "2021-04-05T00:28:27Z")

</div>

thank you , I send request to them !

---

<div class="post-metadata">

**Author:** ![imranii](https://avatars.discourse-cdn.com/v4/letter/i/43a26b/32.png) [@imranii](https://devforum.kaia.io/u/imranii)\
**Post date:** [4월 9, 2021, 10:11오전 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/8 "2021-04-09T10:11:29Z")

</div>

Its been 5th day but there is no reply from Klayswap team,  
please guide what other way i can get assistance ?

---

<div class="post-metadata">

**Author:** ![Kewwon](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/kewwon/32/657_2.png) [@Kewwon](https://devforum.kaia.io/u/Kewwon)\
**Post date:** [4월 12, 2021, 12:39오전 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/9 "2021-04-12T00:39:46Z")

</div>

> [@imranii](#):
>
> n 5th day but there is

Hi, please send the email again to [support@klayswap.com](mailto:support@klayswap.com)  
There’s no email received in regards to the withdrawal issue.

Thanks.

---

<div class="post-metadata">

**Author:** ![imranii](https://avatars.discourse-cdn.com/v4/letter/i/43a26b/32.png) [@imranii](https://devforum.kaia.io/u/imranii)\
**Post date:** [4월 12, 2021, 1:02오후 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/10 "2021-04-12T13:02:51Z")

</div>

I sent e mails twice times 5th April and 12th april,  
please check

---

<div class="post-metadata">

**Author:** ![colin.kim](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/colin.kim/32/55_2.png) [@colin.kim](https://devforum.kaia.io/u/colin.kim)\
**Post date:** [4월 13, 2021, 7:36오전 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/11 "2021-04-13T07:36:08Z")

</div>

I noticed this issue to the KlaySwap team yesterday.

Thanks.

---

<div class="post-metadata">

**Author:** ![imranii](https://avatars.discourse-cdn.com/v4/letter/i/43a26b/32.png) [@imranii](https://devforum.kaia.io/u/imranii)\
**Post date:** [4월 13, 2021, 6:21오후 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/12 "2021-04-13T18:21:11Z")

</div>

Is there any way i can get withdrawal or you can assist in this matter ?

---

<div class="post-metadata">

**Author:** ![imranii](https://avatars.discourse-cdn.com/v4/letter/i/43a26b/32.png) [@imranii](https://devforum.kaia.io/u/imranii)\
**Post date:** [4월 17, 2021, 8:56오후 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/13 "2021-04-17T20:56:57Z")

</div>

please reply, why Klayswap team not reply , you say not received e mails i sent ,  
why they not reply ?

---

<div class="post-metadata">

**Author:** ![colin.kim](https://yyz1.discourse-cdn.com/flex035/user_avatar/devforum.kaia.io/colin.kim/32/55_2.png) [@colin.kim](https://devforum.kaia.io/u/colin.kim)\
**Post date:** [4월 19, 2021, 2:39오전 UTC](https://devforum.kaia.io/t/klaytn-sendtransaction/609/14 "2021-04-19T02:39:32Z")

</div>

@imranii This is not the article related to your question. Please consult [support@klayswap.com](mailto:support@klayswap.com).
